|
| 1 | +body { |
| 2 | + /* background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><text y='1em' font-size='50'>🎈</text></svg>"); */ |
| 3 | + --pattern-color: #fff; |
| 4 | + animation: expanding-ripples .75s infinite linear, rainbow-background 5s infinite linear; |
| 5 | +} |
| 6 | + |
| 7 | +main { |
| 8 | + background: rgba(255, 255, 255, .6); |
| 9 | +} |
| 10 | + |
| 11 | +h1.main-title { |
| 12 | + color: black; |
| 13 | + text-shadow: 0em 0em .1em white; |
| 14 | +} |
| 15 | +h1.main-title::before { |
| 16 | + content: "\1f388 "; |
| 17 | +} |
| 18 | +h1.main-title::after { |
| 19 | + content: " \1f388"; |
| 20 | +} |
| 21 | + |
| 22 | +nav.top-nav { |
| 23 | + background: #00f; |
| 24 | +} |
| 25 | +nav.top-nav div.drop-down div { |
| 26 | + background: #ff0; |
| 27 | + color: black; |
| 28 | +} |
| 29 | +nav.top-nav div.drop-down>div:first-child { |
| 30 | + background: transparent; |
| 31 | + color: white; |
| 32 | +} |
| 33 | +nav.top-nav div.drop-down:hover>div:first-child, nav.top-nav div.drop-down:focus>div:first-child, nav.top-nav div.drop-down:focus-within>div:first-child { |
| 34 | + background: #0ff; |
| 35 | + color: black; |
| 36 | +} |
| 37 | +nav.top-nav>button { |
| 38 | + border-radius: 0em; |
| 39 | + background: transparent; |
| 40 | + color: black; |
| 41 | +} |
| 42 | +nav.top-nav>button::before { |
| 43 | + display: none; |
| 44 | +} |
| 45 | +nav.top-nav>button::after { |
| 46 | + display: none; |
| 47 | +} |
| 48 | +nav.hidden-left-nav { |
| 49 | + animation: rainbow-border 5s infinite linear; |
| 50 | +} |
| 51 | + |
| 52 | +button:not(.hide-aside) { |
| 53 | + /* makes buttons look like a slice of cake */ |
| 54 | + --icing-color: #fff; |
| 55 | + --cake-color: #ff5; |
| 56 | + position: relative; |
| 57 | + border-width: .3em .3em 0em 0em; |
| 58 | + border-radius: 0em; |
| 59 | + border-color: var(--icing-color); |
| 60 | + padding: .2em .5em .5em; |
| 61 | + background: linear-gradient(var(--cake-color), var(--cake-color) 45%, var(--icing-color) 42%, var(--icing-color) 58%, var(--cake-color) 55%); |
| 62 | + color: black; |
| 63 | +} |
| 64 | +button:not(.hide-aside)::before { |
| 65 | + /* makes the candle */ |
| 66 | + content: "\1f56f\fe0f"; |
| 67 | + position: absolute; |
| 68 | + left: 0em; |
| 69 | + right: 0em; |
| 70 | + bottom: 105%; |
| 71 | + font-size: .75em; |
| 72 | +} |
| 73 | +button:not(.hide-aside):active::after { |
| 74 | + /* makes the knife while active */ |
| 75 | + content: "\1f52a"; |
| 76 | + position: absolute; |
| 77 | + left: 0em; |
| 78 | + right: 0em; |
| 79 | + top: -.25em; |
| 80 | + font-size: 2em; |
| 81 | +} |
| 82 | +button:disabled, button[disabled] { |
| 83 | + --icing-color: #888; |
| 84 | + --cake-color: #aaa; |
| 85 | +} |
| 86 | + |
| 87 | +@keyframes rainbow-background { |
| 88 | + 0% { |
| 89 | + background-color: #f00; |
| 90 | + } |
| 91 | + 25% { |
| 92 | + background-color: #ff0; |
| 93 | + } |
| 94 | + 45% { |
| 95 | + background-color: #0f0; |
| 96 | + } |
| 97 | + 60% { |
| 98 | + background-color: #0ff; |
| 99 | + } |
| 100 | + 85% { |
| 101 | + background-color: #00f; |
| 102 | + } |
| 103 | + 100% { |
| 104 | + background-color: #f00; |
| 105 | + } |
| 106 | +} |
| 107 | +@keyframes rainbow-border { |
| 108 | + 0% { |
| 109 | + border-color: #f00; |
| 110 | + } |
| 111 | + 25% { |
| 112 | + border-color: #ff0; |
| 113 | + } |
| 114 | + 45% { |
| 115 | + border-color: #0f0; |
| 116 | + } |
| 117 | + 60% { |
| 118 | + border-color: #0ff; |
| 119 | + } |
| 120 | + 85% { |
| 121 | + border-color: #00f; |
| 122 | + } |
| 123 | + 100% { |
| 124 | + border-color: #f00; |
| 125 | + } |
| 126 | +} |
| 127 | +@keyframes spinning-fan { |
| 128 | + 0% { |
| 129 | + background-image: repeating-conic-gradient(transparent 0%, transparent, var(--pattern-color), transparent, transparent 10%); |
| 130 | + } |
| 131 | + 10% { |
| 132 | + background-image: repeating-conic-gradient(transparent 1%, transparent, var(--pattern-color), transparent, transparent 11%); |
| 133 | + } |
| 134 | + 20% { |
| 135 | + background-image: repeating-conic-gradient(transparent 2%, transparent, var(--pattern-color), transparent, transparent 12%); |
| 136 | + } |
| 137 | + 30% { |
| 138 | + background-image: repeating-conic-gradient(transparent 3%, transparent, var(--pattern-color), transparent, transparent 13%); |
| 139 | + } |
| 140 | + 40% { |
| 141 | + background-image: repeating-conic-gradient(transparent 4%, transparent, var(--pattern-color), transparent, transparent 14%); |
| 142 | + } |
| 143 | + 50% { |
| 144 | + background-image: repeating-conic-gradient(transparent 5%, transparent, var(--pattern-color), transparent, transparent 15%); |
| 145 | + } |
| 146 | + 60% { |
| 147 | + background-image: repeating-conic-gradient(transparent 6%, transparent, var(--pattern-color), transparent, transparent 16%); |
| 148 | + } |
| 149 | + 70% { |
| 150 | + background-image: repeating-conic-gradient(transparent 7%, transparent, var(--pattern-color), transparent, transparent 17%); |
| 151 | + } |
| 152 | + 80% { |
| 153 | + background-image: repeating-conic-gradient(transparent 8%, transparent, var(--pattern-color), transparent, transparent 18%); |
| 154 | + } |
| 155 | + 90% { |
| 156 | + background-image: repeating-conic-gradient(transparent 9%, transparent, var(--pattern-color), transparent, transparent 19%); |
| 157 | + } |
| 158 | + 100% { |
| 159 | + background-image: repeating-conic-gradient(transparent 0%, transparent, var(--pattern-color), transparent, transparent 10%); |
| 160 | + } |
| 161 | +} |
| 162 | +@keyframes expanding-ripples { |
| 163 | + 0% { |
| 164 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0%, transparent, var(--pattern-color), transparent, transparent 1%); |
| 165 | + } |
| 166 | + 10% { |
| 167 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0.1%, transparent, var(--pattern-color), transparent, transparent 1.1%); |
| 168 | + } |
| 169 | + 20% { |
| 170 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0.2%, transparent, var(--pattern-color), transparent, transparent 1.2%); |
| 171 | + } |
| 172 | + 30% { |
| 173 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0.3%, transparent, var(--pattern-color), transparent, transparent 1.3%); |
| 174 | + } |
| 175 | + 40% { |
| 176 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0.4%, transparent, var(--pattern-color), transparent, transparent 1.4%); |
| 177 | + } |
| 178 | + 50% { |
| 179 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0.5%, transparent, var(--pattern-color), transparent, transparent 1.5%); |
| 180 | + } |
| 181 | + 60% { |
| 182 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0.6%, transparent, var(--pattern-color), transparent, transparent 1.6%); |
| 183 | + } |
| 184 | + 70% { |
| 185 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0.7%, transparent, var(--pattern-color), transparent, transparent 1.7%); |
| 186 | + } |
| 187 | + 80% { |
| 188 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0.8%, transparent, var(--pattern-color), transparent, transparent 1.8%); |
| 189 | + } |
| 190 | + 90% { |
| 191 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0.9%, transparent, var(--pattern-color), transparent, transparent 1.9%); |
| 192 | + } |
| 193 | + 100% { |
| 194 | + background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0%, transparent, var(--pattern-color), transparent, transparent 1%); |
| 195 | + } |
| 196 | +} |
| 197 | +@keyframes wave-interference { |
| 198 | + 0% { |
| 199 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0%, transparent, #00f, transparent, transparent 1%), repeating-radial-gradient(circle at 75% 50%, transparent 0%, transparent, #00f, transparent, transparent 1%); |
| 200 | + } |
| 201 | + 10% { |
| 202 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0.1%, transparent, #00f, transparent, transparent 1.1%), repeating-radial-gradient(circle at 75% 50%, transparent 0.1%, transparent, #00f, transparent, transparent 1.1%); |
| 203 | + } |
| 204 | + 20% { |
| 205 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0.2%, transparent, #00f, transparent, transparent 1.2%), repeating-radial-gradient(circle at 75% 50%, transparent 0.2%, transparent, #00f, transparent, transparent 1.2%); |
| 206 | + } |
| 207 | + 30% { |
| 208 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0.3%, transparent, #00f, transparent, transparent 1.3%), repeating-radial-gradient(circle at 75% 50%, transparent 0.3%, transparent, #00f, transparent, transparent 1.3%); |
| 209 | + } |
| 210 | + 40% { |
| 211 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0.4%, transparent, #00f, transparent, transparent 1.4%), repeating-radial-gradient(circle at 75% 50%, transparent 0.4%, transparent, #00f, transparent, transparent 1.4%); |
| 212 | + } |
| 213 | + 50% { |
| 214 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0.5%, transparent, #00f, transparent, transparent 1.5%), repeating-radial-gradient(circle at 75% 50%, transparent 0.5%, transparent, #00f, transparent, transparent 1.5%); |
| 215 | + } |
| 216 | + 60% { |
| 217 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0.6%, transparent, #00f, transparent, transparent 1.6%), repeating-radial-gradient(circle at 75% 50%, transparent 0.6%, transparent, #00f, transparent, transparent 1.6%); |
| 218 | + } |
| 219 | + 70% { |
| 220 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0.7%, transparent, #00f, transparent, transparent 1.7%), repeating-radial-gradient(circle at 75% 50%, transparent 0.7%, transparent, #00f, transparent, transparent 1.7%); |
| 221 | + } |
| 222 | + 80% { |
| 223 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0.8%, transparent, #00f, transparent, transparent 1.8%), repeating-radial-gradient(circle at 75% 50%, transparent 0.8%, transparent, #00f, transparent, transparent 1.8%); |
| 224 | + } |
| 225 | + 90% { |
| 226 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0.9%, transparent, #00f, transparent, transparent 1.9%), repeating-radial-gradient(circle at 75% 50%, transparent 0.9%, transparent, #00f, transparent, transparent 1.9%); |
| 227 | + } |
| 228 | + 100% { |
| 229 | + background-image: repeating-radial-gradient(circle at 25% 50%, transparent 0%, transparent, #00f, transparent, transparent 1%), repeating-radial-gradient(circle at 75% 50%, transparent 0%, transparent, #00f, transparent, transparent 1%); |
| 230 | + } |
| 231 | +} |
| 232 | + |
| 233 | +@media (prefers-color-scheme: dark) { |
| 234 | + body { |
| 235 | + --pattern-color: #000; |
| 236 | + background-color: black; |
| 237 | + /* animation: expanding-ripples .75s infinite linear, rainbow-morph 5s infinite linear; */ |
| 238 | + /* background-image: repeating-linear-gradient(45deg, #00f, transparent, transparent, #00f 10%), repeating-linear-gradient(-45deg, transparent, transparent, #0f0, transparent, transparent 10%); /* crosshatch pattern */ |
| 239 | + } |
| 240 | + |
| 241 | + main { |
| 242 | + background: rgba(0, 0, 0, .5); |
| 243 | + } |
| 244 | + |
| 245 | + h1.main-title { |
| 246 | + color: white; |
| 247 | + text-shadow: 0em 0em .1em black; |
| 248 | + } |
| 249 | + |
| 250 | + nav.top-nav { |
| 251 | + background: #00a; |
| 252 | + } |
| 253 | + nav.top-nav div.drop-down div { |
| 254 | + background: #aab; |
| 255 | + color: black; |
| 256 | + } |
| 257 | + nav.top-nav div.drop-down > div:first-child, nav.top-nav>button { |
| 258 | + color: white; |
| 259 | + } |
| 260 | + nav.top-nav div.drop-down:hover > div:first-child, nav.top-nav div.drop-down:focus > div:first-child, nav.top-nav div.drop-down:focus-within > div:first-child { |
| 261 | + background: #0cc; |
| 262 | + } |
| 263 | + |
| 264 | + button:not(.hide-aside) { |
| 265 | + --icing-color: #421; |
| 266 | + --cake-color: #842; |
| 267 | + color: white; |
| 268 | + } |
| 269 | + button:disabled, button[disabled] { |
| 270 | + --icing-color: #888; |
| 271 | + --cake-color: #aaa; |
| 272 | + } |
| 273 | +} |
0 commit comments