์ด๊ฒ์ ์น์ฌ์ดํธ์์ ์ฌ์ฉํ๊ธฐ ์ํด "Guardian Headline Full" ๊ธ๊ผด ํจ๋ฐ๋ฆฌ๋ฅผ ์ ์ํ๋ CSS ์ฝ๋ ๋ธ๋ก์
๋๋ค. ์ฌ๊ธฐ์๋ ๊ฐ๊ฐ ๊ธ๊ผด์ ๋ค๋ฅธ ๋๊ป(๋ผ์ดํธ, ๋ ๊ทค๋ฌ, ๋ฏธ๋์, ์ธ๋ฏธ๋ณผ๋)์ ์คํ์ผ(์ผ๋ฐ ๋๋ ์ดํค๋ฆญ)์ ์ง์ ํ๋ ์ฌ๋ฌ font-face ๊ท์น์ด ํฌํจ๋์ด ์์ต๋๋ค. ๊ฐ ๋ณํ์ ๋ํด ์ฝ๋๋ ๋ค์ํ ๋ธ๋ผ์ฐ์ ์์์ ํธํ์ฑ์ ๋ณด์ฅํ๊ธฐ ์ํด ๋ค๋ฅธ ํ์(WOFF2, WOFF, TTF)์ ๊ธ๊ผด ํ์ผ์ ์ ๊ณตํฉ๋๋ค. ๊ธ๊ผด ํ์ผ์ Guardian์ ์์
์๋ฒ์ ํธ์คํ
๋ฉ๋๋ค.์ด ํ
์คํธ๋ ์์ฐ์ด ์ฐ๋ฌธ์ด ์๋ CSS ์ฝ๋๋ก ๋ณด์
๋๋ค. ์นํ์ด์ง์ ๊ธ๊ผด ์คํ์ผ๊ณผ ๋ ์ด์์ ๊ท์น์ ์ ์ํฉ๋๋ค. ๊ธฐ์ ์ ์ธ ์ฝ๋์ด๋ฏ๋ก ์ ์ฐฝํ ์์ด๋ก ๋ค์ ์ฐ๋ ๊ฒ์ ์ ์ ํ์ง ์์ต๋๋ค. ๋ค๋ฅธ ํ
์คํธ๋ฅผ ๊ณต์ ํ๋ ค๋ ๊ฒฝ์ฐ ์ ๊ณตํด ์ฃผ์๋ฉด ๊ธฐ๊บผ์ด ๋์๋๋ฆฌ๊ฒ ์ต๋๋ค.left: -11px.
์ธํฐ๋ํฐ๋ธ ๊ธฐ์ฌ์ ๊ธฐ๋ณธ ์ฝํ
์ธ ์ด์๋ ํฌํจ๋ ์์ ์ฃผ๋ณ์ ์ฌ๋ฐฑ์ด๋ ํจ๋ฉ์ด ์์ผ๋ฉฐ, ์๋จ๊ณผ ํ๋จ์ 12px์ ํจ๋ฉ์ด ์์ต๋๋ค. ๋ฌธ๋จ ๋ค์ ํฌํจ๋ ์์๊ฐ ์ฌ ๋ ํจ๋ฉ์ ์ ๊ฑฐ๋๊ณ ์์ชฝ์ 12px์ ์ฌ๋ฐฑ์ผ๋ก ๋์ฒด๋ฉ๋๋ค. ์ธ๋ผ์ธ ์์๋ ์ต๋ ๋๋น 620px๋ก ์ ํ๋ฉ๋๋ค. 61.25em๋ณด๋ค ๋์ ํ๋ฉด์์ ์ธ๋ผ์ธ์ผ๋ก ํ์๋ ๊ทธ๋ฆผ๋ 620px๋ก ์ ํ๋ฉ๋๋ค.
๋ฃจํ ๋น๋์ค๋ฅผ ํฌํจํ๋ ๋ฏธ๋์ด ์น์
์ ๊ฒฝ์ฐ ์บก์
์ z-index 6์ผ๋ก ์์ ๊ฒน์ณ์ง๊ณ , ๋ฃจํ ๋ฒํผ์ ์ค๋ฅธ์ชฝ ํ๋จ์ 40px ํ๋จ ์ฌ๋ฐฑ๊ณผ 3px ์ค๋ฅธ์ชฝ ์ฌ๋ฐฑ์ผ๋ก ์์นํฉ๋๋ค. ์์๊ฑฐ ๋ฐ ์์๊ฑฐ ํด์ ๋ฒํผ์ ์ถ๊ฐ ์ผ์ชฝ ํจ๋ฉ๊ณผ ํจ๊ป ์ค๋ฅธ์ชฝ์ผ๋ก ์ ๋ ฌ๋ฉ๋๋ค. ์บก์
๋ฒํผ์ ๋์ z-index๋ฅผ ๊ฐ์ง๋ฉฐ, ๋ ํฐ ํ๋ฉด์์๋ ํ๋จ์์ 20px ๋จ์ด์ ธ ์์ต๋๋ค. 46.25em๋ณด๋ค ๋์ ํ๋ฉด์ ์๋ค๋ง๊ทธ๋ํ ๋น๋์ค์ ๊ฒฝ์ฐ ๋์ด ์ ํ์ด ์ ๊ฑฐ๋ฉ๋๋ค.
๋ณธ๋ฌธ ์น์
์์ ์์ฒด ํธ์คํ
๋น๋์ค๋ ์ต๋ ๋๋น 620px์ 12px ์ฌ๋ฐฑ์ ๊ฐ์ง ๋ธ๋ก์ผ๋ก ํ์๋ฉ๋๋ค. ๋ฃจํ ๋น๋์ค์ ํด๋น ๋น๋์ค ์์๋ ์ ์ฒด ๋๋น๋ฅผ ์ฑ์ฐ๊ณ ์ข
ํก๋น๋ฅผ ์ ์งํ๋ฉฐ ์ค์์ ๋ฐฐ์น๋ฉ๋๋ค. ๋ฃจํ ๋น๋์ค๊ฐ ๋ชฐ์
ํ ๋ชจ๋๋ก ์ค์ ๋ ๊ฒฝ์ฐ ์ฌ๋ฐฑ ์์ด ์ ์ฒด ๋๋น๋ก ํ์ฅ๋ฉ๋๋ค. 71.25em๋ณด๋ค ๋์ ํ๋ฉด์์ ๋ชฐ์
ํ ๋น๋์ค๋ 1140px ๋๋น๋ก ๋์ด๋๊ณ 180px ์ผ์ชฝ์ผ๋ก ์ด๋ํ๋ฉฐ, ์บก์
์ 20px ๋ค์ฌ์ฐ๊ธฐ๋ฉ๋๋ค. 81.25em๋ณด๋ค ๋์ ํ๋ฉด์์๋ 1300px๋ก ์ปค์ง๊ณ 260px ์ผ์ชฝ์ผ๋ก ์ด๋ํฉ๋๋ค.
๋์์ธ์ ์์์ CSS ๋ณ์๋ฅผ ์ฌ์ฉํฉ๋๋ค: ๋ฐ์ด๋ผ์ธ์ ์งํ ํ์, ํค๋ ํ
๋๋ฆฌ๋ ๋ฐ์ ํ์, ์บก์
์ ๋ฐํฌ๋ช
ํ ์ด๋์ด ๋ฐฐ๊ฒฝ์ ๊ฐ์ง ์ค๊ฐ ํ์, ํผ์ฒ ์์์ ์ง์ ๋นจ๊ฐ์์
๋๋ค. ๊ธฐ๋ณธ ํ๋ฌ ์์์ ํผ์ฒ ์์์ผ๋ก ์ค์ ๋ฉ๋๋ค. ์์ ๋ชฉ, ํ ์ธ์ฉ๊ตฌ, ๋ธ๋ก ์ธ์ฉ๊ตฌ๋ ๋ณด์กฐ ํ๋ฌ ์์์ ์ฌ์ฉํ๋ฉฐ, ๋คํฌ ๋ชจ๋์์๋ ๋ค๋ฅธ ์์กฐ๋ก ์ ์ํฉ๋๋ค.
์ธํฐ๋ํฐ๋ธ ์ฝํ
์ธ ์ด์๋ ํฌํจ๋ ์์ ์ฃผ๋ณ์ ํจ๋ฉ์ด ์์ต๋๋ค. ํฌํจ๋ ์์๊ฐ ๋ค๋ฅธ ์์๋ ๊ฐ๋ก์ ๋ฐ๋ก ๋ค์ ๋ํ๋๋ฉด ๋ค์ ๋ฌธ๋จ์๋ ์ถ๊ฐ ์๋จ ์ฌ๋ฐฑ์ด ์์ต๋๋ค. ์ด๋ ๊ธฐ๋ณธ ๊ธฐ์ฌ ๋ณธ๋ฌธ๊ณผ ์ธํฐ๋ํฐ๋ธ ์น์
์ ํฌํจํ ๋ค์ํ ์ปจํ
์ด๋ ์ ํ์ ์ ์ฉ๋ฉ๋๋ค.์ด๊ฒ์ ๊ธฐ์ ์ ์ธ CSS ์ ํ์ ๋ชฉ๋ก์ด๋ฏ๋ก "์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด"๋ก ๋ค์ ์ฐ๋ ๊ฒ์ ๊ฐ๋จํ์ง ์์ต๋๋ค. ๊ทธ๋ฌ๋ ์๋๋ฅผ ํ์ดํ ์์ด๋ก ๋จ์ํํ๊ณ ์ค๋ช
ํ ์ ์์ต๋๋ค:
---
์ด๋ฌํ CSS ๊ท์น์ ๋ค์ํ ์ฝํ
์ธ ์น์
์์ ํน์ ์์(์ธํฐ๋ํฐ๋ธ ์์ ฏ, ๋ก๊ทธ์ธ ํ๋กฌํํธ, ๊ฐ๋ก์ ๋ฑ) ๋ฐ๋ก ๋ค์ ์ค๋ ๋ฌธ๋จ์ ์ ์ฉ๋ฉ๋๋ค. ์ฒซ ๋ฒ์งธ ๊ท์น์ ํด๋น ๋ฌธ๋จ์ ์ถ๊ฐ ์๋จ ํจ๋ฉ(14px)์ ์ถ๊ฐํฉ๋๋ค. ๋ ๋ฒ์งธ ๊ท์น์ ํด๋น ๋ฌธ๋จ์ ์ฒซ ๊ธ์์ ๋๋กญ ์บก ํจ๊ณผ๋ฅผ ์ ์ฉํฉ๋๋ค.
---
CSS ์์ฒด๋ฅผ ๋ช
ํ์ฑ์ ์ํด ๋ค์ ์ฐ๋ ค๋ ๊ฒฝ์ฐ ์ถ์ฝ๋ ๋ฒ์ ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
```css
/* ํน์ ์์ ๋ค์ ๋ฌธ๋จ ์์ ๊ฐ๊ฒฉ ์ถ๊ฐ */
.element-atom:first-of-type + p:first-of-type,
.sign-in-gate + p:first-of-type,
#sign-in-gate + p:first-of-type,
.element-atom + p:first-of-type,
hr:not(.last-horizontal-rule) + p,
hr:not(.last-horizontal-rule) + .ad-slot-container + p {
padding-top: 14px;
}
/* ํด๋น ๋ฌธ๋จ์ ์ฒซ ๊ธ์์ ๋๋กญ ์บก ์ ์ฉ */
.content__main-column--interactive .element-atom:first-of-type + p:first-of-type::first-letter,
.content__main-column--interactive .sign-in-gate + p:first-of-type::first-letter,
.content__main-column--interactive #sign-in-gate + p:first-of-type::first-letter,
.content__main-column--interactive .element-atom + p:first-of-type::first-letter,
.content__main-column--interactive hr:not(.last-horizontal-rule) + p::first-letter,
.content__main-column--interactive hr:not(.last-horizontal-rule) + .ad-slot-container + p::first-letter,
#article-body > div .element-atom:first-of-type + p:first-of-type::first-letter,
#article-body > div .sign-in-gate + p:first-of-type::first-letter,
#article-body > div #sign-in-gate + p:first-of-type::first-letter,
#article-body > div .element-atom + p:first-of-type::first-letter,
#article-body > div hr:not(.last-horizontal-rule) + p::first-letter,
#article-body > div hr:not(.last-horizontal-rule) + .ad-slot-container + p::first-letter,
.content--interactive > div .element-atom:first-of-type + p:first-of-type::first-letter,
.content--interactive > div .sign-in-gate + p:first-of-type::first-letter,
.content--interactive > div #sign-in-gate + p:first-of-type::first-letter,
.content--interactive > div .element-atom + p:first-of-type::first-letter,
.content--interactive > div hr:not(.last-horizontal-rule) + p::first-letter,
.content--interactive > div hr:not(.last-horizontal-rule) + .ad-slot-container + p::first-letter,
#comment-body .element-atom:first-of-type + p:first-of-type::first-letter,
#comment-body .sign-in-gate + p:first-of-type::first-letter,
#comment-body #sign-in-gate + p:first-of-type::first-letter,
#comment-body .element-atom + p:first-of-type::first-letter,
#comment-body hr:not(.last-horizontal-rule) + p::first-letter,
#comment-body hr:not(.last-horizontal-rule) + .ad-slot-container + p::first-letter,
[data-gu-name="body"] .element-atom:first-of-type + p:first-of-type::first-letter,
[data-gu-name="body"] .sign-in-gate + p:first-of-type::first-letter,
[data-gu-name="body"] #sign-in-gate + p:first-of-type::first-letter,
[data-gu-name="body"] .element-atom + p:first-of-type::first-letter,
[data-gu-name="body"] hr:not(.last-horizontal-rule) + p::first-letter,
[data-gu-name="body"] hr:not(.last-horizontal-rule) + .ad-slot-container + p::first-letter {
/* ๋๋กญ ์บก ์คํ์ผ์ด ์ฌ๊ธฐ์ ๋ค์ด๊ฐ๋๋ค */
}
```
---
๋ค๋ฅธ ์๋ฏธ์๋ค๋ฉด ๋ช
ํํ ํด์ฃผ์๋ฉด ๊ทธ์ ๋ง๊ฒ ์กฐ์ ํ๊ฒ ์ต๋๋ค.๋ค์์ ์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด๋ก ๋ค์ ์ด ํ
์คํธ์
๋๋ค:
---
CSS ๊ท์น์ ํ์ด์ง์ ํน์ ์น์
์์ ํน์ ์์(๊ฐ๋ก์ ๋๋ ๊ด๊ณ ์ปจํ
์ด๋ ๋ฑ) ๋ค์ ์ค๋ ์ฒซ ๋ฒ์งธ ๋ฌธ๋จ์ ์ฒซ ๊ธ์์ ํน๋ณํ ์คํ์ผ์ ์ ์ฉํฉ๋๋ค. ์ด ์ฒซ ๊ธ์๋ Guardian ํค๋๋ผ์ธ ๊ธ๊ผด์ ์ฌ์ฉํ์ฌ ํฌ๊ณ ๊ตต์ ๋๋ฌธ์ ๋๋กญ ์บก์ผ๋ก ์คํ์ผ๋ง๋๋ฉฐ, ํฌ๊ธฐ๋ 111px์ด๊ณ ์ค ๋์ด๋ 92px์
๋๋ค. ์ผ์ชฝ์ผ๋ก ๋ ์๊ณ ์ค๋ฅธ์ชฝ์ ์ฌ๋ฐฑ์ด ์์ผ๋ฉฐ ์ฌ์ฉ์ ์ ์ ์์ฑ์ผ๋ก ์ ์๋ ์์(ํ๋ฌ ์์์ผ๋ก ๋์ฒด)์ ์ฌ์ฉํฉ๋๋ค.
๊ฐ๋ก์ (๊ด๊ณ ์ปจํ
์ด๋ ํฌํจ ์ฌ๋ถ์ ๊ด๊ณ์์ด) ๋ค์ ์ค๋ ๋ฌธ๋จ์ ๊ฒฝ์ฐ ์๋จ ํจ๋ฉ์ด ์ ๊ฑฐ๋ฉ๋๋ค.
๊ธฐ๋ณธ ์ฝํ
์ธ ์์ญ์ ํ ์ธ์ฉ๊ตฌ(๊ฐ์กฐ๋ ์ธ์ฉ๊ตฌ)๋ ์ต๋ ๋๋น 620px๋ก ์ ํ๋ฉ๋๋ค.
์ผ์ผ์ด์ค ์ด๋ฏธ์ง(ํฐ ํผ์ฒ ์ด๋ฏธ์ง)์ ๊ฒฝ์ฐ ์บก์
์ ์ ์ ์ผ๋ก ์์นํ๋ฉฐ ์ต๋ 620px๊น์ง ์ ์ฒด ๋๋น๋ฅผ ์ฐจ์งํฉ๋๋ค. ๋ ๋์ ํ๋ฉด(71.25em ์ด์)์์๋ ์บก์
์ด ์ ๋ ์์น๋ก ์ง์ ๋๊ณ ์ต๋ ๋๋น 140px๊ฐ ์ ์ฉ๋๋ฉฐ, ๋ ๋์ ํ๋ฉด(81.25em ์ด์)์์๋ ์ต๋ ๋๋น๊ฐ 220px๋ก ์ฆ๊ฐํฉ๋๋ค.
๋ชฐ์
ํ ์์(์ ์ฒด ๋๋น ์ด๋ฏธ์ง ๋๋ ๋น๋์ค)๋ ์คํฌ๋กค๋ฐ ๋๋น๋ฅผ ๊ณ ๋ คํ์ฌ ์ ์ฒด ๋ทฐํฌํธ ๋๋น์ ๊ฑธ์ณ ์์ต๋๋ค. ๋ ์์ ํ๋ฉด(71.24em ๋ฏธ๋ง)์์๋ 978px๋ก ์ ํ๋๊ณ ์บก์
์๋ ๊ฐ๋ก ํจ๋ฉ(๋งค์ฐ ์์ ํ๋ฉด์์๋ 10px, ์ฝ๊ฐ ๋ ํฐ ํ๋ฉด์์๋ 20px)์ด ์ ์ฉ๋ฉ๋๋ค. 46.25em์์ 61.24em ์ฌ์ด์์๋ ์ต๋ ๋๋น๊ฐ 738px์
๋๋ค. ๋งค์ฐ ์์ ํ๋ฉด(46.24em ๋ฏธ๋ง)์์๋ ์์๊ฐ ์์ ์ฌ๋ฐฑ์ผ๋ก ์ผ์ชฝ ๊ฐ์ฅ์๋ฆฌ๋ก ๋น๊ฒจ์ง๊ณ ์บก์
ํจ๋ฉ์ด ๊ทธ์ ๋ฐ๋ผ ์กฐ์ ๋ฉ๋๋ค.
๋ ํฐ ํ๋ฉด(71.25em ์ด์)์์๋ ๋ณธ๋ฌธ์ ์ผ์ผ์ด์ค ๊ทธ๋ฆผ์ด 160px์ ์์ ์ฌ๋ฐฑ์ผ๋ก ์ผ์ชฝ์ผ๋ก ์ด๋ํ๊ณ , ๋ ํฐ ํ๋ฉด(81.25em ์ด์)์์๋ 240px๋ก ์ฆ๊ฐํฉ๋๋ค.
ํผ๋์ฒ ๋ํผ(ํน์ ๋ ์ด์์ ์์์ ์ปจํ
์ด๋)๋ ์๋์ ์ผ๋ก ์์นํ๋ฉฐ, 61.25em๋ณด๋ค ๋์ ํ๋ฉด์์๋ ์ถ๊ฐ ์คํ์ผ์ด ์ ์ฉ๋ฉ๋๋ค(๊ท์น์ด ์ฌ๊ธฐ์ ์๋ ธ์ง๋ง).furniture-wrapper {
display: grid;
grid-column-gap: 20px;
grid-row-gap: 0px;
grid-template-columns: [title-start headline-start meta-start standfirst-start] repeat(5, 1fr) [title-end headline-end meta-end standfirst-end portrait-start] repeat(5, 1fr) [portrait-end];
grid-template-rows: [title-start portrait-start] 0.25fr [title-end headline-start] 1fr [headline-end standfirst-start] 0.75fr [standfirst-end meta-start] auto [meta-end portrait-end];
}
.furniture-wrapper #headline > div:first-child,
.furniture-wrapper [data-gu-name="headline"] > div:first-child,
.furniture-wrapper .headline > div:first-child {
border-top: 1px solid var(--headerBorder);
}
.furniture-wrapper #meta,
.furniture-wrapper [data-gu-name="meta"] {
position: relative;
padding-top: 2px;
margin-right: 0;
}
.furniture-wrapper .standfirst .content__standfirst,
.furniture-wrapper #standfirst .content__standfirst,
.furniture-wrapper [data-gu-name="standfirst"] .content__standfirst {
margin-bottom: 4px;
}
.furniture-wrapper .standfirst ul li,
.furniture-wrapper #standfirst ul li,
.furniture-wrapper [data-gu-name="standfirst"] ul li {
font-size: 20px;
}
.furniture-wrapper .standfirst li a,
.furniture-wrapper .standfirst a,
.furniture-wrapper #standfirst li a,
.furniture-wrapper #standfirst a,
.furniture-wrapper [data-gu-name="standfirst"] li a,
.furniture-wrapper [data-gu-name="standfirst"] a {
border-bottom: none;
background-image: none !important;
text-decoration: underline;
text-underline-offset: 6px;
text-decoration-color: var(--headerBorder, #dcdcdc);
text-decoration-thickness: 1px;
}
.furniture-wrapper .standfirst li a:hover,
.furniture-wrapper .standfirst a:hover,
.furniture-wrapper #standfirst li a:hover,
.furniture-wrapper #standfirst a:hover,
.furniture-wrapper [data-gu-name="standfirst"] li a:hover,
.furniture-wrapper [data-gu-name="standfirst"] a:hover {
text-decoration-color: var(--new-pillar-colour);
}
.furniture-wrapper .standfirst p:first-of-type,
.furniture-wrapper #standfirst p:first-of-type,
.furniture-wrapper [data-gu-name="standfirst"] p:first-of-type {
border-top: 1px solid var(--headerBorder);
padding-bottom: 0;
}
@media (min-width: 61.25em) and (min-width: 71.25em) {
.furniture-wrapper .standfirst p:first-of-type,
.furniture-wrapper #standfirst p:first-of-type,
.furniture-wrapper [data-gu-name="standfirst"] p:first-of-type {
border-top: unset;
}
}
@media (min-width: 61.25em) {
.furniture-wrapper figure {
margin: 0 0 0 -10px;
}
.furniture-wrapper figure[data-spacefinder-role="inline"].element {
max-width: 630px;
}
}
@media (min-width: 71.25em) {
.furniture-wrapper {
grid-template-columns: [title-start headline-start meta-start] repeat(2, 1fr) [meta-end standfirst-start] repeat(5, 1fr) [title-end headline-end standfirst-end portrait-start] repeat(7, 1fr) [portrait-end];
grid-template-rows: [title-start portrait-start] 80px [title-end headline-start] auto [headline-end standfirst-start meta-start] auto [standfirst-end meta-end portrait-end];
}
.furniture-wrapper #meta:before,
.furniture-wrapper [data-gu-name="meta"]:before {
content: "";
width: 540px;
position: absolute;
top: 0;
background-color: var(--headerBorder);
height: 1px;
}
.furniture-wrapper .standfirst p,
.furniture-wrapper #standfirst p,
.furniture-wrapper [data-gu-name="standfirst"] p {
border-top: unset;
}
.furniture-wrapper .standfirst:before,
.furniture-wrapper #standfirst:before,
.furniture-wrapper [data-gu-name="standfirst"]:before {
content: "";
width: 1px;
background-color: var(--headerBorder);
height: 100%;
position: absolute;
top: 0;
left: 0.5px;
}
}
@media (min-width: 81.25em) {
.furniture-wrapper {
grid-template-columns: [title-start headline-start meta-start] repeat(3, 1fr) [meta-end standfirst-start] repeat(5, 1fr) [title-end headline-end standfirst-end portrait-start] repeat(8, 1fr) [portrait-end];
grid-template-rows: [title-start portrait-start] 0.25fr [title-end headline-start] 1fr [headline-end standfirst-start meta-start] 0.75fr [standfirst-end meta-end portrait-end];
}
.furniture-wrapper #meta:before,
.furniture-wrapper [data-gu-name="meta"]:before {
width: 620px;
}
.furniture-wrapper .standfirst:before,
.furniture-wrapper #standfirst:before,
.furniture-wrapper [data-gu-name="standfirst"]:before {
left: -0.5px;
}
}
.furniture-wrapper .article-header .content__labels > div,
.furniture-wrapper [data-gu-name="title"].content__labels > div {
padding-top: 2px;
}
.furniture-wrapper #headline h1,
.furniture-wrapper [data-gu-name="headline"] h1,
.furniture-wrapper .headline h1 {
font-weight: 600;
max-width: 620px;
font-size: 32px;
}
@media (min-width: 71.25em) {
.furniture-wrapper #headline h1,
.furniture-wrapper [data-gu-name="headline"] h1,
.furniture-wrapper .headline h1 {
max-width: 540px;
font-size: 50px;
}
}
@media (min-width: 46.25em) {
.furniture-wrapper .keyline-4,
.furniture-wrapper [data-gu-name="lines"] {
margin-right: 0;
}
}
@media (min-width: 61.25em) {
.furniture-wrapper .keyline-4,
.furniture-wrapper [data-gu-name="lines"] {
display: none;
}
}
.furniture-wrapper .keyline-4 svg,
.furniture-wrapper [data-gu-name="lines"] svg {
stroke: var(--headerBorder);
}
@media (min-width: 46.25em) {
.furniture-wrapper #meta,
.furniture-wrapper [data-gu-name="meta"] {
margin-right: 0;
}
}
.furniture-wrapper #meta .meta__social,
.furniture-wrapper #meta .meta__social ul li a span,
.furniture-wrapper #meta .meta__comment,
.furniture-wrapper [data-gu-name="meta"] .meta__social,
.furniture-wrapper [data-gu-name="meta"] .meta__social ul li a span,
.furniture-wrapper [data-gu-name="meta"] .meta__comment {
border-color: var(--headerBorder);
}
.furniture-wrapper #meta .content__meta-container_dcr > div > gu-island,
.furniture-wrapper [data-gu-name="meta"] .content__meta-container_dcr > div > gu-island {
display: none;
}
.furniture-wrapper .standfirst,
.furniture-wrapper #standfirst,
.furniture-wrapper [data-gu-name="standfirst"] {
margin-left: -10px;
padding-left: 10px;
position: relative;
}
@media (min-width: 46.25em) {
.furniture-wrapper .standfirst,
.furniture-wrapper #standfirst,
.furniture-wrapper [data-gu-name="standfirst"] {
padding-top: 2px;
}
}
.furniture-wrapper .standfirst p,
.furniture-wrapper #standfirst p,
.furniture-wrapper [data-gu-name="standfirst"] p {
font-weight: 400;
font-size: 20px;
padding-bottom: 14px;
}
.furniture-wrapper #main-media,
.furniture-wrapper [data-gu-name="media"] {
position: relative;
margin-top: 0;
margin-bottom: 2px;
grid-area: portrait;
}
.furniture-wrapper #main-media div div,
.furniture-wrapper [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,
.furniture-wrapper [data-gu-name="media"] {
margin-left: -20px;
}
}
.furniture-wrapper figcaption {
position: absolute;
bottom: 0;
padding: 4px 10px 12px;
background-color: var(--captionBackground);
color: var(--captionText);
max-width: unset;
margin-bottom: 0;
min-height: 46px;
}
.furniture-wrapper figcaption span {
color: var(--headerBorder);
}
.furniture-wrapper figcaption span svg {
fill: var(--headerBorder);
}
.furniture-wrapper figcaption span:nth-of-type(1) {
display: none;
}
.furniture-wrapper figcaption span:nth-of-type(2) {
display: inline;
max-width: 90%;
}
@media (min-width: 30em) {
.furniture-wrapper figcaption {
padding: 4px 20px 12px;
}
}
.furniture-wrapper figcaption.hidden {
opacity: 0;
}
.furniture-wrapper #caption-button {
display: block;
position: absolute;
bottom: 10px;
right: 8px;
z-index: 30;
background-color: var(--captionBackground);
border: none;
border-radius: 50%;
padding: 6px 5px 5px;
}
.furniture-wrapper #caption-button svg {
transform: scale(0.85);
}
@media (min-width: 30em) {
.furniture-wrapper #caption-button {
right: 10px;
}
}
@media (min-width: 71.25em) {
.content__main-column--interactive:before {
top: -12px !important;
height: calc(100% + 24px) !important;
}
}
.content__main-column--interactive h2 {
max-width: 620px;
}
:root {
--new-pillar-colour: var(--darkmode-pillar, var(--darkModeFeature)) !important;
--headerBorderColor: #606060;
--darkModeFeature: #ff5943;
}
nav + section {
display: none;
}
nav + aside {
display: none;
}
aside + section {
display: none;
}
.furniture-wrapper {
background-color: var(--darkBackground);
margin: 0 -10px;
padding: 0 10px 4px;
}
@media (min-width: 30em) {
.furniture-wrapper {
margin: 0 -20px;
padding: 0 20px 8px;
}
}
@media (min-width: 61.25em) {
.furniture-wrapper {
padding: 0 20px;
}
}
@media (min-width: 81.25em) {
.furniture-wrapper:before {
content: "";
width: calc((100vw - 1298px) / 2);
height: 100%;
}
}eight:100%;position:absolute;left:calc((100vw - 1298px)/-2);background-color:var(--darkBackground);border-right:1px solid var(--headerBorderColor)}.furniture-wrapper:after{content:"";width:calc((100vw - 1298px)/2);height:100%;position:absolute;right:calc((100vw - 1298px)/-2);background-color:var(--darkBackground)}.furniture-wrapper .article-header,.furniture-wrapper [data-gu-name=title] a,.furniture-wrapper [data-gu-name=title] span{color:var(--new-pillar-colour, --darkModeFeature)}@media (min-width: 61.25em){.furniture-wrapper #headline>div:first-child,.furniture-wrapper [data-gu-name=headline]>div:first-child,.furniture-wrapper .headline>div:first-child{border-top:1px solid var(--headerBorderColor)}}.furniture-wrapper #headline h1,.furniture-wrapper [data-gu-name=headline] h1,.furniture-wrapper .headline h1{font-weight:700;color:#dcdcdc}.furniture-wrapper #headline figure,.furniture-wrapper [data-gu-name=headline] figure,.furniture-wrapper .headline figure{margin-top:0;margin-bottom:2px}@media (min-width: 71.25em){.furniture-wrapper #meta:before,.furniture-wrapper [data-gu-name=meta]:before{background-color:var(--headerBorderColor)}}.furniture-wrapper #meta details,.furniture-wrapper #meta summary,.furniture-wrapper #meta summary span,.furniture-wrapper [data-gu-name=meta] details,.furniture-wrapper [data-gu-name=meta] summary,.furniture-wrapper [data-gu-name=meta] summary span{color:#dcdcdc}.furniture-wrapper #meta .meta__social a,.furniture-wrapper #meta .meta__social button,.furniture-wrapper [data-gu-name=meta] .meta__social a,.furniture-wrapper [data-gu-name=meta] .meta__social button{border-color:var(--headerBorderColor);color:var(--new-pillar-colour, --darkModeFeature)}.furniture-wrapper #meta .meta__social a svg,.furniture-wrapper #meta .meta__social button svg,.furniture-wrapper [data-gu-name=meta] .meta__social a svg,.furniture-wrapper [data-gu-name=meta] .meta__social button svg{fill:var(--new-pillar-colour, --darkModeFeature)}.furniture-wrapper #meta .meta__social a:hover,.furniture-wrapper #meta .meta__social button:hover,.furniture-wrapper [data-gu-name=meta] .meta__social a:hover,.furniture-wrapper [data-gu-name=meta] .meta__social button:hover{color:var(--darkBackground);background-color:var(--new-pillar-colour, --darkModeFeature)}.furniture-wrapper #meta .meta__social a:hover svg,.furniture-wrapper #meta .meta__social button:hover svg,.furniture-wrapper [data-gu-name=meta] .meta__social a:hover svg,.furniture-wrapper [data-gu-name=meta] .meta__social button:hover svg{fill:var(--darkBackground)}.furniture-wrapper #meta div,.furniture-wrapper [data-gu-name=meta] div{color:#dcdcdc}.furniture-wrapper #meta a,.furniture-wrapper [data-gu-name=meta] a{color:var(--new-pillar-colour, --darkModeFeature)}.furniture-wrapper #meta a:hover,.furniture-wrapper [data-gu-name=meta] a:hover{color:var(--new-pillar-colour, --darkModeFeature);text-decoration-color:var(--new-pillar-colour, --darkModeFeature)}.furniture-wrapper .standfirst a,.furniture-wrapper .standfirst li a,.furniture-wrapper #standfirst a,.furniture-wrapper #standfirst li a,.furniture-wrapper [data-gu-name=standfirst] a,.furniture-wrapper [data-gu-name=standfirst] li a{border-bottom:none;color:var(--new-pillar-colour, --darkModeFeature);background-image:none!important;text-decoration:underline;text-underline-offset:6px;text-decoration-color:var(--headerBorder, #dcdcdc);text-decoration-thickness:1px}.furniture-wrapper .standfirst a:hover,.furniture-wrapper .standfirst li a:hover,.furniture-wrapper #standfirst a:hover,.furniture-wrapper #standfirst li a:hover,.furniture-wrapper [data-gu-name=standfirst] a:hover,.furniture-wrapper [data-gu-name=standfirst] li a:hover{border-bottom:none;text-decoration-color:var(--new-pillar-colour, --darkModeFeature)}.furniture-wrapper .standfirst p,.furniture-wrapper #standfirst p,.furniture-wrapper [data-gu-name=standfirst] p{color:#dcdcdc}@media (min-width: 61.25em){.furniture-wrapper .standfirst p:first-of-type,.furniture-wrapper #standfirst p:first-of-type,.furniture-wrapper [data-gu-name=standfirst] p:first-of-type{bo์ด ํ
์คํธ๋ ์์ฐ์ด ์ฐ๋ฌธ์ด ์๋ CSS ์ฝ๋๋ก ๋ณด์ด๋ฏ๋ก ๋ค์ ์ธ ์ ์์ต๋๋ค. ๋์ ๋ค์ ์ธ ์์ด ๋ฌธ์ฅ์ ์ ๊ณตํด ์ฃผ์๋ฉด ๋์๋๋ฆฌ๊ฒ ์ต๋๋ค.๋ค์์ ์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด๋ก ๋ค์ ์ด ํ
์คํธ์
๋๋ค:
---
์ด๊ฒ์ "Guardian Headline Full" ๊ธ๊ผด ํจ๋ฐ๋ฆฌ์ ๋ํ ์ผ๋ จ์ font-face ๊ท์น์
๋๋ค. ๊ฐ ๊ท์น์ ๊ธ๊ผด์ ๋ค๋ฅธ ์คํ์ผ์ด๋ ๋๊ป๋ฅผ ์ ์ํ๋ฉฐ, ๋ธ๋ผ์ฐ์ ๊ฐ ํธํ์ฑ์ ์ํด ๋์ผํ ํ์ผ ์ธํธ๋ฅผ ๋ค๋ฅธ ํ์(WOFF2, WOFF, TTF)์ผ๋ก ๊ฐ๋ฆฌํต๋๋ค. ์คํ์ผ์๋ ๋ ๊ทค๋ฌ, ์ดํค๋ฆญ, ๋ฏธ๋์, ๋ฏธ๋์ ์ดํค๋ฆญ, ์ธ๋ฏธ๋ณผ๋, ์ธ๋ฏธ๋ณผ๋ ์ดํค๋ฆญ, ๋ณผ๋, ๋ณผ๋ ์ดํค๋ฆญ, ๋ธ๋์ด ํฌํจ๋ฉ๋๋ค. ๊ธ๊ผด ํ์ผ์ Guardian์ ์์
์๋ฒ์ ํธ์คํ
๋ฉ๋๋ค.์ด ํ
์คํธ๋ ์์ฐ์ด๊ฐ ์๋ CSS ์ฝ๋๋ก ๋ณด์
๋๋ค. ์น์ฌ์ดํธ(์๋ง The Guardian)์ ๊ธ๊ผด ์คํ์ผ๊ณผ ๋ ์ด์์ ๊ท์น์ ์ ์ํฉ๋๋ค. ๊ธฐ์ ์ ์ธ ์ฝ๋์ด๋ฏ๋ก "์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด"๋ก ๋ค์ ์ฐ๋ ๊ฒ์ ์ ์ ํ์ง ์์ต๋๋ค. ๊ทธ๋ฌ๋ ์ฝ๋๊ฐ ์ํํ๋ ์์
์ ๋ํ ํ์ดํ ์์ด ์์ฝ์ ์ ๊ณตํ ์ ์์ต๋๋ค:
---
์ด ์ฝ๋๋ ์ฌ์ฉ์ ์ ์ ๊ธ๊ผด์ ์ค์ ํ๊ณ ๋ชจ๋ฐ์ผ ์ฅ์น(iOS ๋ฐ Android)์ ๋ ์ด์์์ ์กฐ์ ํฉ๋๋ค. "Guardian Headline Full"์ ๋ ๊ทค๋ฌ, ๋ณผ๋, ์ดํค๋ฆญ ์คํ์ผ๊ณผ "Guardian Titlepiece"์ ๋ณผ๋ ์คํ์ผ ๋ฑ ์ธ ๊ฐ์ง ๊ธ๊ผด ์ ํ์ ์ ์ํฉ๋๋ค. ๋ํ ๋คํฌ ๋ชจ๋์ฉ ์์ ์ฒด๊ณ๋ฅผ ์ค์ ํ๋ฉฐ, ๊ธฐ๋ณธ ๊ฐ์กฐ ์์์ผ๋ก ๋นจ๊ฐ์์ ์ฌ์ฉํฉ๋๋ค. ๋ชจ๋ฐ์ผ ๊ธฐ์ฌ์ ๊ฒฝ์ฐ ํค๋๋ฅผ ์จ๊ธฐ๊ณ ๊ฐ๊ฒฉ์ ์กฐ์ ํ๋ฉฐ ํน์ ๋ฌธ๋จ์ ์ฒซ ๊ธ์๊ฐ ํน์ ์์์ ์ฌ์ฉํ๋๋ก ํฉ๋๋ค. ์ฝ๋๋ ํน์ ๊ธฐ์ฌ ์ปจํ
์ด๋๋ฅผ ๋์์ผ๋ก ํ๋ฉฐ ๋ชจ๋ฐ์ผ ํ๋ซํผ์์๋ง ์ด๋ฌํ ์คํ์ผ์ ์ ์ฉํฉ๋๋ค.iOS ๋ฐ Android ์ฅ์น์ ๊ฒฝ์ฐ ๊ธฐ์ฌ ์ปจํ
์ด๋์ ํผ๋์ฒ ๋ํผ ๋ด๋ถ ๋ ์ด๋ธ์ Guardian ํค๋๋ผ์ธ ๊ธ๊ผด ํจ๋ฐ๋ฆฌ๋ฅผ ์ฌ์ฉํ๋ ๊ตต์ ํ
์คํธ๋ก ์คํ์ผ๋ง๋๋ฉฐ ํ๋ฌ ์์์ผ๋ก ์์น ๋๊ณ ๋๋ฌธ์๋ก ํ์๋ฉ๋๋ค.
iOS์ Android ๋ชจ๋์์ ํผ๋์ฒ ๋ํผ์ ๊ธฐ๋ณธ ํค๋๋ผ์ธ์ 32ํฝ์
, ๊ตต๊ฒ, ์๋์ 12ํฝ์
ํจ๋ฉ์ผ๋ก ์ค์ ๋๋ฉฐ ๊ฑฐ์ ๊ฒ์์์ ๊ฐ๊น์ด ์ด๋์ด ์์์ผ๋ก ์น ํด์ง๋๋ค.
๋ ํ๋ซํผ ๋ชจ๋์์ ํผ๋์ฒ ๋ํผ์ ์ด๋ฏธ์ง๋ ์๋์ ์ผ๋ก ์์นํ๋ฉฐ ์๋จ ์ฌ๋ฐฑ 14ํฝ์
, ์ผ์ชฝ ์ฌ๋ฐฑ -10ํฝ์
์ด ์ ์ฉ๋ฉ๋๋ค. ์ด๋ฏธ์ง ๋๋น๋ ์ ์ฒด ๋ทฐํฌํธ ๋๋น(์คํฌ๋กค๋ฐ ๊ณ ๋ ค)์ ๊ฑธ์ณ ์๊ณ ๋์ด๋ ์๋์ผ๋ก ์กฐ์ ๋ฉ๋๋ค. ์ด๋ฏธ์ง ์์ฒด์ ๋ด๋ถ ์ปจํ
์ด๋ ๋ฐ ๋งํฌ๋ ํฌ๋ช
ํ ๋ฐฐ๊ฒฝ์ ๊ฐ์ง๋ฉฐ ๋์ผํ ์ ์ฒด ๋๋น ํฌ๊ธฐ์ ์๋ ๋์ด๋ฅผ ์ ์งํฉ๋๋ค.
๋ ํ๋ซํผ ๋ชจ๋์์ ํผ๋์ฒ ๋ํผ์ ์คํ ๋ํผ์คํธ(์๊ฐ ํ
์คํธ)๋ ์๋จ ํจ๋ฉ 4ํฝ์
, ํ๋จ ํจ๋ฉ 24ํฝ์
, ์ค๋ฅธ์ชฝ ์ฌ๋ฐฑ -10ํฝ์
์ด ์ ์ฉ๋ฉ๋๋ค. ์คํ ๋ํผ์คํธ ๋ด๋ถ์ ๋ฌธ๋จ์ ๊ทธ์ ๋ฐ๋ผ ์คํ์ผ๋ง๋ฉ๋๋ค..ment-article-container .furniture-wrapper .standfirst__inner p {
font-family: Guardian Headline, Guardian Egyptian Web, Guardian Headline Full, Georgia, serif;
}
body.ios #feature-article-container .furniture-wrapper .standfirst__inner li a,
body.ios #feature-article-container .furniture-wrapper .standfirst__inner a,
body.ios #standard-article-container .furniture-wrapper .standfirst__inner li a,
body.ios #standard-article-container .furniture-wrapper .standfirst__inner a,
body.ios #comment-article-container .furniture-wrapper .standfirst__inner li a,
body.ios #comment-article-container .furniture-wrapper .standfirst__inner a,
body.android #feature-article-container .furniture-wrapper .standfirst__inner li a,
body.android #feature-article-container .furniture-wrapper .standfirst__inner a,
body.android #standard-article-container .furniture-wrapper .standfirst__inner li a,
body.android #standard-article-container .furniture-wrapper .standfirst__inner a,
body.android #comment-article-container .furniture-wrapper .standfirst__inner li a,
body.android #comment-article-container .furniture-wrapper .standfirst__inner a {
color: var(--new-pillar-colour) !important;
background-image: none !important;
text-decoration: underline;
text-underline-offset: 6px;
text-decoration-color: var(--headerBorder, #dcdcdc);
border-bottom: none;
}
body.ios #feature-article-container .furniture-wrapper .standfirst__inner li a:hover,
body.ios #feature-article-container .furniture-wrapper .standfirst__inner a:hover,
body.ios #standard-article-container .furniture-wrapper .standfirst__inner li a:hover,
body.ios #standard-article-container .furniture-wrapper .standfirst__inner a:hover,
body.ios #comment-article-container .furniture-wrapper .standfirst__inner li a:hover,
body.ios #comment-article-container .furniture-wrapper .standfirst__inner a:hover,
body.android #feature-article-container .furniture-wrapper .standfirst__inner li a:hover,
body.android #feature-article-container .furniture-wrapper .standfirst__inner a:hover,
body.android #standard-article-container .furniture-wrapper .standfirst__inner li a:hover,
body.android #standard-article-container .furniture-wrapper .standfirst__inner a:hover,
body.android #comment-article-container .furniture-wrapper .standfirst__inner li a:hover,
body.android #comment-article-container .furniture-wrapper .standfirst__inner a:hover {
text-decoration-color: var(--new-pillar-colour);
}
body.ios #feature-article-container .furniture-wrapper .meta,
body.ios #standard-article-container .furniture-wrapper .meta,
body.ios #comment-article-container .furniture-wrapper .meta,
body.android #feature-article-container .furniture-wrapper .meta,
body.android #standard-article-container .furniture-wrapper .meta,