|
| 1 | +@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap'); |
| 2 | + |
| 3 | +:root { |
| 4 | + --background-primary-color: #121212; |
| 5 | + --background-secondary-color: #1a1a1a; |
| 6 | + --background-tertiary-color: #262626; |
| 7 | + --background-light-color: #444444; |
| 8 | + --text-primary-color: #ffffff; |
| 9 | + --text-secondary-color: #dddddd; |
| 10 | + --text-tertiary-color: #aaaaaa; |
| 11 | + |
| 12 | + --accent-color: #016ACE; |
| 13 | + |
| 14 | + --border-color: var(--text-primary-color); |
| 15 | +} |
| 16 | + |
| 17 | +html { |
| 18 | + scroll-behavior: smooth; |
| 19 | +} |
| 20 | + |
| 21 | +body { |
| 22 | + background: var(--background-primary-color); |
| 23 | + min-height: 100vh; |
| 24 | +} |
| 25 | + |
| 26 | +* { |
| 27 | + color: var(--text-primary-color); |
| 28 | + letter-spacing: 0.1rem; |
| 29 | +} |
| 30 | + |
| 31 | +main { |
| 32 | + padding-bottom: 40px; |
| 33 | + min-height: calc(100vh - 168px); |
| 34 | +} |
| 35 | + |
| 36 | +main>* { |
| 37 | + margin: 40px; |
| 38 | +} |
| 39 | + |
| 40 | +a:hover { |
| 41 | + color: var(--accent-color); |
| 42 | +} |
| 43 | + |
| 44 | +a svg:hover { |
| 45 | + filter: invert(27%) sepia(41%) saturate(3079%) hue-rotate(191deg) brightness(105%) contrast(106%); |
| 46 | +} |
| 47 | + |
| 48 | +button { |
| 49 | + background: none; |
| 50 | + border: 2px solid var(--border-color); |
| 51 | + padding: 10px 40px; |
| 52 | + margin: 20px 0px; |
| 53 | + border-radius: 10px; |
| 54 | + cursor: pointer; |
| 55 | + transition: filter 0.1s linear; |
| 56 | +} |
| 57 | + |
| 58 | +button:hover { |
| 59 | + filter: brightness(0.7); |
| 60 | +} |
| 61 | + |
| 62 | +/* CSS RESET */ |
| 63 | + |
| 64 | +/* |
| 65 | + 1. Use a more-intuitive box-sizing model. |
| 66 | +*/ |
| 67 | +* { |
| 68 | + font-family: "JetBrains Mono", monospace; |
| 69 | + font-optical-sizing: auto; |
| 70 | +} |
| 71 | + |
| 72 | +*, *::before, *::after { |
| 73 | + box-sizing: border-box; |
| 74 | +} |
| 75 | +/* |
| 76 | + 2. Remove default margin |
| 77 | +*/ |
| 78 | +* { |
| 79 | + margin: 0; |
| 80 | +} |
| 81 | +/* |
| 82 | + Typographic tweaks! |
| 83 | + 3. Add accessible line-height |
| 84 | + 4. Improve text rendering |
| 85 | +*/ |
| 86 | +body { |
| 87 | + line-height: 1.5; |
| 88 | + -webkit-font-smoothing: antialiased; |
| 89 | +} |
| 90 | +/* |
| 91 | + 5. Improve media defaults |
| 92 | +*/ |
| 93 | +img, picture, video, canvas, svg { |
| 94 | + display: block; |
| 95 | + max-width: 100%; |
| 96 | +} |
| 97 | +/* |
| 98 | + 6. Remove built-in form typography styles |
| 99 | +*/ |
| 100 | +input, button, textarea, select { |
| 101 | + font: inherit; |
| 102 | +} |
| 103 | +/* |
| 104 | + 7. Avoid text overflows |
| 105 | +*/ |
| 106 | +p, h1, h2, h3, h4, h5, h6 { |
| 107 | + overflow-wrap: break-word; |
| 108 | +} |
| 109 | +/* |
| 110 | + 8. Create a root stacking context |
| 111 | +*/ |
| 112 | +#root, #__next { |
| 113 | + isolation: isolate; |
| 114 | +} |
| 115 | + |
| 116 | +code { |
| 117 | + display: block; |
| 118 | + margin: 20px 0px; |
| 119 | + padding: 20px; |
| 120 | + background: var(--background-secondary-color); |
| 121 | + border-radius: 10px; |
| 122 | +} |
| 123 | + |
| 124 | +code { |
| 125 | + counter-reset: line; |
| 126 | + font-size: 0.9em; |
| 127 | +} |
| 128 | + |
| 129 | +code > [data-line]::before { |
| 130 | + counter-increment: line; |
| 131 | + content: counter(line); |
| 132 | + |
| 133 | + /* Other styling */ |
| 134 | + display: inline-block; |
| 135 | + width: 1rem; |
| 136 | + margin-right: 2rem; |
| 137 | + text-align: right; |
| 138 | + color: gray; |
| 139 | +} |
| 140 | + |
| 141 | +code[data-line-numbers-max-digits="2"] > [data-line]::before { |
| 142 | + width: 2rem; |
| 143 | +} |
| 144 | + |
| 145 | +code[data-line-numbers-max-digits="3"] > [data-line]::before { |
| 146 | + width: 3rem; |
| 147 | +} |
| 148 | + |
| 149 | +mark { |
| 150 | + background: var(--text-tertiary-color); |
| 151 | + border-radius: 5px; |
| 152 | + padding: 0px 5px; |
| 153 | +} |
0 commit comments