-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_header.scss
122 lines (121 loc) · 2.12 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
//====================================================================================================
.header {
position: relative;
z-index: 100;
// .header__content
&__content {
max-width: 1052px;
padding: 0px 10px;
margin: 0px auto;
}
// .header__menu
&__menu {
padding: 10px 0;
height: 82px;
align-items: center;
display: flex;
justify-content: flex-end;
@media (max-width: $md3+px) {
height: 50px;
}
}
}
.menu {
// .menu__icon
// &__icon {
// }
// .menu__body
&__body {
@media (max-width: $md3+px) {
transform: translate(0px, -100%);
transition: transform 0.8s ease 0s;
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
overflow: auto;
padding: 70px 10px 30px 10px;
background-color: rgba(255, 255, 255, 0.95);
&._active {
transform: translate(0px, 0%);
}
}
}
// .menu__list
&__list {
li {
margin: 0px 0px 30px 0px;
&:last-child {
margin: 0px 0px 0px 0px;
}
}
@media (min-width: $md3+px) {
display: flex;
li {
margin: 0px 33px 0px 0px;
}
}
}
// .menu__link
&__link {
font-size: 20px;
font-weight: 500;
color: #000;
transition: color 0.3s ease 0s;
&._active {
color: #ff6464;
}
@media (min-width: $md2+px) {
&:hover {
color: #ff6464;
}
}
@media (max-width: $md3+px) {
font-size: 40px;
display: block;
text-align: center;
}
}
}
.icon-menu {
display: none;
@media (max-width: $md3+px) {
display: block;
position: relative;
width: 30px;
height: 18px;
cursor: pointer;
z-index: 5;
span {
transition: all 0.3s ease 0s;
top: calc(50% - 1px);
left: 0px;
position: absolute;
width: 100%;
height: 2px;
background-color: #000;
&:first-child {
top: 0px;
}
&:last-child {
top: auto;
bottom: 0px;
}
}
&._active {
span {
transform: scale(0);
&:first-child {
transform: rotate(-45deg);
top: calc(50% - 1px);
}
&:last-child {
transform: rotate(45deg);
bottom: calc(50% - 1px);
}
}
}
}
}
//====================================================================================================