-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathicon.css
More file actions
171 lines (139 loc) · 2.88 KB
/
icon.css
File metadata and controls
171 lines (139 loc) · 2.88 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
.plus {
height: 25px;
width: 25px;
top: 10px;
right: 10px;
}
.plus,
.plus:before,
.plus:after {
position: absolute;
}
.plus:before,
.plus:after {
position: absolute;
left: 15px;
content: " ";
height: 25px;
width: 3px;
background-color: var(--color-icon);
border-radius: 10px;
}
.plus:before {
transform: rotate(90deg);
}
.plus.cross:before {
transform: rotate(45deg);
}
.plus.cross:after {
transform: rotate(-45deg);
}
.hamburger {
display: block;
position: relative;
top: 0px;
left: 0px;
padding: 5px;
}
.hamburger input {
display: block;
width: 40px;
height: 32px;
position: absolute;
top: -2px;
left: -2px;
opacity: 0; /* hide this */
z-index: 2; /* and place it over the hamburger */
}
.hamburger span {
display: block;
width: 33px;
height: 4px;
margin-bottom: 5px;
position: relative;
background: #888;
border-radius: 3px;
z-index: 1;
transform-origin: 4px 0px;
transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}
.hamburger span:first-child {
transform-origin: 0% 0%;
}
.hamburger span:nth-last-child(1) {
transform-origin: 0% 100%;
}
.hamburger input:checked ~ span {
opacity: 1;
transform: rotate(45deg) translate(-1px, -1px);
background: #232323;
}
.hamburger input:checked ~ span:nth-last-child(2) {
opacity: 0;
transform: rotate(0deg) scale(0.2, 0.2);
}
.hamburger input:checked ~ span:nth-last-child(1) {
transform: rotate(-45deg) translate(1px, 1px);
}
.hamburger.hover,
.plus.hover,
.arrow.hover,
i.fa.hover {
opacity: 0.3;
cursor: pointer;
}
.hamburger.hover input {
cursor: pointer;
}
.hamburger.hover > span {
background: var(--color-icon);
}
.hamburger.hover:hover,
.plus.hover:hover,
.arrow.hover:hover,
i.fa.hover:hover {
opacity: 1;
}
.arrow {
width: 13px;
height: 13px;
display: inline-block;
position: relative;
bottom: -5px;
left: -10px;
transition: 0.4s ease;
margin-top: 2px;
text-align: left;
transform: rotate(45deg);
float: right;
}
.arrow:before,
.arrow:after {
position: absolute;
content: "";
display: inline-block;
width: 12px;
height: 3px;
background-color: var(--color-icon);
transition: 0.4s ease;
}
.arrow:after {
position: absolute;
transform: rotate(90deg);
top: -5px;
left: 5px;
}
.active .arrow {
transform: rotate(45deg) translate(-5px, -5px);
}
.active .arrow:before {
transform: translate(10px, 0);
}
.active .arrow:after {
transform: rotate(90deg) translate(10px, 0);
}
/*
Flag styles, taken from https://github.com/lipis/flag-icon-css
*/
.flag-icon-background{background-size:contain;background-position:50%;background-repeat:no-repeat}.flag-icon{background-size:contain;background-position:50%;background-repeat:no-repeat;position:relative;display:inline-block;width:1.33333333em;line-height:1em}.flag-icon:before{content:'\00a0'}