Von der Pflege schlafender Löwen bis zur Behandlung spuckender Schlangen: Ein Jahr mit den Tierärzten im Londoner Zoo.

Von der Pflege schlafender Löwen bis zur Behandlung spuckender Schlangen: Ein Jahr mit den Tierärzten im Londoner Zoo.

Dieser CSS-Code richtet Stile für eine Smooth-Scrolling-Bibliothek namens Lenis ein. Er stellt sicher, dass die Seitenhöhe sich automatisch anpasst und steuert das Überlaufverhalten, wenn das Scrollen gestoppt wird. Außerdem definiert er benutzerdefinierte Schriftarten für die Schriftfamilie "Guardian Headline Full", einschließlich verschiedener Gewichte und Stile (wie Light, Regular, Medium und Semibold, jeweils in normalen und kursiven Versionen), die von bestimmten Webadressen in verschiedenen Dateiformaten geladen werden.

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-SemiboldItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-SemiboldItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-SemiboldItalic.ttf) format("truetype");
font-weight: 600;
font-style: italic;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Bold.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Bold.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Bold.ttf) format("truetype");
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BoldItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BoldItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BoldItalic.ttf) format("truetype");
font-weight: 700;
font-style: italic;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.ttf) format("truetype");
font-weight: 900;
font-style: normal;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.ttf) format("truetype");
font-weight: 900;
font-style: italic;
}

@font-face {
font-family: Guardian Titlepiece;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.ttf) format("truetype");
font-weight: 700;
font-style: normal;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Light.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Light.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Light.ttf) format("truetype");
font-weight: 300;
font-style: normal;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-LightItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-LightItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-LightItalic.ttf) format("truetype");
font-weight: 300;
font-style: italic;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Regular.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Regular.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Regular.ttf) format("truetype");
font-weight: 400;
font-style: normal;
}

Die Schriftfamilie Guardian Headline Full umfasst mehrere Stile, die jeweils in mehreren Formaten verfügbar sind. Der reguläre Stil hat ein Schriftgewicht von 400 und einen normalen Schriftstil, mit Dateien in den Formaten WOFF, WOFF2 und TrueType. Die kursive Version hat ebenfalls ein Gewicht von 400, jedoch mit einem kursiven Stil. Das mittlere Gewicht (500) gibt es sowohl in normalen als auch in kursiven Stilen. Ebenso sind die Gewichte Semibold (600) und Bold (700) in normalen und kursiven Varianten verfügbar. Das Black-Gewicht wird im WOFF2-Format bereitgestellt.

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.ttf) format("truetype");
font-weight: 900;
font-style: normal;
}

@font-face {
font-family: Guardian Headline Full;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.ttf) format("truetype");
font-weight: 900;
font-style: italic;
}

@font-face {
font-family: Guardian Titlepiece;
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.ttf) format("truetype");
font-weight: 700;
font-style: normal;
}

#article-body>div .content--interactive-grid,
.content--interactive>div .content--interactive-grid,
#comment-body .content--interactive-grid,
[data-gu-name=body] .content--interactive-grid,
#feature-body .content--interactive-grid {
grid-column-gap: 0px;
grid-template-columns: 100%;
grid-template-areas: "media" "title" "headline" "standfirst" "lines" "meta" "body";
}

@media (min-width: 30em) {
#article-body>div .content--interactive-grid figure.element--immersive figcaption,
.content--interactive>div .content--interactive-grid figure.element--immersive figcaption,
#comment-body .content--interactive-grid figure.element--immersive figcaption,
[data-gu-name=body] .content--interactive-grid figure.element--immersive figcaption,
#feature-body .content--interactive-grid figure.element--immersive figcaption {
padding: 0 20px;
max-width: 620px;
}
}

@media (min-width: 46.25em) {
#article-body>div .content--interactive-grid,
.content--interactive>div .content--interactive-grid,
#comment-body .content--interactive-grid,
[data-gu-name=body] .content--interactive-grid,
#feature-body .content--interactive-grid {
grid-template-columns: 100%;
grid-column-gap: 10px;
grid-template-areas: "title" "headline" "standfirst" "media" "lines" "meta" "body";
}
#article-body>div .content--interactive-grid #maincontent,
.content--interactive>div .content--interactive-grid #maincontent,
#comment-body .content--interactive-grid #maincontent,
[data-gu-name=body] .content--interactive-grid #maincontent,
#feature-body .content--interactive-grid #maincontent {
padding-right: 80px;
}
}

