blob: b37bf5d474b77529f157b6261243bde3e015d63a (
plain)
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
|
////
/// Navigation
////
.menu {
input[type=checkbox] {
position: absolute;
top: -9999px;
left: -9999px;
}
label {
// a like
cursor: pointer;
user-select: none;
// Custom
color: $contrast;
line-height: 1;
text-transform: uppercase;
position: absolute;
top: 1.5em; right: 1.5em;
}
label:hover {
color: $shadow;
}
label:before {
color: $white;
content: "\2261";
display: inline-block;
font-size: $fontSize * 1.5;
font-weight: bold;
margin-right: .25em;
}
.menu__items {
display: none;
}
input:checked ~ .menu__items {
display: block;
}
}
// Desktop breakpoint
@media screen and (min-width: 60em) {
.menu {
label {
display: none;
}
.menu__items {
display: block;
list-style-type: none;
margin: 0;
padding: 0;
li {
display: inline-block;
}
li + li {
margin-left: .5em;
}
li + li::before {
@include _separator-before($white, "|");
}
a {
background-color: transparent;
color: $contrast;
display: inline;
padding: 0;
text-decoration: none;
}
a:hover {
background-color: transparent;
color: $shadow;
}
}
}
}
|