Datasets:
Download tasks/c28/repo/src/styles.css from Roy-DOU/Webdev-Bench: direct link, hf CLI and curl.
- Browser
- Download file 11.9 kB
-
https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c28/repo/src/styles.css
- Command line
-
hf download hf://datasets/Roy-DOU/Webdev-Bench/tasks/c28/repo/src/styles.css
-
curl -L -o styles.css https://huggingface.co/datasets/Roy-DOU/Webdev-Bench/resolve/main/tasks/c28/repo/src/styles.css
11.9 kB
| /* ============================================================ | |
| tria — hyper branding agency | |
| Layout is authored against the 1920px design grid. | |
| --u is one design pixel, so the page scales proportionally. | |
| ============================================================ */ | |
| :root { | |
| --u: calc(100vw / 1920); | |
| --iu: var(--u); /* indent unit for staggered heading lines */ | |
| --black: #0a0a0a; | |
| --blue: #2622ff; | |
| --note-yellow: #f2eda2; | |
| --sans: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif; | |
| --serif: 'Times New Roman', Times, 'Liberation Serif', Georgia, serif; | |
| } | |
| * { | |
| box-sizing: border-box; | |
| } | |
| html, | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| overflow-x: hidden; | |
| } | |
| body { | |
| background: #fff; | |
| color: var(--black); | |
| font-family: var(--sans); | |
| -webkit-font-smoothing: antialiased; | |
| text-rendering: optimizeLegibility; | |
| } | |
| img { | |
| max-width: 100%; | |
| } | |
| a { | |
| color: inherit; | |
| } | |
| a:focus-visible, | |
| button:focus-visible { | |
| outline: 2px solid currentColor; | |
| outline-offset: 4px; | |
| } | |
| /* ---------------- reveal-on-scroll (restrained) ---------------- */ | |
| .reveal { | |
| opacity: 0; | |
| transform: translateY(26px); | |
| transition: opacity 0.7s ease, transform 0.7s ease; | |
| } | |
| .reveal.is-visible { | |
| opacity: 1; | |
| transform: none; | |
| } | |
| /* ---------------- header ---------------- */ | |
| .site-header { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| z-index: 10; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: calc(10 * var(--u)) calc(58 * var(--u)) 0 calc(52 * var(--u)); | |
| } | |
| .logo { | |
| font-family: var(--serif); | |
| font-weight: 400; | |
| font-size: calc(68 * var(--u)); | |
| line-height: 1.05; | |
| letter-spacing: calc(-0.5 * var(--u)); | |
| color: var(--black); | |
| text-decoration: none; | |
| transition: opacity 0.2s ease; | |
| } | |
| .logo:active { | |
| opacity: 0.55; | |
| } | |
| .site-nav { | |
| display: flex; | |
| align-items: center; | |
| gap: calc(90 * var(--u)); | |
| font-size: calc(23 * var(--u)); | |
| font-weight: 600; | |
| letter-spacing: calc(0.1 * var(--u)); | |
| } | |
| .nav-group { | |
| display: flex; | |
| align-items: center; | |
| gap: calc(26 * var(--u)); | |
| } | |
| .site-nav a { | |
| position: relative; | |
| color: #0d0d12; | |
| text-decoration: none; | |
| padding-bottom: calc(3 * var(--u)); | |
| transition: opacity 0.2s ease; | |
| } | |
| .site-nav a::after { | |
| content: ''; | |
| position: absolute; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| height: calc(2 * var(--u)); | |
| background: currentColor; | |
| transform: scaleX(0); | |
| transform-origin: left center; | |
| transition: transform 0.28s ease; | |
| } | |
| .site-nav a:hover::after { | |
| transform: scaleX(1); | |
| } | |
| .site-nav a:active { | |
| opacity: 0.5; | |
| } | |
| .nav-featured { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: calc(14 * var(--u)); | |
| } | |
| .nav-arrow { | |
| width: calc(32 * var(--u)); | |
| height: calc(15 * var(--u)); | |
| transition: transform 0.25s ease; | |
| } | |
| .nav-featured:hover .nav-arrow { | |
| transform: translateX(calc(6 * var(--u))); | |
| } | |
| /* ---------------- hero ---------------- */ | |
| .hero { | |
| position: relative; | |
| background: #3a2760; | |
| } | |
| .hero-sky { | |
| height: calc(96 * var(--u)); | |
| background: linear-gradient( | |
| 90deg, | |
| #352350 0%, | |
| #3a2760 17%, | |
| #3e2779 33%, | |
| #482990 50%, | |
| #6033aa 67%, | |
| #6c37bd 83%, | |
| #682eb6 100% | |
| ); | |
| } | |
| .hero-photo { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| } | |
| /* ---------------- works ---------------- */ | |
| .works { | |
| background: #fff; | |
| } | |
| .eyebrow { | |
| margin: 0; | |
| padding-left: calc(var(--indent, 0) * var(--iu)); | |
| font-family: var(--serif); | |
| font-weight: 400; | |
| font-size: calc(31 * var(--u)); | |
| line-height: 1.2; | |
| } | |
| .work-title { | |
| margin: calc(4 * var(--u)) 0 0; | |
| font-size: calc(72 * var(--u)); | |
| line-height: calc(67 * var(--u)); | |
| font-weight: 500; | |
| letter-spacing: calc(-1.2 * var(--u)); | |
| text-transform: uppercase; | |
| } | |
| .work-title .line { | |
| display: block; | |
| padding-left: calc(var(--indent, 0) * var(--iu)); | |
| } | |
| .arrow-link { | |
| display: inline-flex; | |
| width: calc(54 * var(--u)); | |
| height: calc(44 * var(--u)); | |
| margin-top: calc(238 * var(--u)); | |
| color: var(--black); | |
| transition: transform 0.25s ease; | |
| } | |
| .arrow-link svg { | |
| display: block; | |
| width: 100%; | |
| height: 100%; | |
| } | |
| .arrow-link:hover { | |
| transform: translate(calc(8 * var(--u)), calc(2 * var(--u))); | |
| } | |
| .arrow-link:active { | |
| transform: scale(0.88); | |
| } | |
| .arrow-link.pulsed { | |
| animation: arrow-pulse 0.4s ease; | |
| } | |
| @keyframes arrow-pulse { | |
| 0% { | |
| transform: scale(1); | |
| } | |
| 40% { | |
| transform: scale(0.85); | |
| } | |
| 100% { | |
| transform: scale(1); | |
| } | |
| } | |
| /* work 1 — Zoniou Perfumes: image left, text right */ | |
| .work-zoniou { | |
| display: flex; | |
| align-items: flex-start; | |
| padding: calc(96 * var(--u)) 0 0 calc(194 * var(--u)); | |
| } | |
| .work-zoniou .work-media { | |
| display: block; | |
| width: calc(766 * var(--u)); | |
| height: auto; | |
| flex-shrink: 0; | |
| } | |
| .work-zoniou .work-text { | |
| margin-left: calc(60 * var(--u)); | |
| margin-top: calc(261 * var(--u)); | |
| } | |
| /* work 2 — Shook Radio: heading left, full-bleed image below */ | |
| .work-shook { | |
| margin-top: calc(232 * var(--u)); | |
| } | |
| .shook-head { | |
| position: relative; | |
| padding-left: calc(192 * var(--u)); | |
| } | |
| .shook-arrow { | |
| position: absolute; | |
| left: calc(1370 * var(--u)); | |
| bottom: calc(20 * var(--u)); | |
| margin: 0; | |
| } | |
| .shook-media { | |
| display: block; | |
| width: 100%; | |
| height: auto; | |
| margin-top: calc(142 * var(--u)); | |
| } | |
| /* work 3 — Onoma Hotel: text left, image right */ | |
| .work-onoma { | |
| position: relative; | |
| display: flex; | |
| align-items: flex-start; | |
| margin-top: calc(173 * var(--u)); | |
| } | |
| .onoma-text { | |
| width: calc(960 * var(--u)); | |
| flex-shrink: 0; | |
| padding: calc(43 * var(--u)) 0 0 calc(110 * var(--u)); | |
| } | |
| .onoma-media { | |
| display: block; | |
| width: calc(766 * var(--u)); | |
| height: auto; | |
| } | |
| .onoma-arrow { | |
| position: absolute; | |
| left: calc(754 * var(--u)); | |
| top: calc(809 * var(--u)); | |
| margin: 0; | |
| } | |
| .work.is-visible .eyebrow, | |
| .work.is-visible .work-title .line { | |
| padding-left: 0; | |
| } | |
| /* ---------------- contact marquee ---------------- */ | |
| .contact-strip { | |
| margin-top: calc(68 * var(--u)); | |
| height: calc(217 * var(--u)); | |
| background: #000; | |
| overflow: hidden; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .marquee-track { | |
| display: flex; | |
| align-items: center; | |
| will-change: transform; | |
| animation: marquee-scroll 130s linear infinite; | |
| animation-play-state: paused; | |
| } | |
| /* Only run the loop while the strip is on screen; pause again on hover. */ | |
| .contact-strip.running .marquee-track { | |
| animation-play-state: running; | |
| } | |
| .contact-strip.running:hover .marquee-track { | |
| animation-play-state: paused; | |
| } | |
| .marquee-group { | |
| display: flex; | |
| align-items: center; | |
| flex-shrink: 0; | |
| } | |
| .m-unit { | |
| display: flex; | |
| align-items: center; | |
| flex-shrink: 0; | |
| padding-right: calc(72 * var(--u)); | |
| } | |
| .m-text, | |
| .m-link { | |
| font-size: calc(154 * var(--u)); | |
| line-height: 1; | |
| font-weight: 500; | |
| letter-spacing: calc(-2 * var(--u)); | |
| color: #fff; | |
| white-space: nowrap; | |
| } | |
| .m-cursor { | |
| width: calc(112 * var(--u)); | |
| height: calc(148 * var(--u)); | |
| margin: calc(4 * var(--u)) calc(42 * var(--u)) 0 calc(92 * var(--u)); | |
| flex-shrink: 0; | |
| transform: rotate(-8deg); | |
| } | |
| .m-link { | |
| text-decoration: none; | |
| border-bottom: calc(9 * var(--u)) solid #fff; | |
| padding-bottom: calc(6 * var(--u)); | |
| transition: opacity 0.25s ease; | |
| } | |
| .m-link:hover { | |
| opacity: 0.72; | |
| } | |
| .m-link:active { | |
| opacity: 0.5; | |
| } | |
| @keyframes marquee-scroll { | |
| from { | |
| transform: translateX(var(--m0, 0px)); | |
| } | |
| to { | |
| transform: translateX(calc(var(--m0, 0px) - 50%)); | |
| } | |
| } | |
| /* ---------------- footer ---------------- */ | |
| .footer { | |
| position: relative; | |
| background: var(--blue); | |
| color: #fff; | |
| min-height: calc(305 * var(--u)); | |
| padding: calc(56 * var(--u)) calc(48 * var(--u)) calc(20 * var(--u)); | |
| } | |
| .footer-about { | |
| margin: 0; | |
| font-family: var(--serif); | |
| font-size: calc(28 * var(--u)); | |
| line-height: calc(36 * var(--u)); | |
| text-indent: calc(93 * var(--u)); | |
| } | |
| .footer-social { | |
| margin: calc(38 * var(--u)) 0 0; | |
| font-family: var(--serif); | |
| font-size: calc(28 * var(--u)); | |
| } | |
| .footer-social a { | |
| color: #fff; | |
| text-decoration: none; | |
| transition: opacity 0.2s ease; | |
| } | |
| .footer-social a:hover { | |
| text-decoration: underline; | |
| } | |
| .footer-social a:active { | |
| opacity: 0.6; | |
| } | |
| .footer-legal { | |
| display: flex; | |
| gap: calc(24 * var(--u)); | |
| margin: calc(16 * var(--u)) 0 0 calc(84 * var(--u)); | |
| font-size: calc(18 * var(--u)); | |
| font-weight: 700; | |
| letter-spacing: calc(0.3 * var(--u)); | |
| color: var(--note-yellow); | |
| } | |
| .footer-legal a { | |
| color: inherit; | |
| text-decoration: none; | |
| } | |
| .footer-legal a:hover { | |
| text-decoration: underline; | |
| } | |
| .footer-badge { | |
| position: absolute; | |
| top: calc(14 * var(--u)); | |
| right: calc(22 * var(--u)); | |
| width: calc(264 * var(--u)); | |
| height: calc(264 * var(--u)); | |
| color: #fff; | |
| } | |
| .badge { | |
| display: block; | |
| width: 100%; | |
| height: 100%; | |
| transform: rotate(-14deg); | |
| transform-origin: 50% 50%; | |
| } | |
| .footer-badge:hover .badge { | |
| animation: badge-spin 16s linear infinite; | |
| } | |
| @keyframes badge-spin { | |
| from { | |
| transform: rotate(-14deg); | |
| } | |
| to { | |
| transform: rotate(346deg); | |
| } | |
| } | |
| .badge-arc { | |
| font-family: var(--serif); | |
| font-size: 31px; | |
| font-weight: 600; | |
| letter-spacing: 1.5px; | |
| fill: currentColor; | |
| } | |
| .badge-b { | |
| font-family: var(--serif); | |
| font-size: 132px; | |
| font-weight: 600; | |
| fill: currentColor; | |
| } | |
| .badge-n { | |
| font-family: var(--serif); | |
| font-size: 86px; | |
| font-weight: 600; | |
| fill: currentColor; | |
| } | |
| /* ---------------- reduced motion ---------------- */ | |
| @media (prefers-reduced-motion: reduce) { | |
| .reveal { | |
| opacity: 1; | |
| transform: none; | |
| transition: none; | |
| } | |
| .marquee-track, | |
| .footer-badge:hover .badge, | |
| .arrow-link.pulsed { | |
| animation: none; | |
| } | |
| .site-nav a::after, | |
| .nav-arrow, | |
| .arrow-link { | |
| transition: none; | |
| } | |
| } | |
| /* Never lose content in print or other non-scrolling contexts. */ | |
| @media print { | |
| .reveal { | |
| opacity: 1; | |
| transform: none; | |
| } | |
| } | |
| /* ---------------- small screens ---------------- */ | |
| @media (max-width: 880px) { | |
| :root { | |
| --iu: 0.35px; | |
| } | |
| .site-header { | |
| padding: 14px 16px 0; | |
| } | |
| .logo { | |
| font-size: 27px; | |
| } | |
| .site-nav { | |
| gap: 16px; | |
| font-size: 13px; | |
| } | |
| .nav-featured { | |
| white-space: nowrap; | |
| gap: 6px; | |
| } | |
| .nav-group { | |
| gap: 10px; | |
| } | |
| .nav-arrow { | |
| width: 20px; | |
| height: 10px; | |
| } | |
| .hero-sky { | |
| height: 52px; | |
| } | |
| .eyebrow { | |
| font-size: 17px; | |
| } | |
| .work-title { | |
| margin-top: 6px; | |
| font-size: clamp(30px, 8.8vw, 46px); | |
| line-height: 1.02; | |
| letter-spacing: -0.5px; | |
| } | |
| .arrow-link { | |
| width: 42px; | |
| height: 36px; | |
| margin-top: 26px; | |
| } | |
| .work-zoniou { | |
| flex-direction: column; | |
| padding: 44px 20px 0; | |
| } | |
| .work-zoniou .work-media { | |
| width: 100%; | |
| } | |
| .work-zoniou .work-text { | |
| margin: 30px 0 0; | |
| } | |
| .work-shook { | |
| margin-top: 64px; | |
| } | |
| .shook-head { | |
| padding: 0 20px; | |
| } | |
| .shook-arrow { | |
| position: static; | |
| margin-top: 26px; | |
| } | |
| .shook-media { | |
| margin-top: 34px; | |
| } | |
| .work-onoma { | |
| flex-direction: column; | |
| margin-top: 64px; | |
| } | |
| .onoma-text { | |
| width: 100%; | |
| padding: 0 20px; | |
| } | |
| .onoma-media { | |
| width: calc(100% - 20px); | |
| margin: 30px 0 0 auto; | |
| } | |
| .onoma-arrow { | |
| position: static; | |
| margin: 26px 0 0 20px; | |
| order: 3; | |
| } | |
| .contact-strip { | |
| margin-top: 48px; | |
| height: auto; | |
| padding: 5.4vw 0; | |
| } | |
| .m-text, | |
| .m-link { | |
| font-size: 12.5vw; | |
| letter-spacing: -0.15vw; | |
| } | |
| .m-cursor { | |
| width: 8.4vw; | |
| height: 11vw; | |
| margin: 0.6vw 3.6vw 0 7.6vw; | |
| } | |
| .m-unit { | |
| padding-right: 6vw; | |
| } | |
| .m-link { | |
| border-bottom-width: 3px; | |
| padding-bottom: 3px; | |
| } | |
| .footer { | |
| padding: 34px 20px 22px; | |
| } | |
| .footer-about { | |
| max-width: none; | |
| font-size: 17px; | |
| line-height: 24px; | |
| text-indent: 44px; | |
| } | |
| .footer-social { | |
| margin-top: 26px; | |
| font-size: 17px; | |
| } | |
| .footer-legal { | |
| margin: 24px 0 0 12px; | |
| font-size: 11px; | |
| gap: 20px; | |
| } | |
| .footer-badge { | |
| position: static; | |
| width: 124px; | |
| height: 124px; | |
| margin-top: 30px; | |
| } | |
| } | |