@media (min-width: 61.25em) {
#article-body>div .content--interactive-grid,
.content--interactive>div .content--interactive-grid,
#comment-body .content--interactive-grid,
[data-gu-name=body] .content--interactive-grid,
#feature-body .content--interactive-grid {
grid-template-columns: 620px 300px;
grid-template-areas: "title right-column" "headline right-column" "standfirst right-column" "media right-column" "lines right-column" "meta right-column" "body right-column" ". right-column";
}
#article-body>div .content--interactive-grid #maincontent,
.content--interactive>div .content--interactive-grid #maincontent,
#comment-body .content--interactive-grid #maincontent,
[data-gu-name=body] .content--interactive-grid #maincontent,
#feature-body .content--interactive-grid #maincontent {
padding-right: unset;
}
}

@media (min-width: 71.25em) {
#article-body>div .content--interactive-grid,
.content--interactive>div .content--interactive-grid,
#comment-body .content--interactive-grid,
[data-gu-name=body] .content--interactive-grid,
#feature-body .content--interactive-grid {
grid-template-columns: 140px 1px 620px 300px;
grid-template-areas: "title border headline right-column" ". border standfirst right-column" ". border media right-column" ". border body right-column" ". border . right-column";
}
#article-body>div .content--interactive-grid .content__standfirst,
.content--interactive>div .content--interactive-grid .content__standfirst,
#comment-body .content--interactive-grid .content__standfirst,
[data-gu-name=body] .content--interactive-grid .content__standfirst,
#feature-body .content--interactive-grid .content__standfirst {
/ Die Regel wird hier fortgesetzt /
}
}

Der CSS-Code legt spezifische Stile für verschiedene Elemente fest. Für interaktive Rasterinhalte entfernt er den unteren Abstand vom Standfirst-Bereich und passt den Abstand für Bildunterschriften bei immersiven Figuren an. Außerdem positioniert er Linien und Metadaten innerhalb eines Rasterlayouts und legt deren Höhe und Abstände fest.

Auf größeren Bildschirmen verwendet das Raster definierte Spaltenbreiten. Für Mobilgeräte modifiziert es die Typografie in Artikelüberschriften, macht Abschnittsnamen großgeschrieben und passt die Stile von Autorennamen an. Es stellt auch sicher, dass Bilder korrekt angezeigt werden, und verwaltet den Abstand um eingebettete Elemente.

Eine Scroll-Tooltip wird mit einem Farbverlaufshintergrund gestaltet und am unteren Rand des Viewports positioniert, während feststehende Bildunterschriften eine feste Höhe und absolute Positionierung erhalten.Die feststehende Bildunterschriftenleiste ist unten links auf dem Bildschirm positioniert und hat einen dunklen Hintergrund. Sie verwendet ein flexibles Layout, um ihre Inhalte zu verteilen, und beinhaltet Abstände. Auf größeren Bildschirmen fügt sie einen linken Rand hinzu und passt ihren linken Außenabstand an.

Innerhalb enthält ein Bildunterschriften-Wrapper die Bildunterschriften. Jede Bildunterschrift verwendet eine Flex-Darstellung mit kleinen Abständen zwischen den Elementen. Symbole innerhalb der Bildunterschriften haben feste Abmessungen und eine spezifische Füllfarbe. Der Bildunterschriftentext verwendet eine bestimmte Schriftart, wird bei Bedarf mit Auslassungspunkten gekürzt und entspricht der Textfarbe des Artikels.

Eine Umschaltfläche für die Bildunterschriften ist transparent und ohne Rahmen, am unteren Ende der Leiste positioniert. Ihr Symbol dreht und skaliert sanft beim Überfahren mit der Maus. Im erweiterten Zustand passt die Bildunterschriftenleiste ihre Höhe an, zeigt Bildunterschriften normal ohne Kürzung an und ändert die Drehung des Umschaltsymbols.

Für iOS- und Android-Geräte werden die Ränder von Bildunterschriftenabsätzen entfernt, und bestimmte Span-Elemente werden ein- oder ausgeblendet. Im erweiterten Zustand auf diesen Geräten schwebt der erste Bildunterschriftenabsatz links, und der zweite wird als Block angezeigt. Auf iOS wird auch die untere Position der feststehenden Leiste angepasst.

CSS-Custom-Properties (CSS-Variablen) definieren ein dunkles Farbschema für verschiedene Artikelelemente wie Hintergrund, Text, Links und Akzente. Diese Variablen werden für das Root- und die Artikelelemente gesetzt, mit einigen Anpassungen für Hover-Zustände.

Eine Media-Query wendet eine Präferenz für ein dunkles Farbschema an und legt spezifische Farben für Elemente wie Blockzitate und Hintergründe fest, sofern nicht explizit ein helles Schema gewählt wurde.

Die Artikelüberschrift verwendet ein Rasterlayout, um Bereiche wie Medien, Titel und Körper anzuordnen. Eine horizontale Klasse fügt oberen Außenabstand und unteren Innenabstand hinzu. Der Hauptkörperinhalt hat auf kleineren Bildschirmen negative Seitenränder, die auf größeren entfernt werden. Spezif