|
2 | 2 | @use "partials/vars" as *; |
3 | 3 | @use "partials/functions" as *; |
4 | 4 | @use "partials/mixins" as *; |
5 | | -@use "./reset"; |
6 | 5 | @use "dark"; |
7 | 6 |
|
8 | 7 | @import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600&family=Source+Sans+Pro:ital,wght@0,400;0,600;1,400&family=Source+Serif+Pro:wght@600&display=swap"); |
@@ -32,36 +31,38 @@ body { |
32 | 31 | [aria-hidden="true"]:hover .header-link { |
33 | 32 | visibility: visible; |
34 | 33 | } |
35 | | -a, |
36 | | -button.as-link { |
37 | | - color: $text-color-highlight; |
38 | | - text-decoration: none; |
39 | | - transition: color 250ms; |
| 34 | +@layer base { |
| 35 | + a, |
| 36 | + button.as-link { |
| 37 | + color: $text-color-highlight; |
| 38 | + text-decoration: none; |
| 39 | + transition: color 250ms; |
40 | 40 |
|
41 | | - &.icon-link { |
42 | | - display: inline-block; |
43 | | - font-size: 0.7em; |
44 | | - margin-left: 16px; |
45 | | - transform: rotate(-45deg); |
| 41 | + &.icon-link { |
| 42 | + display: inline-block; |
| 43 | + font-size: 0.7em; |
| 44 | + margin-left: 16px; |
| 45 | + transform: rotate(-45deg); |
| 46 | + |
| 47 | + color: color.adjust(getColor(dusty-grey), $lightness: 10%); |
| 48 | + &:hover { |
| 49 | + color: $text-color-highlight; |
| 50 | + } |
| 51 | + } |
46 | 52 |
|
47 | | - color: color.adjust(getColor(dusty-grey), $lightness: 10%); |
48 | 53 | &:hover { |
49 | | - color: $text-color-highlight; |
| 54 | + color: color.adjust(getColor(denim), $lightness: -5%); |
50 | 55 | } |
51 | 56 | } |
52 | 57 |
|
53 | | - &:hover { |
54 | | - color: color.adjust(getColor(denim), $lightness: -5%); |
| 58 | + ::selection { |
| 59 | + background: color.adjust(getColor(malibu), $alpha: -0.65); |
55 | 60 | } |
56 | | -} |
57 | 61 |
|
58 | | -::selection { |
59 | | - background: color.adjust(getColor(malibu), $alpha: -0.65); |
60 | | -} |
61 | | - |
62 | | -.language-diff { |
63 | | - .token.prefix.inserted, |
64 | | - .token.prefix.deleted { |
65 | | - user-select: none; |
| 62 | + .language-diff { |
| 63 | + .token.prefix.inserted, |
| 64 | + .token.prefix.deleted { |
| 65 | + user-select: none; |
| 66 | + } |
66 | 67 | } |
67 | 68 | } |
0 commit comments