Hvordan venstrefløjen kan generobre internettet og komme tilbage | Robert Topinka

Hvordan venstrefløjen kan generobre internettet og komme tilbage | Robert Topinka
Denne CSS-kode definerer en brugerdefineret skrifttypefamilie kaldet "Guardian Headline Full" med flere stilarter og vægte. Den inkluderer let, normal, medium og semibold versioner, hver tilgængelig i både normal og kursiv stil. Skrifttypefilerne er hostet online og leveres i tre formater: WOFF2, WOFF og TrueType, hvilket sikrer kompatibilitet på tværs af forskellige browsere. @media (min-width: 71.25em) { .content__main-column--interactive { margin-left: 160px; } } @media (min-width: 81.25em) { .content__main-column--interactive { margin-left: 240px; } } .content__main-column--interactive .element-atom { max-width: 620px; } @media (max-width: 46.24em) { .content__main-column--interactive .element-atom { max-width: 100%; } } .content__main-column--interactive .element-showcase { margin-left: 0; } @media (min-width: 46.25em) { .content__main-column--interactive .element-showcase { max-width: 620px; } } @media (min-width: 71.25em) { .content__main-column--interactive .element-showcase { max-width: 860px; } } .content__main-column--interactive .element-immersive { max-width: 1100px; } @media (max-width: 46.24em) { .content__main-column--interactive .element-immersive { width: calc(100vw - var(--scrollbar-width, 0px)); position: relative; left: 50%; right: 50%; margin-left: calc(-50vw + var(--half-scrollbar-width, 0px)) !important; margin-right: calc(-50vw + var(--half-scrollbar-width, 0px)) !important; } } @media (min-width: 46.25em) { .content__main-column--interactive .element-immersive { transform: translate(-20px); width: calc(100% + 60px); } } @media (max-width: 71.24em) { .content__main-column--interactive .element-immersive { margin-left: 0; margin-right: 0; } } @media (min-width: 71.25em) { .content__main-column--interactive .element-immersive { transform: translate(0); width: auto; } } @media (min-width: 81.25em) { .content__main-column--interactive .element-immersive { max-width: 1260px; } } .content__main-column--interactive p, .content__main-column--interactive ul { max-width: 620px; } .content__main-column--interactive:before { position: absolute; top: 0; height: calc(100% + 15px); min-height: 100px; content: ""; } @media (min-width: 71.25em) { .content__main-column--interactive:before { border-left: 1px solid #dcdcdc; z-index: -1; left: -10px; } } @media (min-width: 81.25em) { .content__main-column--interactive:before { border-left: 1px solid #dcdcdc; left: -11px; } } .content__main-column--interactive .element-atom { margin-top: 0; margin-bottom: 0; padding-bottom: 12px; padding-top: 12px; } .content__main-column--interactive p + .element-atom { padding-top: 0; padding-bottom: 0; margin-top: 12px; margin-bottom: 12px; } .content__main-column--interactive .element-inline { max-width: 620px; } @media (min-width: 61.25em) { figure[data-spacefinder-role="inline"].element { max-width: 620px; } } :root { --dateline: #606060; --headerBorder: #dcdcdc; --captionText: #999; --captionBackground: hsla(0, 0%, 7%, 0.72); --feature: #c70000; --new-pillar-colour: var(--primary-pillar, var(--feature)); } :root:root { --subheading-text: var(--secondary-pillar); --pullquote-text: var(--secondary-pillar); --pullquote-icon: var(--secondary-pillar); --block-quote-text: var(--article-text); } :root:root blockquote { --block-quote-fill: var(--secondary-pillar); } @media (prefers-color-scheme: dark) { :root:root:not([data-color-scheme="light"]) { --subheading-text: var(--darkmode-pillar); --pullquote-text: var(--darkmode-pillar); --pullquote-icon: var(--darkmode-pillar); } :root:root:not([data-color-scheme="light"]) blockquote { --block-quote-fill: var(--darkmode-pillar); } } .content__main-column--interactive .element.element-atom, .element.element-atom { padding: 0; } #article-body > div .element-atom:first-of-type + p:first-of-type, #article-body > div .element-atom:first-of-type + .sign-in-gate + p:first-of-type, #article-body > div .element-atom:first-of-type + #sign-in-gate + p:first-of-type, #article-body > div hr:not(.last-horizontal-rule) + p, .content--interactive > div .element-atom:first-of-type + p:first-of-type, .content--interactive > div .element-atom:first-of-type + .sign-in-gate + p:first-of-type, .content--interactive > div .element-atom:first-of-type + #sign-in-gate + p:first-of-type, .content--interactive > div hr:not(.last-horizontal-rule) + p, #comment-body .element-atom:first-of-type + p:first-of-type, #comment-body .element-atom:first-of-type + .sign-in-gate + p:first-of-type, #comment-body .element-atom:first-of-type + #sign-in-gate + p:first-of-type, #comment-body hr:not(.last-horizontal-rule) + p, [data-gu-name="body"] .element-atom:first-of-type + p:first-of-type, [data-gu-name="body"] .element-atom:first-of-type + .sign-in-gate + p:first-of-type, [data-gu-name="body"] .element-atom:first-of-type + #sign-in-gate + p:first-of-type, [data-gu-name="body"] hr:not(.last-horizontal-rule) + p, #feature-body .element-atom:first-of-type + p:first-of-type, #feature-body .element-atom:first-of-type + .sign-in-gate + p:first-of-type, #feature-body .element-atom:first-of-type + #sign-in-gate + p:first-of-type, #feature-body hr:not(.last-horizontal-rule) + p { padding-top: 14px; } #article-body > div .element-atom:first-of-type + p:first-of-type:first-letter, #article-body > div .element-atom:first-of-type + .sign-in-gate + p:first-of-type:first-letter, #article-body > div .element-atom:first-of-type + #sign-in-gate + p:first-of-type:first-letter, #article-body > div hr:not(.last-horizontal-rule) + p:first-letter, .content--interactive > div .element-atom:first-of-type + p:first-of-type:first-letter, .content--interactive > div .element-atom:first-of-type + .sign-in-gate + p:first-of-type:first-letter, .content--interactive > div .element-atom:first-of-type + #sign-in-gate + p:first-of-type:first-letter, .content--interactive > div hr:not(.last-horizontal-rule) + p:first-letter, #comment-body .element-atom:first-of-type + p:first-of-type:first-letter, #comment-body .element-atom:first-of-type + .sign-in-gate + p:first-of-type:first-letter, #comment-body .element-atom:first-of-type + #sign-in-gate + p:first-of-type:first-letter, #comment-body hr:not(.last-horizontal-rule) + p:first-letter, [data-gu-name="body"] .element-atom:first-of-type + p:first-of-type:first-letter, [data-gu-name="body"] .element-atom:first-of-type + .sign-in-gate + p:first-of-type:first-letter, [data-gu-name="body"] .element-atom:first-of-type + #sign-in-gate + p:first-of-type:first-letter, [data-gu-name="body"] hr:not(.last-horizontal-rule) + p:first-letter, #feature-body .element-atom:first-of-type + p:first-of-type:first-letter, #feature-body .element-atom:first-of-type + .sign-in-gate + p:first-of-type:first-letter, #feature-body .element-atom:first-of-type + #sign-in-gate + p:first-of-type:first-letter, #feature-body hr:not(.last-horizontal-rule) + p:first-letter { font-family: Guardian Headline Full, Guardian Egyptian Web, Georgia, serif; font-weight: 700; font-size: 60px; line-height: 60px; text-transform: uppercase; float: left; margin-right: 4px; margin-top: 2px; color: var(--new-pillar-colour); } #article-body > div hr:not(.last-horizontal-rule) + p, .content--interactive > div hr:not(.last-horizontal-rule) + p, #comment-body hr:not(.last-horizontal-rule) + p, [data-gu-name="body"] hr:not(.last-horizontal-rule) + p, #feature-body hr:not(.last-horizontal-rule) + p { padding-top: 0; } .content__main-column--interactive .element-pullquote { max-width: 620px; } .content__main-column--interactive .element-showcase figcaption { position: static; max-width: 620px; width: 100%; } .content__main-column--interactive .element-immersive { width: 100vw; width: calc(100vw - var(--scrollbar-width, 0px)); margin-left: calc(-50vw + var(--half-scrollbar-width, 0px)); margin-right: calc(-50vw + var(--half-scrollbar-width, 0px)); } @media (min-width: 46.25em) { .content__main-column--interactive .element-immersive { max-width: 1100px; margin-left: auto; margin-right: auto; } } @media (max-width: 46.24em) { .content__main-column--interactive .element-immersive { margin-left: calc(-50vw + var(--half-scrollbar-width, 0px)) !important; margin-right: calc(-50vw + var(--half-scrollbar-width, 0px)) !important; } } .content__main-column--interactive .element-immersive figcaption { padding-left: 10px; padding-right: 10px; } @media (min-width: 30em) { .content__main-column--interactive .element-immersive figcaption { padding-left: 20px; padding-right: 20px; } } @media (min-width: 81.25em) { .article__header { display: grid; grid-template-columns: 1fr minmax(0, 620px) 1fr; grid-template-rows: auto auto auto; } } .article__header .headline { border-top: 1px solid var(--headerBorder); } .article__header .meta { position: relative; } .article__header .standfirst a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--new-pillar-colour); } .article__header .standfirst a:hover { text-decoration-color: var(--article-text); } .article__header .standfirst p:first-of-type { border-top: 1px solid var(--headerBorder); } Den leverede tekst ser ud til at være CSS-kode til styling af en websidelayout, specifikt for en komponent eller wrapper ved navn "furniture-wrapper." Den definerer stilarter for forskellige skærmstørrelser, herunder justeringer for grid-layouts, kanter, skrifttyper og elementers synlighed. Koden sætter regler for overskrifter, metainformation, standfirst-tekst og medieelementer og styrer deres udseende på tværs af forskellige enheder. [data-gu-name=media] div div { width: 100%; margin-inline: 0; } @media (min-width: 61.25em) { .furniture-wrapper #main-media, .furniture-wrapper [data-gu-name=media] { margin-bottom: 0; } } @media (max-width: 46.24em) { .furniture-wrapper #main-media, .furniture-wrapper [data-gu-name=media] { width: calc(100vw - var(--scrollbar-width, 0px)); margin-left: -10px; } } @media (max-width: 46.24em) and (min-width: 30em) { .furniture-wrapper #main-media, .