-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
66 lines (55 loc) · 1.05 KB
/
style.css
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
* {
box-sizing: border-box;
}
/* CSS Custom Properties */
:root {
--main-bg: #4a4e4d;
--top-menu-bg: #0e9aa7;
--sub-menu-bg: #3da4ab;
}
body {
font-family: Tahoma, Geneva, sans-serif;
height: 100vh;
margin: 0;
display: grid;
grid-template-rows: 3rem auto;
color: white;
}
.flex-ctr {
display: flex;
justify-content: center;
align-items: center;
}
.flex-around {
display: flex;
justify-content: space-around;
align-items: center;
}
nav a {
line-height: 3rem;
padding: 0 1rem;
text-transform: uppercase;
text-decoration: none;
color: white;
}
#top-menu a:hover {
background-color: var(--sub-menu-bg);
}
header, #top-menu {
position: relative;
}
#top-menu {
z-index: 20;
}
#sub-menu {
width: 100%;
z-index: 10;
transition: top 0.5s ease-out;
}
#sub-menu a:hover {
background-color: var(--top-menu-bg);
}
nav a.active {
background-color: var(--sub-menu-bg);
color: var(--main-bg);
}