๋ค์์ ์ ๊ณต๋ ํ
์คํธ๋ฅผ ํ๊ตญ์ด๋ก ๋ฒ์ญํ ๊ฒ์
๋๋ค. (์ถ๊ฐ, ๋ณ๊ฒฝ ๋๋ ๋์ฒด ๋ฒ์ญ ์ ์ ์์ด ์๋ฌธ ๊ทธ๋๋ก ๋ฒ์ญํ์ต๋๋ค.)
๋จ๋ฝ ํ
์คํธ๋ GuardianTextEgyptian, Guardian Text Egyptian Web, Georgia ๋๋ serif ๊ธ๊ผด์ ์ฌ์ฉํฉ๋๋ค. 0.9375rem ํฌ๊ธฐ, ์ค ๋์ด 1.4, ์ผ๋ฐ ๋๊ป, ์ผ๋ฐ ์คํ์ผ๋ก ์ค์ ๋ฉ๋๋ค. ํ
์คํธ ์ฅ์ ๋๊ป๋ 2px์
๋๋ค.
์ ๋ชฉ 2๋ GH Guardian Headline, Guardian Egyptian Web, Georgia ๋๋ serif ๊ธ๊ผด์ ์ฌ์ฉํฉ๋๋ค. 1.5rem ํฌ๊ธฐ, ์ค ๋์ด 1.15, ๊ตต์ ๋๊ป, ์ผ๋ฐ ์คํ์ผ๋ก ์ค์ ๋ฉ๋๋ค. ํ
์คํธ ์ฅ์ ๋๊ป๋ 3px์
๋๋ค.
"src-headline-medium-17" ํด๋์ค๋ GH Guardian Headline, Guardian Egyptian Web, Georgia ๋๋ serif ๊ธ๊ผด์ ์ฌ์ฉํฉ๋๋ค. 1.0625rem ํฌ๊ธฐ, ์ค ๋์ด 1.15, ์ค๊ฐ ๋๊ป(500), ์ผ๋ฐ ์คํ์ผ๋ก ์ค์ ๋ฉ๋๋ค. ํ
์คํธ ์ฅ์ ๋๊ป๋ 2px์
๋๋ค.
"src-text-sans-14" ํด๋์ค๋ GuardianTextSans, Guardian Text Sans Web, Helvetica Neue, Helvetica, Arial, Lucida Grande ๋๋ sans-serif ๊ธ๊ผด์ ์ฌ์ฉํฉ๋๋ค. 0.875rem ํฌ๊ธฐ, ์ค ๋์ด 1.3, ์ผ๋ฐ ๋๊ป, ์ผ๋ฐ ์คํ์ผ๋ก ์ค์ ๋ฉ๋๋ค. ํ
์คํธ ์ฅ์ ๋๊ป๋ 2px์
๋๋ค.
"src-text-sans-bold-17" ํด๋์ค๋ GuardianTextSans, Guardian Text Sans Web, Helvetica Neue, Helvetica, Arial, Lucida Grande ๋๋ sans-serif ๊ธ๊ผด์ ์ฌ์ฉํฉ๋๋ค. 1.0625rem ํฌ๊ธฐ, ์ค ๋์ด 1.3, ๊ตต์ ๋๊ป(700), ์ผ๋ฐ ์คํ์ผ๋ก ์ค์ ๋ฉ๋๋ค. ํ
์คํธ ์ฅ์ ๋๊ป๋ 2px์
๋๋ค.
์ฌ์ฉ์ ์ ์ ์์ฑ "--src-brand-400"์ #052962๋ก ์ค์ ๋ฉ๋๋ค.
์คํฌ๋ฆฝํ
์ด ํ์ฑํ๋๋ฉด, "content--interactive" ํด๋์ค๊ฐ ์๋ ๊ธฐ์ฌ์ ๊ทธ ํ์ div, ๊ทธ๋ฆฌ๊ณ "article" ํด๋์ค๊ฐ ์๋ ์์๋ ์ฒ์์ ๋ถํฌ๋ช
๋ 0๊ณผ overflow hidden์ผ๋ก ์จ๊ฒจ์ง๋๋ค. ํ์ด์ง๊ฐ ๋ก๋๋๋ฉด("interactive-loaded" ํด๋์ค๋ก ํ์๋จ), ์ด ์์๋ค์ ๋ถ๋๋ฌ์ด 1์ด ์ ํ๊ณผ ํจ๊ป ์์ ํ ํ์๋๊ณ overflow๋ "unset"์ผ๋ก ์ค์ ๋ฉ๋๋ค.
"Guardian Headline Full" ๊ธ๊ผด์ ์ฌ๋ฌ ์คํ์ผ๋ก ๋ก๋๋ฉ๋๋ค. ์ผ๋ฐ ์คํ์ผ์ ๊ฐ๋ ๋๊ป(300)์ ๊ฒฝ์ฐ, ๊ธ๊ผด ํ์ผ์ Guardian์ ์์ฐ์์ ๊ฐ์ ธ์ต๋๋ค. ๊ฐ๋ ์ดํค๋ฆญ, ์ผ๋ฐ(400) ์ผ๋ฐ, ์ผ๋ฐ ์ดํค๋ฆญ, ์ค๊ฐ(500) ์ผ๋ฐ, ์ค๊ฐ ์ดํค๋ฆญ ์คํ์ผ์๋ ๋์ผํ๊ฒ ์ ์ฉ๋ฉ๋๋ค. ๊ฐ๊ฐ ์ ์ ํ woff2, woff ๋ฐ truetype ํ์์ ์ฌ์ฉํฉ๋๋ค.
```css
@font-face { font-family: Guardian Headline Full; src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-MediumItalic.woff2) format("woff2"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-MediumItalic.woff) format("woff"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-MediumItalic.ttf) format("truetype"); font-weight: 500; font-style: italic; }
@font-face { font-family: Guardian Headline Full; src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Semibold.woff2) format("woff2"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Semibold.woff) format("woff"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Semibold.ttf) format("truetype"); font-weight: 600; font-style: normal; }
@font-face { font-family: Guardian Headline Full; src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-SemiboldItalic.woff2) format("woff2"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-SemiboldItalic.woff) format("woff"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-Bold.woff2) format("woff2"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Bold.woff) format("woff"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-BoldItalic.woff2) format("woff2"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-BoldItalic.woff) format("woff"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-Black.woff2) format("woff2"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Black.woff) format("woff"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-BlackItalic.woff2) format("woff2"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-BlackItalic.woff) format("woff"), url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-BlackItalic.ttf) format("truetype"); font-weight: 900; font-style: italic; }
@font-face { font-family: Guardian Titlepiece; src: url(https://interactive.guim.co.uk/fonts/garnett/GTGuardianTitlepiece-Bold.woff2) format("woff2"), url(https://interactive.guim.co.uk/fonts/garnett/GTGuardianTitlepiece-Bold.woff) format("woff"), url(https://interactive.guim.co.uk/fonts/garnett/GTGuardianTitlepiece-Bold.ttf) format("truetype"); font-weight: 700; font-style: normal; }
:root:root [data-gu-name="media"], :root:root [data-gu-name="title"], :root:root [data-gu-name="headline"], :root:root [data-gu-name="standfirst"], :root:root [data-gu-name="lines"], :root:root [data-gu-name="meta"], :root:root [data-link-name="article section"] { display: none; }
:root:root article { --standfirst-text: #adc8f4; --byline: #adc8f4; --article-background: #224a8a; --article-text: #1a1a1a; --article-link-text: #ffffff; --textblock-text: #adc8f4; --article-border: #0077b6; --straight-lines: #224a8a; --share-button: #adc8f4; --share-button-border: #a; }
```
๋ค์์ ์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด๋ก ๋ค์ ์์ฑ๋ ํ
์คํธ์
๋๋ค:
```css
dc8f4}:root:root article figure.element-atom {
margin: 0;
}
:root:root .back-button {
border: 1px solid lightgray;
font-family: Guardian Text Sans Web, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;
font-size: 17px;
padding: 6px 18px;
border-radius: 40px;
width: fit-content;
display: flex;
align-items: center;
gap: 6px;
}
html.no-scroll {
overflow: hidden;
}
h2 {
color: var(--src-brand-400);
}
a {
border-bottom: none !important;
text-decoration: none;
}
img {
max-width: 100%;
max-height: 100%;
}
article {
position: relative;
}
/*
* ์ฌ์ ์ค์ ๋ Guardian ์ค๋จ์ ๊ณผ ํจ๊ป sass-mq์ `mq` ๋ฏน์ค์ธ์ ์ ๊ณตํฉ๋๋ค.
* ๋ค์๊ณผ ๊ฐ์ด ์ฌ์ฉํ์ธ์:
*
* `@include mq(leftCol) ...`
*
* ์ฌ์ฉ ๊ฐ๋ฅํ ์ค๋จ์ :
* - desktop: 61.25em
* - leftCol: 71.25em
* - mobile: 20em
* - mobileLandscape: 30em
* - mobileMedium: 23.4375em
* - phablet: 41.25em
* - tablet: 46.25em
* - wide: 81.25em
*/
/*
* ์ด ํ์ผ์ src/source/generate/breakpoints.js์ ์ํด ์๋ ์์ฑ๋ฉ๋๋ค.
*/
/*
* ์ด ํ์ผ์ src/source/generate/typography.js์ ์ํด ์๋ ์์ฑ๋ฉ๋๋ค.
*/
/
* ๋ฐ์ดํฐ ๊ธ๊ผด ์คํ
*
* @group typography
*/
/
* ์ธ๋ฆฌํ ๊ธ๊ผด ์คํ
*
* @group typography
*/
/
* ์ ๋ชฉ ๊ธ๊ผด ์คํ
*
* @group typography
*/
/
* ์ฐ์ธ๋ฆฌํ ํ
์คํธ ๊ธ๊ผด ์คํ
*
* @group typography
*/
/
* ์ฐ์ธ๋ฆฌํ ์ ๋ชฉ ๊ธ๊ผด ์คํ
*
* @group typography
*/
/
* ๊ธฐ๋ณธ ๊ธ๊ผด ํฌ๊ธฐ ์ค์
* ์๊ฐ์ ์์๋ font-scale.html ๋ฐ font-scale.png๋ฅผ ์ฐธ์กฐํ์ธ์.
*
* @group typography
*/
/
* ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ์์ ๊ธ๊ผด์ ๋ชจ๋ ์์ค ๊ฐ์ ธ์ค๊ธฐ
*
* @param {String} $name - ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ ๋งคํธ๋ฆญ์ค์ ์ด๋ฆ (์: headline)
* @param {Map} $font-scale ($font-scale)
*
* @example
* font-size: get-scale(header);
*
* @requires {variable} $font-scale
*
* @return {Map}
*
* @group typography
*/
/
* ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ์ ํน์ ์์ค์ ๋ํ ์ ๋ณด ๊ฐ์ ธ์ค๊ธฐ
*
* @param {String} $name - ๋งคํธ๋ฆญ์ค ๋ด ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ์ ์ด๋ฆ (์: headline)
* @param {Number} $level - ๋งคํธ๋ฆญ์ค ๋ด ์์ค
* @param {Map} $font-scale ($font-scale)
*
* @example
* font-size: get-scale-level(header, 1);
*
* @requires {variable} $font-scale
* @requires {function} get-scale
*
* @return {Map}
*
* @group typography
*/
/
* ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ ๋งคํธ๋ฆญ์ค์ ์์ค์ ๋ํ ๊ธ๊ผด ํฌ๊ธฐ ๊ฐ์ ธ์ค๊ธฐ
*
* @param {String} $name - ๋งคํธ๋ฆญ์ค ๋ด ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ์ ์ด๋ฆ (์: headline)
* @param {Number} $level - ๋งคํธ๋ฆญ์ค ๋ด ์์ค
* @param {Map} $font-scale - ๊ตฌ์ฑ
*
* @example
* font-size: get-font-size(header, 3);
*
* @requires {variable} $font-scale
* @requires {function} convert-to-px
* @requires {function} get-scale-level
*
* @return {Number}
*
* @group typography
*/
/
* ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ ๋งคํธ๋ฆญ์ค์ ์์ค์ ๋ํ ์ค ๋์ด ๊ฐ์ ธ์ค๊ธฐ
*
* @param {String} $name - ๋งคํธ๋ฆญ์ค ๋ด ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ์ ์ด๋ฆ (์: headline)
* @param {Number} $level - ๋งคํธ๋ฆญ์ค ๋ด ์์ค
* @param {Map} $font-scale - ๊ตฌ์ฑ
*
* @example
* font-size: get-line-height(header, 3);
*
* @requires {variable} $font-scale
* @requires {function} convert-to-px
* @requires {function} get-scale-level
*
* @return {Number}
*
* @group typography
*/
/
* ๋ชจ๋ ๊ฐ์ ํฝ์
๋ก ๋ณํ
*
* @param {Number} $value
*
* @example
* font-size: convert-to-px(14); // 14px
*
* @return {Number}
*
* @group typography
*/
/
* ๊ธฐ๋ณธ ํ์ดํฌ๊ทธ๋ํผ ์ค์ , HTML์์ ๊ฐ๋ฅํ ํ ๋นจ๋ฆฌ ํฌํจ๋์ด์ผ ํจ
* 1. ํ
์คํธ ๋ ๋๋ง์ ๋ ์ ๋ช
ํ๊ฒ ๋ง๋ญ๋๋ค.
2. ์๋ ์ค ๊ฐ๊ฒฉ์ 1.5๋ก ์ค์ ํฉ๋๋ค (16px 1.5 = 24px).
*
* @param {String} $font-family ($f-serif-text) - ๊ธฐ๋ณธ ์ ์ญ ๊ธ๊ผด
*
* @requires {variable} $f-serif-text
*
* @group typography
*/
/
* ๊ธ๊ผด ํฌ๊ธฐ ๋ฐ ์ค ๋์ด ์ฝ์ด
*
* @param {Number} $size
* @param {Number} $line-height ($size)
*
* @example
* @include font-size(18, 24);
*
* @requires {function} convert-to-px
*
* @group typography
*/
/
* ๊ธ๊ผด ์คํ์ผ ์ง์ ์ฝ์ด
* ์ฐธ๊ณ : ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ์ ์ผ๊ด์ฑ์ ์ ์งํ๋ ค๋ฉด ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ ๋ฏน์ค์ธ์ ์ฌ์ฉํ๋ ๊ฒ์ด ์ข์ต๋๋ค.
*
* @param {String} $family
* @param {String} $weight
* @param {Number} $size
* @param {Number} $line-height ($size)
*
* @example
* @include font(arial, bold, 18, 24);
*
* @requires {mixin} font-size
*
* @group typography
*/
```ํ์ดํฌ๊ทธ๋ํผ
ํค๋ ๊ธ๊ผด ๋ชจ์ ๋ฐ ๋๊ป ์์ฑ
๋ณ์ `$f-serif-headline`์ด ํ์ํฉ๋๋ค.
๊ทธ๋ฃน: typography
ํค๋ ํ์ดํฌ๊ทธ๋ํผ ์ค์
๋งค๊ฐ๋ณ์:
- `$level` (Number)
- `$size-only` (Boolean)
์์:
- ๋ชจ๋ ์์ฑ(font-size, line-height, family, weight) ํฌํจ:
`@include fs-header(3);`
- font-size์ line-height๋ง ํฌํจ:
`@include fs-header(3, $size-only: true);`
ํ์ ํญ๋ชฉ:
- ํจ์ `get-font-size`
- ํจ์ `get-line-height`
- ๋ฏน์ค์ธ `font-size`
- ๋ฏน์ค์ธ `f-header`
๊ทธ๋ฃน: typography
---
์ ๋ชฉ ๊ธ๊ผด ๋ชจ์ ๋ฐ ๋๊ป ์์ฑ
๋ณ์ `$f-serif-headline`์ด ํ์ํฉ๋๋ค.
๊ทธ๋ฃน: typography
์ ๋ชฉ ํ์ดํฌ๊ทธ๋ํผ ์ค์
๋งค๊ฐ๋ณ์:
- `$level` (Number)
- `$size-only` (Boolean)
์์:
- ๋ชจ๋ ์์ฑ(font-size, line-height, family, weight) ํฌํจ:
`@include fs-headline(3);`
- font-size์ line-height๋ง ํฌํจ:
`@include fs-headline(3, $size-only: true);`
ํ์ ํญ๋ชฉ:
- ํจ์ `get-font-size`
- ํจ์ `get-line-height`
- ๋ฏน์ค์ธ `font-size`
- ๋ฏน์ค์ธ `f-headline`
๊ทธ๋ฃน: typography
---
๋ณธ๋ฌธ ์ ๋ชฉ ๊ธ๊ผด ๋ชจ์ ๋ฐ ๋๊ป ์์ฑ
๋ณ์ `$f-serif-text`๊ฐ ํ์ํฉ๋๋ค.
๊ทธ๋ฃน: typography
๋ณธ๋ฌธ ์ ๋ชฉ ํ์ดํฌ๊ทธ๋ํผ ์ค์
๋งค๊ฐ๋ณ์:
- `$level` (Number)
- `$size-only` (Boolean)
์์:
- ๋ชจ๋ ์์ฑ(font-size, line-height, family, weight) ํฌํจ:
`@include fs-bodyHeading(3);`
- font-size์ line-height๋ง ํฌํจ:
`@include fs-bodyHeading(3, $size-only: true);`
ํ์ ํญ๋ชฉ:
- ํจ์ `get-font-size`
- ํจ์ `get-line-height`
- ๋ฏน์ค์ธ `font-size`
- ๋ฏน์ค์ธ `f-bodyHeading`
๊ทธ๋ฃน: typography
---
๋ณธ๋ฌธ ๋ณต์ฌ ๊ธ๊ผด ๋ชจ์ ์์ฑ
๋ณ์ `$f-serif-text`๊ฐ ํ์ํฉ๋๋ค.
๊ทธ๋ฃน: typography
๋ณธ๋ฌธ ๋ณต์ฌ ํ์ดํฌ๊ทธ๋ํผ ์ค์
๋งค๊ฐ๋ณ์:
- `$level` (Number)
- `$size-only` (Boolean)
์์:
- ๋ชจ๋ ์์ฑ(font-size, line-height, family) ํฌํจ:
`@include fs-bodyCopy(3);`
- font-size์ line-height๋ง ํฌํจ:
`@include fs-bodyCopy(3, $size-only: true);`
ํ์ ํญ๋ชฉ:
- ํจ์ `get-font-size`
- ํจ์ `get-line-height`
- ๋ฏน์ค์ธ `font-size`
- ๋ฏน์ค์ธ `f-bodyCopy`
๊ทธ๋ฃน: typography
---
๋ฐ์ดํฐ ๊ธ๊ผด ๋ชจ์ ์์ฑ
๋ณ์ `$f-data`๊ฐ ํ์ํฉ๋๋ค.
๊ทธ๋ฃน: typography
๋ฐ์ดํฐ ํ์ดํฌ๊ทธ๋ํผ ์ค์
๋งค๊ฐ๋ณ์:
- `$level` (Number)
- `$size-only` (Boolean)
์์:
- ๋ชจ๋ ์์ฑ(font-size, line-height, family) ํฌํจ:
`@include fs-data(3);`
- font-size์ line-height๋ง ํฌํจ:
`@include fs-data(3, $size-only: true);`
ํ์ ํญ๋ชฉ:
- ํจ์ `get-font-size`
- ํจ์ `get-line-height`
- ๋ฏน์ค์ธ `font-size`
- ๋ฏน์ค์ธ `f-data`
๊ทธ๋ฃน: typography
---
ํ
์คํธ ์ฐ์ธ๋ฆฌํ ๊ธ๊ผด ๋ชจ์ ์์ฑ
๋ณ์ `$f-sans-serif-text`๊ฐ ํ์ํฉ๋๋ค.
๊ทธ๋ฃน: typography
ํ
์คํธ ์ฐ์ธ๋ฆฌํ ํ์ดํฌ๊ทธ๋ํผ ์ค์
๋งค๊ฐ๋ณ์:
- `$level` (Number)
- `$size-only` (Boolean)
์์:
- ๋ชจ๋ ์์ฑ(font-size, line-height, family) ํฌํจ:
`@include fs-textSans(3);`
- font-size์ line-height๋ง ํฌํจ:
`@include fs-textSans(3, $size-only: true);`
ํ์ ํญ๋ชฉ:
- ํจ์ `get-font-size`
- ํจ์ `get-line-height`
- ๋ฏน์ค์ธ `font-size`
- ๋ฏน์ค์ธ `f-textSans`
๊ทธ๋ฃน: typography
---
์ ๋ชฉ ์ฐ์ธ๋ฆฌํ ๊ธ๊ผด ๋ชจ์ ์์ฑ
ํ์ฌ ์ด๊ฒ์ ๊ธ๊ผด ํฌ๊ธฐ ์กฐ์ ํ ๋งคํธ๋ฆญ์ค์ ์ผ๋ถ๊ฐ ์๋๋ฏ๋ก ์ด์ ๋ํ `fs-` ๋ฏน์ค์ธ์ด ์์ต๋๋ค. ํ์ฌ๋ก์๋ ๋ช๋ช ์์น์์ ๋์ฒด ๊ธ๊ผด๋ก๋ง ์ฌ์ฉํฉ๋๋ค.
๋ณ์ `$f-sans-serif-headline`์ด ํ์ํฉ๋๋ค.
๊ทธ๋ฃน: typography
---
@font-face
```css
@font-face {
font-family: "Guardian Headline Full";
src: url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Light.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Light.woff") format("woff");
}
```@font-face {
font-family: "Guardian Headline Full";
src: url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Light.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Light.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-LightItalic.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-LightItalic.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-Regular.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Regular.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Regular.ttf") format("truetype");
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: "Guardian Headline Full";
src: url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-RegularItalic.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-RegularItalic.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-RegularItalic.ttf") format("truetype");
font-weight: 400;
font-style: italic;
}
@font-face {
font-family: "Guardian Headline Full";
src: url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Medium.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Medium.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Medium.ttf") format("truetype");
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: "Guardian Headline Full";
src: url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-MediumItalic.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-MediumItalic.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-MediumItalic.ttf") format("truetype");
font-weight: 500;
font-style: italic;
}
@font-face {
font-family: "Guardian Headline Full";
src: url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Semibold.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Semibold.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Semibold.ttf") format("truetype");
font-weight: 600;
font-style: normal;
}
@font-face {
font-family: "Guardian Headline Full";
src: url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-SemiboldItalic.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-SemiboldItalic.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-Bold.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Bold.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Bold.ttf") format("truetype");
font-weight: 700;
font-style: normal;
}```css
@font-face {
font-family: "Guardian Headline Full";
src: url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Bold.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Bold.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-BoldItalic.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-BoldItalic.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-Black.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-Black.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-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/full-not-hinted/GHGuardianHeadline-BlackItalic.woff2") format("woff2"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-BlackItalic.woff") format("woff"),
url("https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/full-not-hinted/GHGuardianHeadline-BlackItalic.ttf") format("truetype");
font-weight: 900;
font-style: italic;
}
@font-face {
font-family: "Guardian Titlepiece";
src: url("https://interactive.guim.co.uk/fonts/garnett/GTGuardianTitlepiece-Bold.woff2") format("woff2"),
url("https://interactive.guim.co.uk/fonts/garnett/GTGuardianTitlepiece-Bold.woff") format("woff"),
url("https://interactive.guim.co.uk/fonts/garnett/GTGuardianTitlepiece-Bold.ttf") format("truetype");
font-weight: 700;
font-style: normal;
}
.atom.svelte-1tpye3j {
display: flex;
flex-direction: column;
gap: 4px;
}
.homepage-content.svelte-1tpye3j {
display: flex;
flex-direction: column;
gap: 14px;
transition: padding-bottom 0.3s ease;
}
.sticky-padding.svelte-1tpye3j {
padding-bottom: 100px;
transition: padding-bottom 0.3s ease;
}
h1.svelte-1tpye3j {
position: absolute;
top: 220px;
left: 0;
font-family: "Guardian Headline Full", "Guardian Egyptian Web", Georgia, serif;
font-weight: bold;
font-size: 88px;
line-height: 88%;
color: #0077b6;
z-index: -1;
font-variant-numeric: lining-nums;
}
@media (min-width: 61.25em) {
h1.svelte-1tpye3j {
top: 220px;
}
}
p.standfirst.svelte-1tpye3j {
color: #fff !important;
max-width: 450px;
padding-bottom: 10px;
}
@media (min-width: 61.25em) {
p.standfirst.svelte-1tpye3j {
font-size: 20px;
max-width: 600px;
}
}
.standfirst-container.svelte-1tpye3j {
max-width: 600px;
border-bottom: 1px solid #0077b6;
}
.tooltip.svelte-1tpye3j {
position: relative;
z-index: 2;
margin-top: -40px;
opacity: 0;
}
@media (min-width: 61.25em) {
.tooltip.svelte-1tpye3j {
display: none;
}
}
.tooltip.svelte-1tpye3j p:where(.svelte-1tpye3j) {
position: relative;
background: #ffffff;
border-radius: 8px;
padding: 3px 9px 6px;
display: inline-block;
color: #052962;
font-size: 14px;
font-family: "Guardian Text Sans Web", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
top: -2px;
}
/ ์ผ๊ฐํ ๊ผฌ๋ฆฌ /
.tooltip.svelte-1tpye3j p:where(.svelte-1tpye3j):after {
content: "";
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
border-width: 10px 6px 0 6px;
border-style: solid;
border-color: #ffffff transparent transparent transparent;
}
ul.s