-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.scss
99 lines (84 loc) · 1.46 KB
/
header.scss
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@import "nord.scss";
.title {
/* margin: 50px 0 0 0; */
background-color: $nord0;
height: 100px;
position: relative;
}
.title h1 {
font-size: 1.5em;
font-weight: 600;
color: #ffffff;
margin: 0;
padding: 0;
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
@media only screen and (min-width: 470px) {
.title {
height: 200px;
}
.title h1 {
font-size: 2em;
}
}
.logo {
overflow: hidden;
width: 100px;
height: 100px;
z-index: 3;
position: absolute;
bottom: -45px;
left: calc(50% - 50px);
transform: scale(0.2, 0.2);
}
@media only screen and (min-width: 470px) {
.logo {
bottom: -38px;
transform: scale(0.5, 0.5);
}
}
.logo img {}
.navbar ul {
display: flex;
justify-content: center;
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: $nord3;
}
.navbar li {
flex: 0 1 250px;
float: left;
/* width: 25%; */
}
.navbar li a {
display: block;
color: $nord4;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.navbar li a:hover:not(.active) {
background-color: $nord2;
}
.navbar li a.active {
color: $nord5;
background-color: $nord1;
}
.navbar .menu-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
padding: 12px 16px;
z-index: 1;
}
.navbar .menu:hover .menu-content {
display: block;
}