|
| 1 | +@use "sass:color"; |
| 2 | +@use "../components/variables"; |
| 3 | +@use "typography"; |
| 4 | + |
1 | 5 | // General background |
2 | 6 |
|
3 | 7 | .lock-scroll { |
|
6 | 10 |
|
7 | 11 | html { |
8 | 12 | overflow-x: hidden; |
9 | | - -webkit-tap-highlight-color: rgba($black, 0); |
| 13 | + -webkit-tap-highlight-color: color.adjust(variables.$black, $alpha: -0%); |
10 | 14 | } |
11 | 15 |
|
12 | 16 | body { |
13 | 17 | height: 100%; |
14 | | - font-family: $sans-serif; |
| 18 | + font-family: variables.$sans-serif; |
15 | 19 | font-size: 75%; |
16 | 20 | line-height: 1.5em; |
17 | | - color: $site-font-color; |
18 | | - background: $site-background; |
| 21 | + color: variables.$site-font-color; |
| 22 | + background: variables.$site-background; |
19 | 23 |
|
20 | | - @include font-smoothing(on); |
| 24 | + @include typography.font-smoothing(on); |
21 | 25 | } |
22 | 26 |
|
23 | 27 | ::selection { |
24 | | - background: rgba($color-accent, 0.2); |
| 28 | + background: color.adjust(variables.$color-accent, $alpha: -0.8%); |
25 | 29 | } |
26 | 30 |
|
27 | 31 | mark { |
28 | | - background: rgba($color-accent, 0.2); |
| 32 | + background: color.adjust(variables.$color-accent, $alpha: -0.8%); |
29 | 33 | } |
30 | 34 |
|
31 | 35 | // Links |
32 | 36 |
|
33 | 37 | a { |
34 | 38 | text-decoration: none; |
35 | | - color: $color-accent; |
| 39 | + color: variables.$color-accent; |
36 | 40 | transition: color 180ms ease-in-out; |
37 | 41 |
|
38 | 42 | &:hover, |
39 | 43 | &:focus { |
40 | | - color: darken($color-accent, 20%); |
| 44 | + color: color.adjust(variables.$color-accent, $lightness: -20%); |
41 | 45 | } |
42 | 46 |
|
43 | 47 | img { |
|
48 | 52 | // Tab shortcut reveal |
49 | 53 |
|
50 | 54 | .screen-reader-shortcut { |
51 | | - @include font-smoothing(on); |
| 55 | + @include typography.font-smoothing(on); |
52 | 56 |
|
53 | 57 | position: absolute; |
54 | 58 | top: 0; |
|
57 | 61 | height: 1px; |
58 | 62 | overflow: hidden; |
59 | 63 | clip: rect(1px, 1px, 1px, 1px); |
60 | | - color: $white; |
61 | | - background: $off-black; |
| 64 | + color: variables.$white; |
| 65 | + background: variables.$off-black; |
62 | 66 |
|
63 | 67 | &:focus { |
64 | | - color: $white; |
65 | | - z-index: $z-important; |
| 68 | + color: variables.$white; |
| 69 | + z-index: variables.$z-important; |
66 | 70 | width: auto; |
67 | 71 | height: auto; |
68 | 72 | padding: 0 10px; |
|
0 commit comments