Download src/App.css from Novacibes/Vwgge: direct link, hf CLI and curl.
- Browser
- Download file 4.67 kB
-
https://huggingface.co/spaces/Novacibes/Vwgge/resolve/main/src/App.css
- Command line
-
hf download hf://spaces/Novacibes/Vwgge/src/App.css
-
curl -L -o App.css https://huggingface.co/spaces/Novacibes/Vwgge/resolve/main/src/App.css
4.67 kB
| /* Realistic school notebook paper — first no-logo build. | |
| * | |
| * Official school sizes encoded here (real products, real specs): | |
| * - US Letter filler / spiral sheet: 8.5 in x 11 in | |
| * Source: Five Star / Mead (ACCO Brands) — "Sheet Size 8 1/2\" x 11\"" | |
| * - Composition book trim: 9.75 in x 7.5 in (Mead lists 10 1/2" x 7 1/2") | |
| * Source: Mead official notebook listings | |
| * - College ruled (medium ruled): 9/32 in = 7.1 mm, blue ruling, ~32 lines/sheet | |
| * Source: Five Star spec table — "Sheet Ruling Size 9/32\"", "Note-Rule Lines per Sheet 32" | |
| * - Wide ruled (legal ruled): 11/32 in = 8.7 mm, elementary standard K–4 | |
| * - Red margin line: ~1.25 in (32 mm) from left edge | |
| * | |
| * Rendering uses real physical CSS units (in / mm) so print output matches | |
| * the store-bought sheet. On screen the browser maps inches to CSS px (96px/in). | |
| */ | |
| .desk { | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| padding: 20px 16px 32px; | |
| background: | |
| radial-gradient(1200px 600px at 50% -10%, rgba(255, 255, 255, 0.12), transparent 60%), | |
| linear-gradient(180deg, #4a4f59 0%, #3a3e46 60%, #33363d 100%); | |
| } | |
| .toolbar { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| align-items: center; | |
| justify-content: center; | |
| margin-bottom: 16px; | |
| color: #e8eaf0; | |
| font-size: 14px; | |
| } | |
| .toolbar .group { | |
| display: flex; | |
| gap: 6px; | |
| align-items: center; | |
| background: rgba(255, 255, 255, 0.08); | |
| border: 1px solid rgba(255, 255, 255, 0.14); | |
| border-radius: 999px; | |
| padding: 4px 6px; | |
| } | |
| .toolbar button { | |
| appearance: none; | |
| border: 1px solid transparent; | |
| background: transparent; | |
| color: #e8eaf0; | |
| font-size: 13px; | |
| padding: 6px 12px; | |
| border-radius: 999px; | |
| cursor: pointer; | |
| } | |
| .toolbar button.active { | |
| background: #f5f3ec; | |
| color: #22242a; | |
| border-color: #f5f3ec; | |
| } | |
| .toolbar .label { | |
| opacity: 0.7; | |
| padding: 0 4px 0 8px; | |
| font-size: 12px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.08em; | |
| } | |
| /* Sheet frame keeps the true paper aspect ratio. */ | |
| .sheet-wrap { | |
| width: min(96vw, 72vh * 0.7727); | |
| display: flex; | |
| justify-content: center; | |
| } | |
| .sheet { | |
| --rule: 0.28125in; /* 9/32 in college ruled */ | |
| --margin-left: 1.25in; | |
| --paper: #fffef8; | |
| --rule-blue: #a9cfe8; | |
| --margin-red: #f08080; | |
| position: relative; | |
| width: 100%; | |
| aspect-ratio: 8.5 / 11; | |
| background: var(--paper); | |
| border-radius: 2px; | |
| box-shadow: | |
| 0 1px 2px rgba(0, 0, 0, 0.4), | |
| 0 12px 32px rgba(0, 0, 0, 0.45), | |
| 0 2px 0 rgba(255, 255, 255, 0.6) inset; | |
| overflow: hidden; | |
| } | |
| .sheet[data-ruling='wide'] { | |
| --rule: 0.34375in; /* 11/32 in wide ruled */ | |
| } | |
| .sheet[data-size='composition'] { | |
| aspect-ratio: 7.5 / 9.75; | |
| } | |
| .sheet[data-size='composition'] .sheet-wrap { | |
| width: min(96vw, 72vh * 0.7692); | |
| } | |
| /* Ruled lines + red margin, drawn with real inch spacing. */ | |
| .sheet-paper { | |
| position: absolute; | |
| inset: 0; | |
| background-image: | |
| /* red margin line */ | |
| linear-gradient( | |
| to right, | |
| transparent 0, | |
| transparent calc(var(--margin-left) - 1.5px), | |
| var(--margin-red) calc(var(--margin-left) - 1.5px), | |
| var(--margin-red) var(--margin-left), | |
| transparent var(--margin-left) | |
| ), | |
| /* blue rules: 1px line at bottom of each --rule cell */ | |
| linear-gradient( | |
| to bottom, | |
| transparent 0, | |
| transparent calc(100% - 1px), | |
| var(--rule-blue) calc(100% - 1px), | |
| var(--rule-blue) 100% | |
| ); | |
| background-size: | |
| 100% 100%, | |
| 100% var(--rule); | |
| background-repeat: no-repeat, repeat; | |
| /* Leave a blank header (~0.7in) like real filler paper, then rule the rest. */ | |
| background-position: | |
| 0 0, | |
| 0 0.7in; | |
| } | |
| /* Subtle paper fiber / lighting for realism. */ | |
| .sheet-shade { | |
| position: absolute; | |
| inset: 0; | |
| pointer-events: none; | |
| background: | |
| linear-gradient(105deg, rgba(255, 255, 255, 0.5) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.06) 100%), | |
| radial-gradient(140% 90% at 50% 0%, transparent 70%, rgba(0, 0, 0, 0.05) 100%); | |
| } | |
| /* 3-hole punches, standard US filler style. */ | |
| .hole { | |
| position: absolute; | |
| left: 0.32in; | |
| width: 0.34in; | |
| height: 0.34in; | |
| border-radius: 50%; | |
| background: #33363d; | |
| box-shadow: | |
| 0 0 0 0.06in #fffef8, | |
| 0 0 0 calc(0.06in + 1px) rgba(0, 0, 0, 0.12), | |
| inset 0 2px 5px rgba(0, 0, 0, 0.8); | |
| } | |
| .hole-1 { top: 16%; } | |
| .hole-2 { top: 48%; } | |
| .hole-3 { top: 80%; } | |
| .sheet[data-size='composition'] .hole { | |
| display: none; | |
| } | |
| .caption { | |
| margin-top: 14px; | |
| max-width: 640px; | |
| text-align: center; | |
| color: rgba(232, 234, 240, 0.82); | |
| font-size: 13px; | |
| line-height: 1.5; | |
| } | |
| .caption code { | |
| background: rgba(255, 255, 255, 0.1); | |
| padding: 1px 6px; | |
| border-radius: 4px; | |
| font-size: 12px; | |
| } | |