blob: 5abb292a545054370a14ce6b6e60a2637ab51f49 (
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
////
/// Global rules
////
@-ms-viewport { width: device-width; }
* {
@include _border-box();
&:after, &:before {
@include _border-box();
}
}
img { -ms-interpolation-mode: bicubic; }
// Links
a { color: $contrast; }
a:hover { color: $shadow; }
a:focus { color: $base; }
a:active { color: $light; }
// HTML elements
blockquote {
@include _background-opacity($neutral, .3);
border-left: 6px solid $neutral;
font-size: $fontSize * 1.25;
margin-left: 0;
margin-right: 0;
padding: .5em 1.5em;
}
code {
@include _background-opacity($contrast, .1);
border-left: 6px solid $contrast;
color: $contrast;
display: block;
margin: 1em 0;
padding: .5em 1.5em;
}
// Helpers
.visua11y-hidden {
border: 0;
clip: rect(1px 1px 1px 1px); /* for Internet Explorer */
clip: rect(1px, 1px, 1px, 1px);
height: 1px; width: 1px;
margin: -1px; padding: 0;
position: absolute;
overflow: hidden;
}
// Nav
// Fix for Android
body {
-webkit-animation: bugfix infinite 1s;
}
@-webkit-keyframes bugfix {
from { padding: 0; }
to { padding: 0; }
}
.menu {
input[type=checkbox] {
position: absolute;
top: -9999px;
left: -9999px;
}
label {
cursor: pointer;
user-select: none;
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;
}
}
|