Dieser CSS-Code definiert eine benutzerdefinierte Schriftfamilie namens "Guardian Headline Full" mit mehreren Schriftgewichten und -stilen. Er enthält leichte, reguläre, mittlere und halbfette Gewichte, jeweils mit normalen und kursiven Varianten. Die Schriftdateien werden in den Formaten WOFF2, WOFF und TrueType bereitgestellt, die auf den Servern des Guardian gehostet werden.
@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;
}
@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,
Der erste Buchstabe des ersten Absatzes im Artikelkörper verwendet eine spezifische Überschriftschrift, ist fett, groß, nach links ausgerichtet, in Großbuchstaben und farbig. Absätze, die auf eine horizontale Linie folgen, haben kein oberes Padding. Pullquotes sind auf 620 Pixel Breite begrenzt.
Bildunterschriften für Showcase-Elemente sind normal positioniert, mit einer vollen Breite von bis zu 620 Pixeln. Immersive-Elemente erstrecken sich über die gesamte Viewport-Breite und passen ihre maximale Breite und das Padding der Bildunterschrift auf verschiedenen Bildschirmgrößen an. Auf sehr kleinen Bildschirmen richten sie sich am linken Rand aus.
Für größere Bildschirme verwendet der Artikelkopf ein Grid-Layout. Die Überschrift hat einen oberen Rand, die Meta-Informationen sind relativ positioniert, und der Standfirst-Text hat angepasste Ränder und Link-Stilisierung, mit unterstrichenen Links, die sich bei Hover farblich ändern. Für Bildschirme mit einer Mindestbreite von 61,25em hat der erste Absatz innerhalb des Standfirst-Elements einen oberen Rand und kein unteres Padding. Wenn der Bildschirm mindestens 71,25em breit ist, wird dieser obere Rand entfernt.
Auf Bildschirmen mit mindestens 61,25em Breite haben Figuren innerhalb des Furniture-Wrappers keinen linken Rand, und Inline-Figuren mit einer bestimmten Rolle haben eine maximale Breite von 630px.
Für Bildschirme mit mindestens 71,25em Breite verwendet der Furniture-Wrapper ein detailliertes Grid-Layout für Spalten und Zeilen. Eine dekorative Linie erscheint vor dem Meta-Element, und die Standfirst-Absätze verlieren ihren oberen Rand. Eine vertikale Linie wird vor dem Standfirst-Inhalt hinzugefügt.
Auf breiteren Bildschirmen von mindestens 81,25em wird das Grid-Template mit unterschiedlichen Spalten- und Zeilenzuweisungen angepasst. Die dekorative Linie vor dem Meta-Element wird breiter, und die vertikale Linie vor dem Standfirst verschiebt sich leicht.
Überschriften haben eine maximale Breite und Schriftgröße, die auf größeren Bildschirmen zunehmen. Bestimmte Trennlinien sind auf mittelgroßen Bildschirmen ausgeblendet, und soziale sowie Kommentar-Elemente im Meta-Bereich verwenden die definierte Randfarbe. Einige Meta-Container-Elemente werden nicht angezeigt.
Der Standfirst-Bereich hat einen negativen linken Rand und relative Positionierung, mit angepasstem Padding auf größeren Bildschirmen. Absätze darin verwenden ein bestimmtes Schriftgewicht und eine bestimmte Schriftgröße.
Der Hauptmedienbereich ist relativ positioniert, hat keinen oberen Rand, einen kleinen unteren Rand und wird im 'portrait'-Grid-Bereich platziert. Der CSS-Code setzt Stile für verschiedene Elemente. Er macht Medienelemente vollständig breit ohne seitliche Ränder. Auf größeren Bildschirmen entfernt er untere Ränder für Medien, während er auf kleineren Bildschirmen die Breite und den linken Rand anpasst. Bildunterschriften sind unten mit spezifischem Padding, Farben und Sichtbarkeitskontrollen positioniert. Ein Bildunterschriften-Button ist in der unteren rechten Ecke platziert. Für interaktive Inhalte sind Überschriften in der Breite begrenzt. Auf iOS- und Android-Geräten werden spezifische Farben für den Dunkelmodus angewendet und der erste Buchstabe von Absätzen wird anders gestaltet. Artikelüberschriften erhalten auf diesen Geräten ebenfalls eine besondere Gestaltung. Für Android-Geräte wird die Höhe des Artikelkopfs in Kommentarartikeln auf Null gesetzt.
Für iOS- und Android-Geräte werden die folgenden Stile auf Furniture-Wrapper in Feature-, Standard- und Kommentarartikeln angewendet:
- Padding hinzufügen: 4px oben, 10px an den Seiten und 0 unten.
- Inhaltskennzeichnungen gestalten mit:
- Fetter Schriftstärke.
- Einer spezifischen Schriftfamilie (Guardian Headline, Guardian Egyptian Web, Guardian Headline Full, Georgia, serif).
- Farbe unter Verwendung einer benutzerdefinierten CSS-Variable (--new-pillar-colour).
- Großgeschriebenen Text.
- H1-Überschriften gestalten mit:
- Schriftgröße von 32px.
- Fetter Schriftstärke.
- Unterem Padding von 12px.
- Textfarbe auf #121212 gesetzt (mit !important).
- Bild-Figuren