|
| 1 | +/* Root Variables */ |
1 | 2 | :root { |
2 | | - --accent-rgb: rgb(114, 135, 253); |
| 3 | + --accent-color: rgb(114, 135, 253); |
| 4 | + --background-light: white; |
| 5 | + --background-dark: #121212; |
| 6 | + --text-light: black; |
| 7 | + --text-dark: white; |
| 8 | + --nav-background-light: rgba(255, 255, 255, 0.7); |
| 9 | + --nav-background-dark: rgba(30, 30, 30, 0.8); |
| 10 | + |
3 | 11 | font-family: Inter, sans-serif; |
4 | | - font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */ |
| 12 | + font-feature-settings: 'liga' 1, 'calt' 1; /* Chrome fix */ |
5 | 13 | } |
| 14 | + |
6 | 15 | @supports (font-variation-settings: normal) { |
7 | | - :root { font-family: InterVariable, sans-serif; } |
| 16 | + :root { |
| 17 | + font-family: InterVariable, sans-serif; |
| 18 | + } |
| 19 | +} |
| 20 | + |
| 21 | +/* Dark Mode Support */ |
| 22 | +@media (prefers-color-scheme: dark) { |
| 23 | + :root { |
| 24 | + --background-light: var(--background-dark); |
| 25 | + --text-light: var(--text-dark); |
| 26 | + --nav-background-light: var(--nav-background-dark); |
| 27 | + } |
| 28 | +} |
| 29 | + |
| 30 | +/* Global Styles */ |
| 31 | +body { |
| 32 | + background: var(--background-light); |
| 33 | + color: var(--text-light); |
| 34 | + margin: 0; |
| 35 | + padding: 0; |
| 36 | + display: flex; |
| 37 | + flex-direction: column; |
| 38 | + align-items: center; |
| 39 | +} |
| 40 | + |
| 41 | +/* Navigation */ |
| 42 | +nav { |
| 43 | + background: var(--nav-background-light); |
| 44 | + padding: 12px 24px; |
| 45 | + border-radius: 10px; |
| 46 | + display: flex; |
| 47 | + justify-content: center; |
| 48 | + box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); |
| 49 | + backdrop-filter: blur(10px); |
| 50 | +} |
| 51 | + |
| 52 | +nav ul { |
| 53 | + list-style: none; |
| 54 | + padding: 0; |
| 55 | + margin: 0; |
| 56 | + display: flex; |
| 57 | + gap: 15px; |
| 58 | +} |
| 59 | + |
| 60 | +nav li { |
| 61 | + display: inline-block; |
8 | 62 | } |
9 | 63 |
|
| 64 | +nav a { |
| 65 | + text-decoration: none; |
| 66 | + color: var(--text-light); |
| 67 | + font-weight: bold; |
| 68 | + padding: 10px 15px; |
| 69 | + border-radius: 6px; |
| 70 | + transition: background var(--global-transition-time), color var(--global-transition-time); |
| 71 | +} |
| 72 | + |
| 73 | +nav a:hover { |
| 74 | + background: var(--accent-color); |
| 75 | + color: white; |
| 76 | +} |
| 77 | + |
| 78 | +/* Headings */ |
10 | 79 | h1 { |
11 | | - color: var(--accent-rgb); |
12 | | - font-size: 4.5rem; |
13 | | - font-weight: 900; |
14 | | - letter-spacing: -0.04em; |
15 | | - line-height: 0.9em; |
16 | | - margin-bottom: 0.25em; |
| 80 | + color: var(--accent-color); |
| 81 | + font-size: 4rem; |
| 82 | + font-weight: 900; |
| 83 | + text-align: center; |
| 84 | +} |
| 85 | + |
| 86 | +/* Content */ |
| 87 | +.content { |
| 88 | + max-width: 800px; |
| 89 | + padding: 20px; |
| 90 | + text-align: center; |
| 91 | +} |
| 92 | + |
| 93 | +/* Blockquote */ |
| 94 | +blockquote { |
| 95 | + background: rgba(0, 0, 0, 0.05); |
| 96 | + padding: 15px 20px; |
| 97 | + border-left: 4px solid var(--accent-color); |
| 98 | + font-style: italic; |
| 99 | + margin: 20px 0; |
| 100 | + border-radius: 5px; |
| 101 | +} |
| 102 | + |
| 103 | +/* Dark Mode Blockquote */ |
| 104 | +@media (prefers-color-scheme: dark) { |
| 105 | + blockquote { |
| 106 | + background: rgba(255, 255, 255, 0.1); |
| 107 | + } |
17 | 108 | } |
0 commit comments