-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
126 lines (110 loc) · 2.17 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
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
123
124
125
126
* {
margin: 0;
padding: 0;
}
@font-face {
font-family: FiraSans;
src: url(FiraSans.ttf);
}
@font-face {
font-family: FiraSansLight;
src: url(FiraSansL.ttf);
}
.main {
max-width: 460px;
min-width: 420px;
width: 100%;
margin: auto;
}
.main__logo {
contain: paint;
width: 216px;
height: 88px;
margin: auto;
background-image: url(logo.png);
background-position: center;
background-repeat: no-repeat;
}
.main__menu {
font-family: FiraSans;
font-size: 15px;
}
.main__menu,
.main__menu__item__submenu {
list-style: none;
}
.main__menu__item {
position: relative;
color: #4f4f4f;
background-color: #e7e7e7;
border-radius: 25px;
margin-bottom: 5px;
}
.main__menu__item__p {
height: 18px;
padding: 12px;
padding-left: 20px;
color: #4f4f4f;
background-color: #e7e7e7;
border-radius: 25px;
}
.main__menu__item__p::after {
content: "▼";
color: #ff8663;
position: absolute;
right: 20px;
}
.active .main__menu__item__p::after,
.main__menu__item__p:hover::after {
content: "▲";
color: #fff;
}
.main__menu__item:nth-child(odd)>.main__menu__item__p {
color: white;
background-color: #696666;
}
.main__menu__item:nth-child(odd)>.main__menu__item__p:hover,
.main__menu__item:hover .main__menu__item__p {
background-color: #ff8663;
color: white;
}
.main__menu__item__submenu {
display: none;
margin-bottom: 5px;
padding-bottom: 12px;
}
.active .main__menu__item__submenu {
display: block;
}
.main__menu__item__submenu__item {
padding-top: 7px;
padding-left: 21px;
font-family: FiraSansLight;
}
@media all and (max-width: 420px) {
.main {
width: 100%;
}
.toggle {
display: block;
width: 58px;
height: 44px;
background: url(shape.png) no-repeat;
background-position: center;
}
.main__menu {
display: none;
}
.main__logo {
display: none;
}
.main__menu__item,
.main__menu__item__p {
border-radius: 0;
padding-left: 0;
}
.main__menu__item__p {
padding-left: 5px;
padding-right: 0;
}
}