-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
73 lines (72 loc) · 1.04 KB
/
style.css
File metadata and controls
73 lines (72 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
:root{
color: --font-color = white;
}
html{
background: rgba(0, 0, 0, .4);
margin: 0;
padding: 0;
}
body{
font-size: 16px;
color: white;
}
header{
background-color: #502a33;
}
header nav {
padding: 0;
background-color: rgba(0, 0, 0, .2);
position: relative;
width: 100%;
}
nav ul{
padding: 0;
margin: 0;
}
nav ul{
list-style: none;
}
nav ul li a{
display: inline-block;
padding: 10px 10px;
width: 125px;
color: white;
font-size: 1.5em;
text-align: center;
text-decoration: none;
}
nav > ul > li{
float: left;
}
nav ul li:hover {
background-color: rgba(0, 0, 0, .5);
}
nav::before, nav::after{
content: '';
display: table;
}
nav::after{
clear: both;
}
/*submenu*/
nav ul li:hover > ul{
display: block;
}
nav ul ul {
display: none;
position: absolute;
background-color: #3f2128 ;
top: 100%;
}
/*Last submenu*/
nav ul ul li{
position: relative;
}
nav ul ul ul {
top: 0;
left: 100%;
}
nav > ul > li >a{
width: auto;
padding: 10px 10px;
}