์ด๊ฒ์ "Guardian Headline Full" ๊ธ๊ผด ํจ๋ฐ๋ฆฌ๋ฅผ ์ ์ํ๋ CSS ์คํ์ผ์ํธ์
๋๋ค. ๊ฐ๊ฐ ๋ค๋ฅธ ๊ตต๊ธฐ์ ์คํ์ผ์ ๊ธ๊ผด์ ์ง์ ํ๋ ์ฌ๋ฌ font-face ๊ท์น๊ณผ ๋ค์ํ ํ์(WOFF2, WOFF, TTF)์ ๊ธ๊ผด ํ์ผ URL์ด ํฌํจ๋์ด ์์ต๋๋ค. ๊ตต๊ธฐ๋ ๋ผ์ดํธ(300)์์ ์ธ๋ฏธ๋ณผ๋(600)๊น์ง์ด๋ฉฐ, ์ผ๋ฐ ๋ฐ ์ดํค๋ฆญ ์คํ์ผ์ด ๋ชจ๋ ํฌํจ๋ฉ๋๋ค. ๊ธ๊ผด ํ์ผ์ The Guardian์ ์์
์๋ฒ์ ํธ์คํ
๋์ด ์์ต๋๋ค.
์ด ํ
์คํธ๋ ์์ฐ์ด๊ฐ ์๋ CSS ์ฝ๋๋ก ๋ณด์
๋๋ค. ์นํ์ด์ง์ ๊ธ๊ผด ์คํ์ผ๊ณผ ๋ ์ด์์ ๊ท์น์ ์ ์ํฉ๋๋ค. ๊ธฐ์ ์ ์ธ ์ฝ๋์ด๋ฏ๋ก ์ ์ฐฝํ ์์ด๋ก ๋ค์ ์ฐ๋ ๊ฒ์ ์ ์ ํ์ง ์์ต๋๋ค. ๋ค๋ฅธ ํ
์คํธ๋ฅผ ๊ณต์ ํ๋ ค๋ ์๋์๋ค๋ฉด ์ ๊ณตํด ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค. ๊ธฐ๊บผ์ด ๋์๋๋ฆฌ๊ฒ ์ต๋๋ค.
left: -11px.
์ธํฐ๋ํฐ๋ธ ๊ธฐ์ฌ์ ๊ธฐ๋ณธ ์ฝํ
์ธ ์ด์๋ ์๋ฒ ๋๋ ์์ ์ฃผ๋ณ์ ์ฌ๋ฐฑ์ด๋ ํจ๋ฉ์ด ์์ผ๋ฉฐ, ์๋จ๊ณผ ํ๋จ์ 12px์ ํจ๋ฉ์ด ์์ต๋๋ค. ๋ฌธ๋จ ๋ค์ ์๋ฒ ๋๋ ์์๊ฐ ์ค๋ฉด ํจ๋ฉ์ด ์ ๊ฑฐ๋๊ณ 12px ์ฌ๋ฐฑ์ผ๋ก ๋์ฒด๋ฉ๋๋ค. ์ธ๋ผ์ธ ์์๋ ์ต๋ ๋๋น 620px๋ก ์ ํ๋ฉ๋๋ค.
61.25em๋ณด๋ค ๋์ ํ๋ฉด์์๋ ์ธ๋ผ์ธ ํผ๊ท์ด๋ 620px๋ก ์ ํ๋ฉ๋๋ค.
๋ฃจํ ๋น๋์ค๊ฐ ์๋ ๋ฏธ๋์ด ์น์
์์๋ ์บก์
์ด ๋ค๋ฅธ ์์ ์์ ๋ฐฐ์น๋๊ณ , ๋ฃจํ ๋ฒํผ์ ์ถ๊ฐ ๊ฐ๊ฒฉ์ ๋๊ณ ์ค๋ฅธ์ชฝ ํ๋จ์ ์ ๋ ฌ๋ฉ๋๋ค. ์์๊ฑฐ ๋ฐ ์์๊ฑฐ ํด์ ๋ฒํผ์ ์ผ์ชฝ ํจ๋ฉ์ ๋๊ณ ์ค๋ฅธ์ชฝ์ ๋ฐฐ์น๋ฉ๋๋ค. ์บก์
๋ฒํผ์ ๋ชจ๋ ์์ ์์ ์์ผ๋ฉฐ, ๋ ํฐ ํ๋ฉด์์๋ ํ๋จ ๊ทผ์ฒ์ ๋ฐฐ์น๋ฉ๋๋ค.
์๋ค๋ง๊ทธ๋ํ(๋ฃจํ ๋น๋์ค์ ์ผ์ข
)์ ๊ฒฝ์ฐ 46.25em๋ณด๋ค ๋์ ํ๋ฉด์์ ๋์ด ์ ํ์ด ์ ๊ฑฐ๋ฉ๋๋ค.
๋ณธ๋ฌธ ์น์
์์ ์์ฒด ํธ์คํ
๋น๋์ค๋ ์ต๋ ๋๋น 620px์ 12px ์ฌ๋ฐฑ์ ๊ฐ์ง ๋ธ๋ก์ผ๋ก ํ์๋ฉ๋๋ค. ๋น๋์ค์ ๋ฃจํ ํผ๊ท์ด๋ ์ ์ฒด ๋๋น๋ฅผ ์ฐจ์งํ๋ฉฐ, ๋น๋์ค ๋์ด๋ ์๋์ผ๋ก ์กฐ์ ๋ฉ๋๋ค.
๋น๋์ค๊ฐ ๋ชฐ์
ํ ๋ชจ๋๋ก ์ค์ ๋๋ฉด ์ฌ์ฉ ๊ฐ๋ฅํ ๊ณต๊ฐ์ ์ฑ์ฐ๋๋ก ํ์ฅ๋์ด ๋๋น ์ ํ๊ณผ ์ฌ๋ฐฑ์ด ์ ๊ฑฐ๋ฉ๋๋ค. ๋งค์ฐ ๋์ ํ๋ฉด(71.25em ์ด๊ณผ)์์๋ ๋น๋์ค ์ปจํ
์ด๋๊ฐ 1140px ๋๋น์ด๊ณ ์ผ์ชฝ์ผ๋ก 180px ์ด๋ํ๋ฉฐ ์บก์
์ด ๋ค์ฌ์ฐ๊ธฐ๋ฉ๋๋ค. ๋ ๋์ ํ๋ฉด(81.25em ์ด๊ณผ)์์๋ 1300px ๋๋น๊ฐ ๋๊ณ ์ผ์ชฝ์ผ๋ก 260px ์ด๋ํฉ๋๋ค.
๋์์ธ์ ํน์ ์์์ ์ฌ์ฉํฉ๋๋ค: ๋ ์ง ์ค์๋ ํ์, ํ
๋๋ฆฌ์๋ ๋ฐ์ ํ์, ์บก์
์๋ ๋ ๋ฐ์ ํ์, ์บก์
ํ
์คํธ์๋ ๋ฐํฌ๋ช
ํ ์ด๋์ด ๋ฐฐ๊ฒฝ. ์ฃผ์ ๊ธฐ๋ฅ ์์์ ์งํ ๋นจ๊ฐ์์ด๋ฉฐ, ์ฌ์ฉ์ ์ ์ ํ๋ฌ ์์์ผ๋ก ์ฌ์ ์ํ ์ ์์ต๋๋ค.
์์ ๋ชฉ, ํ ์ธ์ฉ๊ตฌ ๋ฐ ๋ธ๋ก ์ธ์ฉ๊ตฌ๋ ๋ณด์กฐ ํ๋ฌ ์์์ ์ฌ์ฉํ๋ฉฐ, ๋คํฌ ๋ชจ๋์์ ์กฐ์ ํ ์ ์์ต๋๋ค.
์๋ฒ ๋๋ ์์์๋ ํจ๋ฉ์ด ์์ต๋๋ค. ์๋ฒ ๋๋ ์์๊ฐ ๋ค๋ฅธ ์์๋ ์ํ์ ๋ฐ๋ก ๋ค์ ๋ํ๋๋ฉด ๋ค์ ๋ฌธ๋จ์๋ ์ถ๊ฐ ์๋จ ์ฌ๋ฐฑ์ด ์์ด ์ผ๊ด๋ ๊ฐ๊ฒฉ์ด ๋ณด์ฅ๋ฉ๋๋ค. ์ด๋ ๋ค์ํ ์ฝํ
์ธ ์น์
๊ณผ ์ธํฐ๋ํฐ๋ธ ๋ ์ด์์์ ์ ์ฉ๋ฉ๋๋ค.
์ด๊ฒ์ ์นํ์ด์ง ๋ ์ด์์์์ ํน์ ๋ฌธ๋จ์ ๋์์ผ๋ก ํ๋ CSS ์ ํ์ ๋ชฉ๋ก์
๋๋ค. "element-atom", "sign-in-gate" ๋๋ ์ํ์ (๋ง์ง๋ง ๊ฒ์ ์ ์ธ)๊ณผ ๊ฐ์ ํน์ ์์ ๋ฐ๋ก ๋ค์ ์ค๋ ๋ฌธ๋จ์ 14ํฝ์
์ ์๋จ ํจ๋ฉ์ ์ ์ฉํฉ๋๋ค. ์ ํ์๋ ๊ธฐ๋ณธ ์ฝํ
์ธ , ๋๊ธ ๋ณธ๋ฌธ, ํผ์ฒ ๋ณธ๋ฌธ๊ณผ ๊ฐ์ ํ์ด์ง์ ๋ค์ํ ์น์
์ ๋ค๋ฃน๋๋ค.
CSS์ ๋ ๋ฒ์งธ ๋ถ๋ถ์ `:first-letter` ์์ฌ ์์๋ฅผ ์ฌ์ฉํ์ฌ ๋์ผํ ๋ฌธ๋จ์ ์ฒซ ๊ธ์์ ์คํ์ผ์ ์ ์ฉํ๋ฉฐ, ๋๋กญ ์บก ํจ๊ณผ๋ฅผ ์ํ ๊ฒ์
๋๋ค. ๊ธฐ๋ณธ ์ด, ๊ธฐ์ฌ ๋ณธ๋ฌธ, ์ธํฐ๋ํฐ๋ธ ์ฝํ
์ธ ์น์
๊ณผ ๊ฐ์ ๋ค์ํ ์ปจํ
์ด๋์ ์ด ์คํ์ผ์ ์ ์ฉํฉ๋๋ค.
---
CSS ๊ท์น์ ํน์ ์ฝํ
์ธ ์์ญ ๋ด์์ ์ํ์ ์ด๋ ๊ด๊ณ ์ปจํ
์ด๋์ ๊ฐ์ ํน์ ์์ ๋ค์ ์ค๋ ์ฒซ ๋ฒ์งธ ๋ฌธ๋จ์ ์ฒซ ๊ธ์์ ๋๋กญ ์บก ์คํ์ผ์ ์ ์ฉํฉ๋๋ค. ๋๋กญ ์บก์ Guardian Headline ๊ธ๊ผด์ ์ฌ์ฉํ๊ณ , ๊ตต๊ฒ, ํฌ๊ฒ(111px), ์ผ์ชฝ์ผ๋ก ๋ ์์ผ๋ฉฐ ๋๋ฌธ์ ํ
์คํธ์
๋๋ค. ์ค๋ฅธ์ชฝ์ ์ฌ๋ฐฑ์ด ์๊ณ , ์ธ๋ก๋ก ์์ชฝ์ ์ ๋ ฌ๋๋ฉฐ, ์ฌ์ฉ์ ์ ์ ์์ ๋ณ์๋ฅผ ์ฌ์ฉํฉ๋๋ค.
์ธํฐ๋ํฐ๋ธ ์ฝํ
์ธ ๋ฐ ๊ธฐํ ์น์
์ ๊ฒฝ์ฐ ์ํ์ ๋ค์ ์ค๋ ๋ฌธ๋จ์๋ ์๋จ ํจ๋ฉ์ด ์์ต๋๋ค.
์ด๋ฌํ ์ฝํ
์ธ ์์ญ ๋ด์ ํ ์ธ์ฉ๊ตฌ๋ ์ต๋ ๋๋น 620px๋ก ์ ํ๋ฉ๋๋ค.
์ผ์ผ์ด์ค ์์์ ์ด๋ฏธ์ง ์บก์
์ ์ ์ ์ผ๋ก ๋ฐฐ์น๋๋ฉฐ ์ต๋ 620px๊น์ง ์ ์ฒด ๋๋น๋ฅผ ์ฐจ์งํฉ๋๋ค. ๋ ๋์ ํ๋ฉด(71.25em ์ด๊ณผ)์์๋ ์ ๋ ์์น๋ก ๋ฐฐ์น๋๊ณ ์ต๋ ๋๋น 140px๊ฐ ๋๋ฉฐ, ๋ ๋์ ํ๋ฉด(81.25em ์ด๊ณผ)์์๋ ์ต๋ ๋๋น๊ฐ 220px๋ก ์ฆ๊ฐํฉ๋๋ค.
๋ชฐ์
ํ ์์๋ ์คํฌ๋กค๋ฐ ๋๋น๋ฅผ ๊ณ ๋ คํ์ฌ ์ ์ฒด ๋ทฐํฌํธ ๋๋น์ ๊ฑธ์ณ ์์ต๋๋ค. ์์ ํ๋ฉด์์๋ ์ต๋ ๋๋น 978px์ด๊ณ ์บก์
์๋ ๊ฐ๋ก ํจ๋ฉ์ด ์์ต๋๋ค. ์ค๊ฐ ํ๋ฉด์์๋ ์ต๋ ๋๋น๊ฐ 738px์
๋๋ค. ๋งค์ฐ ์์ ํ๋ฉด์์๋ ์์๊ฐ ์์ ์ฌ๋ฐฑ์ผ๋ก ์ผ์ชฝ์ผ๋ก ์ด๋ํ๊ณ ์บก์
์ ์ถ๊ฐ ํจ๋ฉ์ด ์ ์ฉ๋ฉ๋๋ค.
๋ณธ๋ฌธ ์ฝํ
์ธ ์ ์ผ์ผ์ด์ค ํผ๊ท์ด์ ๊ฒฝ์ฐ ๋ ํฐ ํ๋ฉด์์ ์์ ์ผ์ชฝ ์ฌ๋ฐฑ์ด ์ ์ฉ๋์ด ์ ๋๋ก ์ ๋ ฌ๋ฉ๋๋ค.
ํผ๋์ฒ ๋ํผ๋ ์๋์ ์ผ๋ก ์์นํ๋ฉฐ, 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%;
}
}
height: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 ๊ท์น ์ธํธ์
๋๋ค. ๊ฐ ๊ท์น์ Guardian ์น์ฌ์ดํธ์ ํธ์คํ
๋ ํ์ผ์ ์ฌ์ฉํ์ฌ ๊ธ๊ผด์ ๋ค๋ฅธ ์คํ์ผ์ด๋ ๊ตต๊ธฐ๋ฅผ ์ ์ํฉ๋๋ค. ํ์์๋ ๋ธ๋ผ์ฐ์ ๊ฐ ํธํ์ฑ์ ์ํ WOFF2, WOFF, TTF๊ฐ ํฌํจ๋ฉ๋๋ค. ๊ตต๊ธฐ๋ ์ผ๋ฐ(400)์์ ๋ธ๋(900)๊น์ง์ด๋ฉฐ, ์ผ๋ฐ ๋ฐ ์ดํค๋ฆญ ์คํ์ผ์ด ๋ชจ๋ ์ ๊ณต๋ฉ๋๋ค.
์ด ํ
์คํธ๋ ์์ฐ์ด๊ฐ ์๋ CSS ์ฝ๋๋ก ๋ณด์
๋๋ค. ์น์ฌ์ดํธ(์๋ง The Guardian)์ ๊ธ๊ผด ์คํ์ผ๊ณผ ๋ ์ด์์ ๊ท์น์ ์ ์ํฉ๋๋ค. ๊ธฐ์ ์ ์ธ ์ฝ๋์ด๋ฏ๋ก "์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด"๋ก ๋ค์ ์ฐ๋ ๊ฒ์ ์ ์ ํ์ง ์์ต๋๋คโ๋ธ๋ผ์ฐ์ ๊ฐ ์ฝ๋๋ก ๋ง๋ค์ด์ง ๊ฒ์ด์ง ์ฌ๋์ด ์ฝ๋๋ก ๋ง๋ค์ด์ง ๊ฒ์ด ์๋๊ธฐ ๋๋ฌธ์
๋๋ค. ์ํ์๋ฉด ์ด ์ฝ๋๊ฐ ๋ฌด์์ ํ๋์ง ํ์ดํ ์์ด๋ก ์ค๋ช
ํด ๋๋ฆด ์ ์์ต๋๋ค.
iOS ๋ฐ Android ๊ธฐ๊ธฐ์ ๊ฒฝ์ฐ, ๊ธฐ์ฌ ์ปจํ
์ด๋์ ํผ๋์ฒ ๋ํผ ๋ด๋ถ์ ์๋ ๋ผ๋ฒจ์ ๊ตต์ ํ
์คํธ๋ก ์คํ์ผ์ด ์ง์ ๋๋ฉฐ, Guardian ํค๋๋ผ์ธ ๊ธ๊ผด ํจ๋ฐ๋ฆฌ๋ฅผ ์ฌ์ฉํ๊ณ , ํ๋ฌ ์์์ ๋ฐ๋ผ ์์์ด ์ง์ ๋๋ฉฐ, ๋๋ฌธ์ ํ
์คํธ๋ก ํ์๋ฉ๋๋ค.
iOS์ Android ๋ชจ๋์์ ํผ๋์ฒ ๋ํผ์ ์ฃผ์ ํค๋๋ผ์ธ์ 32ํฝ์
, ๊ตต๊ฒ, ์๋์ 12ํฝ์
ํจ๋ฉ, ๊ทธ๋ฆฌ๊ณ ์ด๋์ด ์(๊ฑฐ์ ๊ฒ์์)์ผ๋ก ์ค์ ๋ฉ๋๋ค.
๋ ํ๋ซํผ ๋ชจ๋์์ ํผ๋์ฒ ๋ํผ์ ์ด๋ฏธ์ง๋ ์๋์ ์ผ๋ก ์์นํ๋ฉฐ, ์์ 14ํฝ์
์ฌ๋ฐฑ, ์ฝ๊ฐ์ ์์ ์ผ์ชฝ ์ฌ๋ฐฑ์ด ์๊ณ , ํ๋ฉด ์ ์ฒด ๋๋น(์คํฌ๋กค๋ฐ ๊ณ ๋ ค)๋ก ๋์ด๋ฉ๋๋ค. ์ด๋ฏธ์ง ์์ฒด์ ๋งํฌ ๋ฐ ๋ด๋ถ ์ปจํ
์ด๋๋ ํฌ๋ช
ํ ๋ฐฐ๊ฒฝ์ ๊ฐ์ง๋ฉฐ ์์ฐ ๋์ด๋ฅผ ์ ์งํฉ๋๋ค.
ํผ๋์ฒ ๋ํผ์ ์คํ ๋ํผ์คํธ(์๊ฐ ํ
์คํธ)๋ ๋ ํ๋ซํผ ๋ชจ๋์์ ์๋จ๊ณผ ํ๋จ์ ์ฝ๊ฐ์ ํจ๋ฉ์ด ์๊ณ , ํ๋ฉด ๊ฐ์ฅ์๋ฆฌ์ ๋ง๊ฒ ์ฝ๊ฐ์ ์์ ์ค๋ฅธ์ชฝ ์ฌ๋ฐฑ์ด ์์ต๋๋ค.
.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,
body.android #comment-article-container .furniture-wrapper .meta {
margin: 0;
}
body.ios #feature-article-container .furniture-wrapper .meta .byline,
body.ios #feature-article-container .furniture-wrapper .meta .byline__author,
body.ios #feature-article-container .furniture-wrapper .meta span.byline__author a,
body.ios #feature-article-container .furniture-wrapper .meta .meta__byline span,
body.ios #standard-article-container .furniture-wrapper .meta .byline,
body.ios #standard-article-container .furniture-wrapper .meta .byline__author,
body.ios #standard-article-container .furniture-wrapper .meta span.byline__author a,
body.ios #standard-article-container .furniture-wrapper .meta .meta__byline span,
body.ios #comment-article-container .furniture-wrapper .meta .byline,
body.ios #comment-article-container .furniture-wrapper .meta .byline__author,
body.ios #comment-article-container .furniture-wrapper .meta span.byline__author a,
body.ios #comment-article-container .furniture-wrapper .meta .meta__byline span,
body.android #feature-article-container .furniture-wrapper .meta .byline,
body.android #feature-article-container .furniture-wrapper .meta .byline__author,
body.android #feature-article-container .furniture-wrapper .meta span.byline__author a,
body.android #feature-article-container .furniture-wrapper .meta .meta__byline span,
body.android #standard-article-container .furniture-wrapper .meta .byline,
body.android #standard-article-container .furniture-wrapper .meta .byline__author,
body.android #standard-article-container .furniture-wrapper .meta span.byline__author a,
body.android #standard-article-container .furniture-wrapper .meta .meta__byline span,
body.android #comment-article-container .furniture-wrapper .meta .byline,
body.android #comment-article-container .furniture-wrapper .meta .byline__author,
body.android #comment-article-container .furniture-wrapper .meta span.byline__author a,
body.android #comment-article-container .furniture-wrapper .meta .meta__byline span {
/ ์ฌ๊ธฐ์๋ ํน์ ์คํ์ผ์ด ์ ์๋์ด ์์ง ์์ต๋๋ค /
}
Android์์๋ ๊ธฐ์ฌ ๋ฐ ๋๊ธ ์น์
์ ๋ฐ์ด๋ผ์ธ๊ณผ ์์ฑ์ ๋งํฌ๊ฐ ํ
์คํธ์ ํ๋ฌ ์์์ ์ฌ์ฉํฉ๋๋ค. iOS์์๋ ๋์ผํ ์คํ์ผ์ด ์ ์ฉ๋ฉ๋๋ค.
iOS์ Android ๋ชจ๋์์ ์ด๋ฌํ ์น์
์ ๋ฉํ ์ ๋ณด ์์ญ์๋ ์ถ๊ฐ ํจ๋ฉ์ด ์์ต๋๋ค. ํด๋น ์์ญ์ ์์ด์ฝ(SVG ์์)์ ํ์ ํ๋ฌ ์์์ ์ฌ์ฉํฉ๋๋ค.
์ผ์ผ์ด์ค ์์์ ์บก์
๋ฒํผ์ ๋ ํ๋ซํผ์์ ๋์ผํ ๋ฐฉ์์ผ๋ก ์คํ์ผ์ด ์ง์ ๋ฉ๋๋ค: ์๊ณ ์ค์์ ์๋ ๋ฒํผ(28 x 28ํฝ์
)์ผ๋ก 5ํฝ์
ํจ๋ฉ์ด ์๊ณ ์ค๋ฅธ์ชฝ์์ 14ํฝ์
๋จ์ด์ ธ ์์ต๋๋ค.
iOS์ Android ๋ชจ๋์์ ์ฃผ์ ๊ธฐ์ฌ ๋ณธ๋ฌธ์ ์ผ์ชฝ๊ณผ ์ค๋ฅธ์ชฝ์ 12ํฝ์
์ ํจ๋ฉ์ด ์์ต๋๋ค.
๊ธฐ์ฌ ๋ณธ๋ฌธ์์ ์ธ๋ค์ผ์ด๋ ๋ชฐ์
ํ์ด ์๋ ์ด๋ฏธ์ง(ํ์ค ๋๋ ์ผ์ผ์ด์ค ์ด๋ฏธ์ง)๋ ํ๋ฉด ์ ์ฒด ๋๋น์์ 24ํฝ์
(ํจ๋ฉ ๊ณ ๋ ค)๊ณผ ์คํฌ๋กค๋ฐ ๋๋น๋ฅผ ๋บ ์ ์ฒด ๋๋น๋ฅผ ์ฐจ์งํฉ๋๋ค. ํด๋น ์บก์
์ ๋์ผํ ๋ ์ด์์ ๊ท์น์ ๋ฐ๋ฆ
๋๋ค.
๋ชฐ์
ํ์ด ์๋ ์์์ ๊ฒฝ์ฐ ์บก์
์ ํจ๋ฉ์ด ์์ด์ผ ํฉ๋๋ค.
iOS ๋ฐ Android ๊ธฐ๊ธฐ์์ ๊ธฐ์ฌ ๋ณธ๋ฌธ์ ์ด๋ฏธ์ง๊ฐ ๋ชฐ์
ํ์ธ ๊ฒฝ์ฐ ์คํฌ๋กค๋ฐ ๋๋น๋ฅผ ๊ณ ๋ คํ์ฌ ํ๋ฉด ์ ์ฒด ๋๋น๋ก ๋์ด๋์ผ ํฉ๋๋ค.
์ด๋ฌํ ๊ธฐ๊ธฐ์ ๊ธฐ์ฌ ๋ณธ๋ฌธ์ ์๋ ์ธ์ฉ ๋ธ๋ก ์ธ์ฉ๊ตฌ์ ๊ฒฝ์ฐ ์ธ์ฉ ๋ถํธ๊ฐ ํ๋ฌ ์์์ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
iOS ๋ฐ Android์ ๊ธฐ์ฌ ๋ณธ๋ฌธ์ ์๋ ๋งํฌ๋ ๊ธฐ๋ณธ ํ๋ฌ ์์, ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง ์์, 6px ์คํ์
์ ๋ฐ์ค๋ก ์คํ์ผ์ด ์ง์ ๋์ด์ผ ํฉ๋๋ค. ๋ฐ์ค ์์์ ํค๋ ํ
๋๋ฆฌ์ ์ผ์นํด์ผ ํฉ๋๋ค. ์ด๋ฌํ ๋งํฌ๋ฅผ ํธ๋ฒํ ๋ ๋ฐ์ค ์์์ ํ๋ฌ ์์์ผ๋ก ๋ณ๊ฒฝ๋์ด์ผ ํฉ๋๋ค.
๋คํฌ ๋ชจ๋์์ ํผ๋์ฒ ๋ํผ(๊ธฐ์ฌ ํค๋ ํฌํจ)๋ ์ด๋์ด ๋ฐฐ๊ฒฝ์ ๊ฐ์ ธ์ผ ํฉ๋๋ค. ์ด ๋ํผ ๋ด๋ถ์ ๋ผ๋ฒจ, ํค๋๋ผ์ธ, ์คํ ๋ํผ์คํธ ํ
์คํธ ๋ฐ ๋งํฌ๋ ์ ์ ํ ์์์ ์ฌ์ฉํด์ผ ํฉ๋๋ค: ๋ผ๋ฒจ๊ณผ ๋งํฌ๋ ํ๋ฌ ์์, ํค๋๋ผ์ธ์ ํค๋ ํ
๋๋ฆฌ ์์, ์คํ ๋ํผ์คํธ ํ
์คํธ๋ ํค๋ ํ
๋๋ฆฌ ์์์
๋๋ค.
์ด ํ
์คํธ๋ ์์ฐ์ด๊ฐ ์๋ CSS ์ฝ๋ ๋ธ๋ก์ผ๋ก ๋ณด์
๋๋ค. ์น์ฌ์ดํธ(์๋ง The Guardian์ ๊ธฐ์ฌ ํ์ด์ง)์ ๋ํ ์ ํ์์ ์คํ์ผ ๊ท์น์ด ํฌํจ๋์ด ์์ต๋๋ค. ๊ธฐ์ ์ ์ธ ์ฝ๋์ด๋ฏ๋ก ๊ธฐ๋ฅ์ ๋ณ๊ฒฝํ์ง ์๊ณ "์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด"๋ก ๋ค์ ์ฐ๋ ๊ฒ์ ์ ์ ํ์ง ์์ต๋๋ค. ๋ค๋ฅธ ํ
์คํธ๋ฅผ ์ ๊ณตํ๋ ค๋ ์๋์๋ค๋ฉด ๊ณต์ ํด