diff options
Diffstat (limited to 'src/app.css')
| -rw-r--r-- | src/app.css | 137 |
1 files changed, 67 insertions, 70 deletions
diff --git a/src/app.css b/src/app.css index 829967c..f99121b 100644 --- a/src/app.css +++ b/src/app.css | |||
| @@ -11,11 +11,49 @@ | |||
| 11 | 11 | ||
| 12 | @media (prefers-color-scheme: dark) { | 12 | @media (prefers-color-scheme: dark) { |
| 13 | :root { | 13 | :root { |
| 14 | --bg-color: #000c18; | 14 | --bg-color: #100c08; |
| 15 | --text-color: #b7b8b9; | 15 | --text-color: #b7b8b9; |
| 16 | } | 16 | } |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | .sr-only { | ||
| 20 | position: absolute; | ||
| 21 | width: 1px; | ||
| 22 | height: 1px; | ||
| 23 | margin: -1px; | ||
| 24 | padding: 0; | ||
| 25 | overflow: hidden; | ||
| 26 | clip: rect(0 0 0 0); | ||
| 27 | border: 0; | ||
| 28 | } | ||
| 29 | |||
| 30 | a { | ||
| 31 | color: var(--accent-color); | ||
| 32 | font-weight: 700; | ||
| 33 | text-decoration: underline; | ||
| 34 | text-decoration-color: transparent; | ||
| 35 | text-underline-offset: 4px; | ||
| 36 | text-decoration-thickness: 2px; | ||
| 37 | transition: color 0.3s, text-decoration-color 0.3s; | ||
| 38 | } | ||
| 39 | |||
| 40 | a:hover, | ||
| 41 | a:focus { | ||
| 42 | color: var(--accent-hover); | ||
| 43 | text-decoration-color: currentColor; | ||
| 44 | } | ||
| 45 | |||
| 46 | a:focus-visible { | ||
| 47 | outline: 3px solid var(--accent-color); | ||
| 48 | outline-offset: 4px; | ||
| 49 | border-radius: 3px; | ||
| 50 | } | ||
| 51 | |||
| 52 | .highlight { | ||
| 53 | background: var(--accent-hover); | ||
| 54 | color: #fcfdfe; | ||
| 55 | } | ||
| 56 | |||
| 19 | body { | 57 | body { |
| 20 | margin: 0; | 58 | margin: 0; |
| 21 | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, | 59 | font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, |
| @@ -42,17 +80,17 @@ h2 { | |||
| 42 | } | 80 | } |
| 43 | 81 | ||
| 44 | @media (max-width: 768px) { | 82 | @media (max-width: 768px) { |
| 45 | h1 { | 83 | h1, h2 { |
| 46 | font-size: 1.75rem; | 84 | font-size: 1.75rem; |
| 47 | } | 85 | } |
| 86 | } | ||
| 48 | 87 | ||
| 49 | h2 { | 88 | section { |
| 50 | font-size: 1.75rem; | 89 | margin-bottom: 3em; |
| 51 | } | 90 | padding: 0 2%; |
| 52 | } | 91 | } |
| 53 | 92 | ||
| 54 | header, | 93 | header { |
| 55 | footer { | ||
| 56 | padding: 0.5em; | 94 | padding: 0.5em; |
| 57 | text-align: center; | 95 | text-align: center; |
| 58 | background: var(--bg-color); | 96 | background: var(--bg-color); |
| @@ -63,30 +101,6 @@ header h1 { | |||
| 63 | padding-left: 1rem; | 101 | padding-left: 1rem; |
| 64 | } | 102 | } |
| 65 | 103 | ||
| 66 | main { | ||
| 67 | flex-grow: 1; | ||
| 68 | max-width: 900px; | ||
| 69 | margin: 0 auto; | ||
| 70 | padding: 2em; | ||
| 71 | } | ||
| 72 | |||
| 73 | @media (max-width: 768px) { | ||
| 74 | main { | ||
| 75 | padding: 1.5em; | ||
| 76 | } | ||
| 77 | } | ||
| 78 | |||
| 79 | footer { | ||
| 80 | text-align: center; | ||
| 81 | font-size: 1.05rem; | ||
| 82 | color: var(--text-color); | ||
| 83 | } | ||
| 84 | |||
| 85 | section { | ||
| 86 | margin-bottom: 3em; | ||
| 87 | padding: 0 2%; | ||
| 88 | } | ||
| 89 | |||
| 90 | .header-top { | 104 | .header-top { |
| 91 | display: flex; | 105 | display: flex; |
| 92 | justify-content: center; | 106 | justify-content: center; |
| @@ -99,6 +113,13 @@ section { | |||
| 99 | justify-content: space-between; | 113 | justify-content: space-between; |
| 100 | text-align: left; | 114 | text-align: left; |
| 101 | } | 115 | } |
| 116 | |||
| 117 | header { | ||
| 118 | position: sticky; | ||
| 119 | top: 0; | ||
| 120 | z-index: 1000; | ||
| 121 | background: var(--bg-color); | ||
| 122 | } | ||
| 102 | } | 123 | } |
| 103 | 124 | ||
| 104 | nav ul { | 125 | nav ul { |
| @@ -140,49 +161,25 @@ nav a { | |||
| 140 | nav ul.open { | 161 | nav ul.open { |
| 141 | display: flex; | 162 | display: flex; |
| 142 | } | 163 | } |
| 143 | |||
| 144 | header { | ||
| 145 | position: sticky; | ||
| 146 | top: 0; | ||
| 147 | z-index: 1000; | ||
| 148 | background: var(--bg-color); | ||
| 149 | } | ||
| 150 | } | ||
| 151 | |||
| 152 | .sr-only { | ||
| 153 | position: absolute; | ||
| 154 | width: 1px; | ||
| 155 | height: 1px; | ||
| 156 | margin: -1px; | ||
| 157 | padding: 0; | ||
| 158 | overflow: hidden; | ||
| 159 | clip: rect(0 0 0 0); | ||
| 160 | border: 0; | ||
| 161 | } | 164 | } |
| 162 | 165 | ||
| 163 | a { | 166 | main { |
| 164 | color: var(--accent-color); | 167 | flex-grow: 1; |
| 165 | font-weight: 700; | 168 | max-width: 900px; |
| 166 | text-decoration: underline; | 169 | margin: 0 auto; |
| 167 | text-decoration-color: transparent; | 170 | padding: 2em; |
| 168 | text-underline-offset: 4px; | ||
| 169 | text-decoration-thickness: 2px; | ||
| 170 | transition: color 0.3s, text-decoration-color 0.3s; | ||
| 171 | } | ||
| 172 | |||
| 173 | a:hover, | ||
| 174 | a:focus { | ||
| 175 | color: var(--accent-hover); | ||
| 176 | text-decoration-color: currentColor; | ||
| 177 | } | 171 | } |
| 178 | 172 | ||
| 179 | a:focus-visible { | 173 | @media (max-width: 768px) { |
| 180 | outline: 3px solid var(--accent-color); | 174 | main { |
| 181 | outline-offset: 4px; | 175 | padding: 1.5em; |
| 182 | border-radius: 3px; | 176 | } |
| 183 | } | 177 | } |
| 184 | 178 | ||
| 185 | .highlight { | 179 | footer { |
| 186 | background: var(--accent-hover); | 180 | padding: 0.5em; |
| 187 | color: #fcfdfe; | 181 | text-align: center; |
| 182 | font-size: 1.05rem; | ||
| 183 | color: var(--text-color); | ||
| 184 | background: var(--bg-color); | ||
| 188 | } | 185 | } |
