tiny, simple, classless CSS framework inspired by new.css devcss.devins.page
framework lightweight css classless stylesheet

feat: remove sticky header, other improvements

sticky header can take up a lot of space and the blurry background and take a performance hit, and it's not supported on older browsers so i just removed it instead

also a ton of other improvements and cleanup and consistency stuff idk

+53 -38
+53 -38
dev.css
··· 1 :root { 2 - /* Fonts - Geist, Inter, Apple default (Gecko and Blink), Microsoft default, browser default */ 3 --dc-font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, 4 "Segoe UI", sans-serif; 5 --dc-font-mono: "Geist Mono", monospace; ··· 19 --dc-d-tx-1: #ededed; 20 --dc-d-tx-2: #a1a1a1; 21 --dc-d-bg-1: #000; 22 - --dc-d-bg-2: #ffffff0f; 23 - --dc-d-bg-3: #ffffff24; 24 --dc-d-lk-1: #52a8ff; 25 --dc-d-lkb-1: #0072f5; 26 --dc-d-lkb-2: #0062d1; ··· 174 blockquote { 175 padding: 1.5rem; 176 background: var(--dc-bg-2); 177 - border-left: 5px solid var(--dc-bg-3); 178 border-radius: 4px; 179 } 180 181 - blockquote *:last-child { 182 - padding-bottom: 0; 183 - margin-bottom: 0; 184 - } 185 - 186 - /* Header mode */ 187 - @media (max-width: 1415px) { 188 header { 189 background: var(--dc-bg-2); 190 border-bottom: 1px solid var(--dc-bg-3); 191 - padding-top: 0.75rem; 192 - padding-bottom: 0.55rem; 193 margin: -2rem calc(50% - 50vw) 2rem; 194 padding-left: calc(50vw - 50%); 195 padding-right: calc(50vw - 50%); 196 - 197 - /* Sticky header if supported */ 198 - position: sticky; 199 - top: 0; 200 - 201 - /* Blur for transparent surface if supported */ 202 - backdrop-filter: blur(16px); 203 } 204 205 - /* Divide a elements in nav with bullet point */ 206 header nav a+a::before { 207 - content: " • "; 208 color: var(--dc-tx-2); 209 } 210 211 - /* Change header font sizes */ 212 header h1 { 213 font-size: 1.6rem; 214 } 215 header h2 { 216 font-size: 1.4rem; 217 } 218 header h3 { 219 font-size: 1.2rem; 220 } 221 header h4 { 222 font-size: 1rem; 223 } 224 header nav { 225 font-size: 0.9rem; 226 } 227 } 228 229 - /* Sidebar mode*/ 230 - @media (min-width: 1416px) { 231 header { 232 - /* Style changes */ 233 background: none; 234 - border-bottom: 0; 235 padding: 2rem 1.5rem; 236 margin: 0; 237 - 238 - /* Fixed position on the screen */ 239 position: fixed; 240 top: 0; 241 left: calc(50% - 700px); 242 - width: 260px; 243 } 244 245 - /* Put nav elements in a separate line */ 246 header nav { 247 display: flex; 248 flex-direction: column; 249 } 250 251 - /* Add dash before nav elements */ 252 header nav a::before { 253 content: "• "; 254 color: var(--dc-tx-2); 255 } 256 } 257 258 header h1, 259 header h2, 260 - header h3 { 261 - padding-bottom: 0; 262 border-bottom: 0; 263 } 264 ··· 269 270 header>*:last-child { 271 margin-bottom: 0; 272 } 273 274 a button, ··· 375 font-weight: bold; 376 } 377 378 - details[open] { 379 - padding-bottom: 0.75rem; 380 } 381 382 - details[open] summary { 383 - margin-bottom: 6px; 384 } 385 386 details[open]>*:last-child { 387 margin-bottom: 0; 388 } 389 390 dt {
··· 1 :root { 2 + /* Font families - Geist, Inter, Apple default (Gecko and Blink), Microsoft default, browser default */ 3 --dc-font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, 4 "Segoe UI", sans-serif; 5 --dc-font-mono: "Geist Mono", monospace; ··· 19 --dc-d-tx-1: #ededed; 20 --dc-d-tx-2: #a1a1a1; 21 --dc-d-bg-1: #000; 22 + --dc-d-bg-2: #0A0A0A; 23 + --dc-d-bg-3: #2E2E2E; 24 --dc-d-lk-1: #52a8ff; 25 --dc-d-lkb-1: #0072f5; 26 --dc-d-lkb-2: #0062d1; ··· 174 blockquote { 175 padding: 1.5rem; 176 background: var(--dc-bg-2); 177 + border: 1px solid var(--dc-bg-3); 178 + border-left: 6px solid var(--dc-bg-3); 179 border-radius: 4px; 180 } 181 182 + @media (max-width: 1424px) { 183 header { 184 background: var(--dc-bg-2); 185 border-bottom: 1px solid var(--dc-bg-3); 186 + padding-top: 0.9rem; 187 + padding-bottom: 0.6rem; 188 margin: -2rem calc(50% - 50vw) 2rem; 189 padding-left: calc(50vw - 50%); 190 padding-right: calc(50vw - 50%); 191 } 192 193 header nav a+a::before { 194 + content: "• "; 195 color: var(--dc-tx-2); 196 } 197 198 header h1 { 199 font-size: 1.6rem; 200 } 201 + 202 header h2 { 203 font-size: 1.4rem; 204 } 205 + 206 header h3 { 207 font-size: 1.2rem; 208 } 209 + 210 header h4 { 211 font-size: 1rem; 212 } 213 + 214 + header h5 { 215 + font-size: 0.9rem; 216 + } 217 + 218 + header p { 219 + font-size: 1rem; 220 + } 221 + 222 header nav { 223 font-size: 0.9rem; 224 } 225 + 226 + header h6 { 227 + font-size: 0.8rem; 228 + } 229 + 230 + header * { 231 + padding-top: 0.15rem; 232 + padding-bottom: 0.15rem; 233 + margin-top: 0rem; 234 + margin-bottom: 0rem; 235 + } 236 } 237 238 + @media (min-width: 1425px) { 239 header { 240 background: none; 241 padding: 2rem 1.5rem; 242 margin: 0; 243 position: fixed; 244 top: 0; 245 left: calc(50% - 700px); 246 + width: 255px; 247 + height: 100%; 248 } 249 250 header nav { 251 display: flex; 252 flex-direction: column; 253 } 254 255 header nav a::before { 256 content: "• "; 257 color: var(--dc-tx-2); 258 } 259 + 260 + header * { 261 + padding-top: 0.25rem; 262 + padding-bottom: 0.25rem; 263 + margin-top: 0rem; 264 + margin-bottom: 0rem; 265 + } 266 } 267 268 header h1, 269 header h2, 270 + header h3, 271 + header h4, 272 + header h5, 273 + header h6 { 274 border-bottom: 0; 275 } 276 ··· 281 282 header>*:last-child { 283 margin-bottom: 0; 284 + padding-bottom: 0; 285 } 286 287 a button, ··· 388 font-weight: bold; 389 } 390 391 + details[open] summary { 392 + margin-bottom: 8px; 393 } 394 395 + details[open]>*:first-child { 396 + margin-top: 0; 397 + padding-top: 0; 398 } 399 400 details[open]>*:last-child { 401 margin-bottom: 0; 402 + padding-bottom: 0; 403 } 404 405 dt {