์ฃ์กํฉ๋๋ค๋ง, CSS ์ฝ๋๋ฅผ ์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด๋ก ๋ค์ ์ฐ๋ ๊ฒ์ ๋์๋๋ฆด ์ ์์ต๋๋ค. CSS๋ ๊ธฐ์ ์ ์ธ ์คํ์ผ์ํธ ์ธ์ด์ด์ง ์ฐ๋ฌธ์ผ๋ก ๋ค์ ์ฐ๊ธฐ ์ํ ํ
์คํธ๊ฐ ์๋๊ธฐ ๋๋ฌธ์
๋๋ค. ๋ค์ ์ฐ๊ธฐ๋ฅผ ์ํ๋ ๋ค๋ฅธ ํ
์คํธ๊ฐ ์์ผ์๋ฉด ์ ๊ณตํด ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค. ๊ธฐ๊บผ์ด ๋์๋๋ฆฌ๊ฒ ์ต๋๋ค.
์ด ํ
์คํธ๋ ์์ฐ์ด๋ก ์์ฑ๋ ๊ฒ์ด ์๋๋ผ ์น ํฐํธ๋ฅผ ์ ์ํ๊ธฐ ์ํ CSS ์ฝ๋์ด๋ฏ๋ก ๋ค์ ์ธ ์ ์์ต๋๋ค. ์๋ฒ์์ ํฐํธ ํ์ผ(Guardian Headline ๋ฐ Guardian Titlepiece ๋ฑ)์ ๋ก๋ํ๊ธฐ ์ํ ๊ธฐ์ ์ ํ์ ๊ท์น์ด ํฌํจ๋์ด ์์ต๋๋ค. ์ํ์๋ฉด ์ด ์ฝ๋๊ฐ ์ํํ๋ ๊ธฐ๋ฅ์ ์ผ๋ฐ ์์ด๋ก ์ค๋ช
ํด ๋๋ฆด ์ ์์ต๋๋ค.
์ด๊ฒ์ "Guardian Headline Full" ๊ธ๊ผด ํจ๋ฐ๋ฆฌ์ ๋ํ font-face ๊ท์น์ ์ ์ํ๋ CSS ์ฝ๋ ์ค๋ํซ์
๋๋ค. ๋ค์ํ ๊ธ๊ผด ๋๊ป์ ์คํ์ผ์ ์ง์ ํ๋ฉฐ, ๊ฐ๊ฐ ๋ค๋ฅธ ํ์ผ ํ์(woff2, woff, truetype)์ ๋ํ ์์ค URL์ด ํฌํจ๋์ด ์์ต๋๋ค. ํฐํธ ํ์ผ์ Guardian์ ์์
์๋ฒ์์ ํธ์คํ
๋ฉ๋๋ค. ์ฝ๋์๋ ์ผ๋ฐ, ์ดํค๋ฆญ, ๋ฏธ๋์, ์ธ๋ฏธ๋ณผ๋, ๋ณผ๋, ๋ธ๋ ๋ณํ์ด ํฌํจ๋์ด ์์ผ๋ฉฐ, ํด๋น font-weight ๊ฐ์ 400์์ 900๊น์ง์
๋๋ค.
์ด ํ
์คํธ๋ ์์ฐ์ด๊ฐ ์๋ CSS ์ฝ๋๋ก ๋ณด์
๋๋ค. ์น์ฌ์ดํธ์ ๊ธ๊ผด ์คํ์ผ๊ณผ ๋ฐ์ํ ๊ทธ๋ฆฌ๋ ๋ ์ด์์์ ์ ์ํฉ๋๋ค. ๊ธฐ์ ์ ์ฝ๋์ด๋ฏ๋ก ์ ์ฐฝํ ์์ด๋ก ๋ค์ ์ธ ํ์๊ฐ ์์ต๋๋ค. ๋ค๋ฅธ ํ
์คํธ๋ฅผ ๊ณต์ ํ๋ ค๋ ์๋์๋ค๋ฉด ๋ค์ ๋ถ์ฌ๋ฃ์ด ์ฃผ์๋ฉด ๊ธฐ๊บผ์ด ๋์๋๋ฆฌ๊ฒ ์ต๋๋ค.
๋ชฐ์
ํ ์บก์
์ด ์๋ ์ธํฐ๋ํฐ๋ธ ๊ทธ๋ฆฌ๋ ๊ทธ๋ฆผ์ ๊ฒฝ์ฐ, ์บก์
์คํ์ผ๋ง์ ์๋จ์ 4px ํจ๋ฉ์ ์ ์ฉํ๊ณ ์ข์ฐ์ ํ๋จ์๋ 0์ ์ ์ฉํฉ๋๋ค. ์ฃผ์ ๊ธฐ์ฌ ๋ณธ๋ฌธ, ์ธํฐ๋ํฐ๋ธ ์ฝํ
์ธ ์น์
, ๋๊ธ ์น์
๋ฐ ํผ์ฒ ๋ณธ๋ฌธ ์์ญ์์ ๋ผ์ธ ๋ฐ ๋ฉํ ์ ๋ณด๋ฅผ ์ํ ๊ทธ๋ฆฌ๋ ์์๋ ํ 2, ์ด 1์์ ํ 5, ์ด 2๊น์ง์ ๊ทธ๋ฆฌ๋ ์์ญ์ ๋ฐฐ์น๋ฉ๋๋ค. lines ์์๋ ์ฝํ
์ธ ์ ๋ง๋ ๋์ด๋ก ์ค์ ๋๋ฉฐ ์๋จ ์ฌ๋ฐฑ์ 5px์
๋๋ค. meta ์์๋ ์๋จ ์ฌ๋ฐฑ์ด 18px์
๋๋ค. ํ๋ฉด ๋๋น๊ฐ 81.25em ์ด์์ธ ๊ฒฝ์ฐ, ์ด๋ฌํ ์น์
์ ๊ทธ๋ฆฌ๋ ๋ ์ด์์์ 219px, 1px, 620px, 80px ๋ฐ 300px ์ด์ ์ฌ์ฉํฉ๋๋ค. iOS ๋ฐ Android ๊ธฐ๊ธฐ์์ ๊ธฐ์ฌ ํค๋์ ์คํ ๋ํผ์คํธ ํ
์คํธ๋ Guardian Headline ๊ธ๊ผด ํจ๋ฐ๋ฆฌ๋ฅผ ๋ฏธ๋์ ๋๊ป๋ก ์ฌ์ฉํฉ๋๋ค. ๊ธฐ์ฌ ํฅ์ปค ์น์
์ ๋ธ๋ก์ผ๋ก ํ์๋๋ฉฐ ์ฒซ ๊ธ์๋ ๋๋ฌธ์๋ก ํ์๋ฉ๋๋ค. keyline-4 ์์๋ ์๋จ ํจ๋ฉ์ด 12px ์ถ๊ฐ๋ฉ๋๋ค. ๋ฉํ ์น์
์ ๋ฐ์ด๋ผ์ธ ์์ฑ์ ์ด๋ฆ์ Guardian Headline ๊ธ๊ผด์ ๋ณผ๋ ๋๊ป๋ก ์ฌ์ฉํ๋ฉฐ, ๊ทธ ์์ ๋งํฌ๋ ๋ณผ๋ ์ฒ๋ฆฌ๋ฉ๋๋ค. ๊ธฐ์ฌ์ ์ด๋ฏธ์ง ๊ทธ๋ฆผ์ ๋ด๋ถ ์ปจํ
์ด๋ ๋์ด๊ฐ ์๋์ผ๋ก ์ค์ ๋ฉ๋๋ค. ์์ ์์ ๋ค์์ ์ค๋ ๋จ๋ฝ์๋ ์๋จ ์ฌ๋ฐฑ์ด ์์ต๋๋ค. Guardian Headline Full์ ๋ํ ์ฌ์ฉ์ ์ ์ ๊ธ๊ผด์ด ๋ผ์ดํธ ๋ฐ ๋ผ์ดํธ ์ดํค๋ฆญ ์คํ์ผ๋ก ์ ์๋์ด ์์ผ๋ฉฐ, Guardian์ ์์
์๋ฒ์์ ๊ฐ์ ธ์ต๋๋ค.
์ด ํ
์คํธ๋ ์น ํฐํธ๋ฅผ ์ ์ํ๊ธฐ ์ํ CSS ์ฝ๋๋ก ๋ณด์ด๋ฏ๋ก ๋ค์ ์ธ ์ ์์ต๋๋ค. ์์ฐ์ด ์ฝํ
์ธ ๊ฐ ์๋ ๊ธฐ์ ์ ํ์ ๊ท์น(URL ๋ฐ ๊ธ๊ผด ๋๊ป๊ฐ ํฌํจ๋ font-face ์ ์ธ ๋ฑ)์ด ํฌํจ๋์ด ์์ด ์ ์ฐฝํ ์์ด ์ฐ๋ฌธ์ผ๋ก ๋ณํํ ์ ์์ต๋๋ค.
๊ธฐ์ฌ, ๋จ๋ฝ ๋๋ ๋ฌธ์ฅ๊ณผ ๊ฐ์ด ๋ค์ ์ฐ๊ธฐ๋ฅผ ์ํ๋ ๋ค๋ฅธ ํ
์คํธ๊ฐ ์์ผ์๋ฉด ๊ณต์ ํด ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค. ์์ฐ์ค๋ฝ๊ณ ์ ์ฐฝํ ์์ด๋ก ๋ค์ ์ฐ๋ ๊ฒ์ ๊ธฐ๊บผ์ด ๋์๋๋ฆฌ๊ฒ ์ต๋๋ค.
๋ค์์ ์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด๋ก ๋ค์ ์ด ํ
์คํธ์
๋๋ค:
```css
@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;
}
}
[data-gu-name="media"]:has(figure.loop) figure.loop figcaption:not(.hidden) {
z-index: 6;
}
[data-gu-name="media"]:has(figure.loop) figure.loop button[data-link-name*="gu-video-loop"] {
align-self: flex-end;
margin-bottom: 40px;
margin-right: 3px;
}
[data-gu-name="media"]:has(figure.loop) figure.loop .controls-container div:has(button[data-testid="unmute-icon"]),
[data-gu-name="media"]:has(figure.loop) figure.loop .controls-container div:has(button[data-testid="mute-icon"]) {
/ ํ์ํ ๊ฒฝ์ฐ ์ฌ๊ธฐ์ ํน์ ์คํ์ผ์ ์ถ๊ฐํ์ธ์ /
}
```
ํ์ ์ ๋ฆฌ, ์ ์ ํ ๊ฐ๊ฒฉ ์ถ๊ฐ, ์๋ CSS ๊ท์น๊ณผ ๊ฐ์ ๋ชจ๋ ์ ์งํ๋ฉด์ ์ฝ๋๋ฅผ ๋ ์ฝ๊ธฐ ์ฝ๊ฒ ๋ง๋ค์์ต๋๋ค..loop .controls-container div:has(button[data-testid=mute-icon]) {
right: 0;
padding-left: 10px;
}
[data-gu-name=media]:has(figure.loop) #caption-button {
z-index: 100;
}
@media (min-width: 61.25em) {
[data-gu-name=media]:has(figure.loop) #caption-button {
bottom: 20px;
}
}
@media (min-width: 46.25em) {
[data-gu-name=media]:has(figure.cinemagraph) .cinemagraph>div {
max-height: unset;
}
}
[data-gu-name=body] gu-island[name=SelfHostedVideo] {
width: 100%;
max-width: 620px;
display: block;
margin-top: 12px;
margin-bottom: 12px;
}
[data-gu-name=body] gu-island[name=SelfHostedVideo] figure.loop,
[data-gu-name=body] gu-island[name=SelfHostedVideo] figure.loop video {
width: 100%;
height: auto;
max-width: 620px;
margin: 0 auto;
}
[data-gu-name=body] gu-island[name=SelfHostedVideo]:has(figure.loop.element-video-immersive) {
max-width: unset;
margin: 12px 0;
}
[data-gu-name=body] gu-island[name=SelfHostedVideo]:has(figure.loop.element-video-immersive) figure.loop,
[data-gu-name=body] gu-island[name=SelfHostedVideo]:has(figure.loop.element-video-immersive) figure.loop video {
max-width: unset;
margin: 0;
}
@media (min-width: 71.25em) {
[data-gu-name=body] gu-island[name=SelfHostedVideo]:has(figure.loop.element-video-immersive) {
width: 1140px;
margin-left: -180px;
}
[data-gu-name=body] gu-island[name=SelfHostedVideo]:has(figure.loop.element-video-immersive) figure figcaption {
margin-left: 20px;
}
}
@media (min-width: 81.25em) {
[data-gu-name=body] gu-island[name=SelfHostedVideo]:has(figure.loop.element-video-immersive) {
width: 1300px;
margin-left: -260px;
}
}
:root {
--dateline: #606060;
--headerBorder: #dcdcdc;
--captionText: #999;
--captionBackground: hsla(0, 0%, 7%, .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,
#feature-body .element-atom:first-of-type+.sign-in-gate+p:first-of-type:first-letter,
#feature-body .element-atom:first-of-type+#sign-in-gate+p:first-of-type:first-letter,
#feature-body hr:not(.last-horizontal-rule)+p:first-letter {
/ ์ฌ๊ธฐ์๋ ํน์ ์คํ์ผ์ด ์ ์๋์ด ์์ง ์์ง๋ง, ๋๋กญ ์บก ์คํ์ผ๋ง์ ์ํด ์ ํ์๊ฐ ์ ์ง๋ฉ๋๋ค /
}์ด๊ฒ์ ์์ฐ์ค๋ฌ์ด ์์ด๋ก ๋ค์ ์จ์ผ ํ๋ ํ
์คํธ ๊ตฌ์ ์ด ์๋ CSS ์ฝ๋ ๋ธ๋ก์
๋๋ค. ์นํ์ด์ง(์๋ง ๊ฐ๋์ธ๊ณผ ๊ฐ์ ๋ด์ค ์ฌ์ดํธ)์ ๋ํ ์ ํ์์ ์คํ์ผ ๊ท์น์ด ํฌํจ๋์ด ์์ต๋๋ค. ๋ค์ ์ฐ๊ธฐ๋ฅผ ์ํ ๋ค๋ฅธ ํ
์คํธ๋ฅผ ์ ๊ณตํ๋ ค๋ ์๋์๋ค๋ฉด ๊ณต์ ํด ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค. ์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฝ๊ฒ ๋ง๋ค์ด ๋๋ฆฌ๊ฒ ์ต๋๋ค.figure.element.element--showcase.element-showcase,
[data-gu-name="body"] .content__main-column--interactive figure.element.element--showcase.element-showcase {
margin-left: -240px !important;
}
@media (min-width: 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);
}
.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,
.furnitur์ด๊ฒ์ ์์ฐ์ค๋ฌ์ด ์์ด๋ก ๋ค์ ์จ์ผ ํ๋ ํ
์คํธ๊ฐ ์๋ CSS ์ฝ๋ ๋ธ๋ก์
๋๋ค. ์นํ์ด์ง ๋ ์ด์์์ ๋ํ ์คํ์ผ ๊ท์น(์ ํ์, ์์ฑ, ๋ฏธ๋์ด ์ฟผ๋ฆฌ ํฌํจ)์ด ํฌํจ๋์ด ์์ต๋๋ค. ๋ค์ ์ฐ๊ธฐ๋ฅผ ์ํ ๋ค๋ฅธ ํ
์คํธ๋ฅผ ์ ๊ณตํ๋ ค๋ ์๋์๋ค๋ฉด ๊ณต์ ํด ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค. ์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด๋ก ๋ณํํด ๋๋ฆฌ๊ฒ ์ต๋๋ค.์ด ํ
์คํธ๋ ์ฐ๋ฌธ์ด ์๋ ๊ธฐ์ ์ ์ธ CSS ์ฝ๋ ์ค๋ํซ์ผ๋ก ๋ณด์
๋๋ค. ์น์ฌ์ดํธ(์๋ง ๊ฐ๋์ธ์ ๊ธฐ์ฌ ํ์ด์ง)์ ๋ํ ์ ํ์์ ์คํ์ผ ๊ท์น์ด ํฌํจ๋์ด ์์ผ๋ฉฐ, ๋ชจ๋ฐ์ผ ๊ธฐ๊ธฐ(iOS ๋ฐ Android)๋ฅผ ๋์์ผ๋ก ํฉ๋๋ค. ์ฝ๋์ด๋ฏ๋ก "์ ์ฐฝํ๊ณ ์์ฐ์ค๋ฌ์ด ์์ด"๋ก ๋ค์ ์ฐ๋ ๊ฒ์ ์ผ๋ฐ์ ์ธ ์๋ฏธ์์ ์ ์ฉ๋์ง ์์ต๋๋ค. ๊ทธ๋ฌ๋ ์ด ์ฝ๋๊ฐ ์ํํ๋ ๊ธฐ๋ฅ์ ๊ธฐ์ ์ ์ ๋ฌธ ์ฉ์ด๋ฅผ ๋จ์ํํ์ฌ ์ผ๋ฐ ์์ด๋ก ์ค๋ช
ํ ์ ์์ต๋๋ค.
---
CSS ์ฝ๋ ์ค๋ช
:
์ด ์ฝ๋๋ ๋ชจ๋ฐ์ผ ๊ธฐ๊ธฐ(iOS ๋ฐ Android)์ ๊ธฐ์ฌ ํ์ด์ง์ ํน์ ์คํ์ผ ๊ท์น์ ์ ์ฉํฉ๋๋ค. ๊ธฐ๋ฅ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค:
1. ์ฒซ ๊ธ์ ์คํ์ผ๋ง: ํน์ ์์(์ด๋ฏธ์ง ๋๋ ๋ก๊ทธ์ธ ํ๋กฌํํธ ๋ฑ) ๋ค์์ ์ฒซ ๋ฒ์งธ ๋จ๋ฝ์์ ํผ์ฒ, ํ์ค ๋๋ ๋๊ธ ๊ธฐ์ฌ์ ๋ํด ์ฒซ ๊ธ์๊ฐ ๊ฒ์์(๋๋ ๋์ฒด ์์)์ผ๋ก ์ง์ ๋ฉ๋๋ค. ์ด๋ ๋๋กญ ์บก ๋๋ ๊ฐ์กฐ๋ฅผ ์ํ ์ผ๋ฐ์ ์ธ ๋์์ธ ์ ํ์
๋๋ค.
2. ํค๋ ๋์ด: ๋ชจ๋ฐ์ผ์์ ๊ธฐ์ฌ ํค๋ ์น์
์ ๋์ด๊ฐ 0์ผ๋ก ์ค์ ๋์ด ์จ๊ฒจ์ง๊ฑฐ๋ ์ถ์๋ฉ๋๋ค.
3. ํผ๋์ฒ ๋ํผ ํจ๋ฉ: ๊ธฐ์ฌ ๋ผ๋ฒจ๊ณผ ํค๋๋ผ์ธ์ด ํฌํจ๋ ์์ญ์ ์ฝ๊ฐ์ ํจ๋ฉ(์ํ 4px, ์ข์ฐ 10px)์ด ์ ์ฉ๋ฉ๋๋ค.
4. ๋ผ๋ฒจ ์คํ์ผ๋ง: ๊ธฐ์ฌ ๋ผ๋ฒจ("News" ๋๋ "Sport" ๋ฑ)์ ๋ณผ๋์ฒด, ์ธ๋ฆฌํ ๊ธ๊ผด(์: Georgia)๋ก ํ์๋๋ฉฐ ์ฌ์ฉ์ ์ ์ ๋ณ์(์๋ง ์น์
์์)๋ฅผ ์ฌ์ฉํ์ฌ ์์์ด ์ง์ ๋ฉ๋๋ค. ํ
์คํธ๋ ๋๋ฌธ์๋ก ํ์๋ฉ๋๋ค.
5. ํค๋๋ผ์ธ ์คํ์ผ๋ง: ์ฃผ์ ํค๋๋ผ์ธ(h1)์ ๊ธ๊ผด ํฌ๊ธฐ 32ํฝ์
, ๋ณผ๋์ฒด, ํ๋จ ํจ๋ฉ, ๊ฑฐ์ ๊ฒ์์์ ๊ฐ๊น์ด ์ด๋์ด ์์์ผ๋ก ์ค์ ๋ฉ๋๋ค.
6. ์ด๋ฏธ์ง ์ฒ๋ฆฌ: ํผ๋์ฒ ๋ํผ ๋ด์ ์ด๋ฏธ์ง ๊ทธ๋ฆผ์๋ ์ฌ๊ธฐ์ ํน์ ์คํ์ผ์ด ์ง์ ๋์ง ์์ง๋ง, ์ ํ์๋ ๋ค๋ฅธ ๊ณณ์์ ๋์์ด ๋ ์ ์์์ ์์ฌํฉ๋๋ค.
์์ฝํ๋ฉด, ์ด ์ฝ๋๋ ๋ชจ๋ฐ์ผ ๊ธฐ๊ธฐ์์ ๊ธฐ์ฌ ํค๋๋ผ์ธ๊ณผ ๋ผ๋ฒจ์ด ์ผ๊ด๋๊ฒ ์คํ์ผ๋ง๋๊ณ , ํค๋๊ฐ ์จ๊ฒจ์ง๋ฉฐ, ์ฒซ ๋ฒ์งธ ๋จ๋ฝ์ ์ฒซ ๊ธ์๊ฐ ๊ฐ์กฐ ํ์๋๋๋ก ํ๋ฉด์ ์ฌ์ดํธ์ ์๊ฐ์ ์ ์ฒด์ฑ์ ์ ์งํฉ๋๋ค.figure.element-image {
position: relative;
margin: 14px 0 0 -10px;
width: calc(100vw - var(--scrollbar-width, 0px));
height: auto;
}
/ iOS ๋ฐ Android์์ ๊ธฐ์ฌ ์ปจํ
์ด๋์ ํผ๋์ฒ ๋ํผ ๋ด ์ด๋ฏธ์ง ์์์ ๋ํด /
body.ios #feature-article-container .furniture-wrapper figure.element-image .figure__inner,
body.ios #feature-article-container .furniture-wrapper figure.element-image img,
body.ios #feature-article-container .furniture-wrapper figure.element-image a,
body.ios #standard-article-container .furniture-wrapper figure.element-image .figure__inner,
body.ios #standard-article-container .furniture-wrapper figure.element-image img,
body.ios #standard-article-container .furniture-wrapper figure.element-image a,
body.ios #comment-article-container .furniture-wrapper figure.element-image .figure__inner,
body.ios #comment-article-container .furniture-wrapper figure.element-image img,
body.ios #comment-article-container .furniture-wrapper figure.element-image a,
body.android #feature-article-container .furniture-wrapper figure.element-image .figure__inner,
body.android #feature-article-container .furniture-wrapper figure.element-image img,
body.android #feature-article-container .furniture-wrapper figure.element-image a,
body.android #standard-article-container .furniture-wrapper figure.element-image .figure__inner,
body.android #standard-article-container .furniture-wrapper figure.element-image img,
body.android #standard-article-container .furniture-wrapper figure.element-image a,
body.android #comment-article-container .furniture-wrapper figure.element-image .figure__inner,
body.android #comment-article-container .furniture-wrapper figure.element-image img,
body.android #comment-article-container .furniture-wrapper figure.element-image a {
background-color: transparent;
width: calc(100vw - var(--scrollbar-width, 0px));
height: auto !important;
}
/ iOS ๋ฐ Android์์ ๊ธฐ์ฌ ์ปจํ
์ด๋์ ์คํ ๋ํผ์คํธ ์น์
์ ๋ํด /
body.ios #feature-article-container .furniture-wrapper .standfirst,
body.ios #standard-article-container .furniture-wrapper .standfirst,
body.ios #comment-article-container .furniture-wrapper .standfirst,
body.android #feature-article-container .furniture-wrapper .standfirst,
body.android #standard-article-container .furniture-wrapper .standfirst,
body.android #comment-article-container .furniture-wrapper .standfirst {
padding-top: 4px;
padding-bottom: 24px;
margin-right: -10px;
}
/ iOS ๋ฐ Android์์ ์คํ ๋ํผ์คํธ ๋ด๋ถ ์น์
์ ๋จ๋ฝ์ ๋ํด /
body.ios #feature-article-container .furniture-wrapper .standfirst__inner p,
body.ios #standard-article-container .furniture-wrapper .standfirst__inner p,
body.ios #comment-article-container .furniture-wrapper .standfirst__inner p,
body.android #feature-article-container .furniture-wrapper .standfirst__inner p,
body.android #standard-article-container .furniture-wrapper .standfirst__inner p,
body.android #comment-article-container .furniture-wrapper .standfirst__inner p {
font-family: Guardian Headline, Guardian Egyptian Web, Guardian Headline Full, Georgia, serif;
}
/ iOS ๋ฐ Android์์ ์คํ ๋ํผ์คํธ ๋ด๋ถ ์น์
์ ๋งํฌ(๋ชฉ๋ก ํญ๋ชฉ ํฌํจ)์ ๋ํด /
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;
}
/ iOS ๋ฐ Android์์ ์คํ ๋ํผ์คํธ ๋ด๋ถ ์น์
๋งํฌ์ ํธ๋ฒ ์ํ์ ๋ํด /
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 {
/ ์ฌ๊ธฐ์ ํน์ ์คํ์ผ์ด ์ ์๋์ด ์์ง ์์ต๋๋ค. ์ผ๊ด์ฑ์ ์ํด ์ ์ง๋ฉ๋๋ค /
}iOS ๋ฐ Android ๊ธฐ๊ธฐ์์ ํผ์ฒ, ํ์ค ๋๋ ๋๊ธ ๊ธฐ์ฌ์ ์คํ ๋ํผ์คํธ ์น์
๋ด ๋งํฌ๋ฅผ ํธ๋ฒํ ๋ ๋ฐ์ค ์์์ด ์ ํ๋ผ ์์๊ณผ ์ผ์นํด์ผ ํฉ๋๋ค.
์ด ๊ธฐ๊ธฐ๋ค์์ ํผ๋์ฒ ๋ํผ ๋ด์ ๋ฉํ ์น์
์๋ ์ฌ๋ฐฑ์ด ์์ด์ผ ํฉ๋๋ค.
๋ํ iOS ๋ฐ Android์์ ๋ฐ์ด๋ผ์ธ ํ
์คํธ, ์์ฑ์ ์ด๋ฆ ๋ฐ ๋ฐ์ด๋ผ์ธ ๋๋ ๋ฉํ ๋ฐ์ด๋ผ์ธ ๋ด์ ๋ชจ๋ ๋งํฌ๋ ์ ํ๋ผ ์์์ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
meta__misc ์น์
์๋ ํจ๋ฉ