@font-face {
font-family: 'Guardian Headline Full';
src: url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Light.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Light.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-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/noalts-not-hinted/GHGuardianHeadline-LightItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-LightItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-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/noalts-not-hinted/GHGuardianHeadline-Regular.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Regular.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-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/noalts-not-hinted/GHGuardianHeadline-RegularItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-RegularItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-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/noalts-not-hinted/GHGuardianHeadline-Medium.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Medium.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-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/noalts-not-hinted/GHGuardianHeadline-MediumItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-MediumItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-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/noalts-not-hinted/GHGuardianHeadline-Semibold.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Semibold.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-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/noalts-not-hinted/GHGuardianHeadline-SemiboldItalic.woff2) format("woff2"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-SemiboldItalic.woff) format("woff"),
url(https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-SemiboldItalic.ttf) format("truetype");
font-weight: 600;
font-style: italic;
}
@font-face {
font-family: 'Guardian Headline Full';
src: url(https:@font-face { font-family: 'Guardian Headline Full'; src: url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Bold.woff2') format('woff2'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Bold.woff') format('woff'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'Guardian Headline Full'; src: url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BoldItalic.woff2') format('woff2'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BoldItalic.woff') format('woff'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; }
@font-face { font-family: 'Guardian Headline Full'; src: url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.woff2') format('woff2'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.woff') format('woff'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; }
@font-face { font-family: 'Guardian Headline Full'; src: url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.woff2') format('woff2'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.woff') format('woff'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-headline/noalts-not-hinted/GHGuardianHeadline-BlackItalic.ttf') format('truetype'); font-weight: 900; font-style: italic; }
@font-face { font-family: 'Guardian Titlepiece'; src: url('https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.woff2') format('woff2'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.woff') format('woff'), url('https://assets.guim.co.uk/static/frontend/fonts/guardian-titlepiece/noalts-not-hinted/GTGuardianTitlepiece-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; }
@media (min-width: 71.25em) { .content__main-column--interactive { margin-left: 160px; } }
@media (min-width: 81.25em) { .content__main-column--interactive { margin-left: 240px; } }
.content__main-column--interactive .element-atom { max-width: 620px; }
@media (max-width: 46.24em) { .content__main-column--interactive .element-atom { max-width: 100%; } }
.content__main-column--interactive .element-showcase { margin-left: 0; }
@media (min-width: 46.25em) { .content__main-column--interactive .element-showcase { max-width: 620px; } }
@media (min-width: 71.25em) { .content__main-column--interactive .element-showcase { max-width: 860px; } }
.content__main-column--interactive .element-immersive { max-width: 1100px; }
@media (max-width: 46.24em) { .content__main-column--interactive .element-immersive { width: calc(100vw - var(--scrollbar-width, 0px)); position: relative; left: 50%; right: 50%; margin-left: calc(-50vw + var(--half-scrollbar-width, 0px)) !important; margin-right: calc(-50vw + var(--half-scrollbar-width, 0px)) !important; } }
@media (min-width: 46.25em) { .content__main-column--interactive .element-immersive { transform: translate(-20px); width: calc(100% + 60px); } }
@media (max-width: 71.24em) { .content__main-column--interactive .element-immersive { margin-left: 0; margin-right: 0; } }
@media (min-width: 71.25em) { .content__main-column--interactive .element-immersive { transform: translate(0); width: auto; } }
@media (min-width: 81.25em) { .content__main-column--interactive .element-immersive { max-width: 1260px; } }
.content__main-column--interactive p, .content__main-column--interactive ul { max-width: 620px; }
.content__main-column--interactive:before { position: absolute; top: 0; height: calc(100% + 15px); min-height: 100px; content: ""; }
@media (min-width: 71.25em) {๋ค์์ ๋์ผํ ์๋ฏธ๋ฅผ ๋ ๊น๋ํ๊ณ ์์ฐ์ค๋ฌ์ด ์คํ์ผ๋ก ์์ฑํ CSS์
๋๋ค:
```css
.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-top: 12px;
padding-bottom: 12px;
}
.content__main-column--interactive p + .element-atom {
margin-top: 12px;
margin-bottom: 12px;
padding-top: 0;
padding-bottom: 0;
}
.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"]) {
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"] {
display: block;
width: 100%;
max-width: 620px;
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;
}
}
[data-article-theme="News"] {
--active-pillar-100: #660505;
--active-pillar-200: #8b0000;
--active-pillar-300: #ab0613;
--active-pillar-400: #c70000;
--active-pillar-500: #ff5943;
--active-pillar-600: #ffbac8;
}
[data-article-theme="Lifestyle"] {
--active-pillar-100: #510043;
--active-pillar-200: #650054;
--active-pillar-300: #7d0068;
--active-pillar-400: #bb3b80;
--active-pillar-500: #ffabdb;
--active-pillar-600: #fec8d3;
}
[data-article-theme="Culture"] {
--active-pillar-100: #3e3323;
--active-pillar-200: #574835;
--active-pillar-300: #6b5840;
--active-pillar-400: #866d50;
--active-pillar-500: #eacca0;
--active-pillar-600: #e7d4b9;
}
[data-article-theme="Sport"] {
--active-pillar-100: #003c60;
--active-pillar-200: #004e7c;
--active-pillar-300: #005689;
--active-pillar-400: #0077b6;
--active-pillar-500: #00b2ff;
--active-pillar-600: #90dcff;
}
[data-article-theme="Opinion"] {
--active-pillar-100: #4b2e2e;
--active-pillar-200: #6b3b3b;
--active-pillar-300: #8b4747;
--active-pillar-400: #ab5454;
--active-pillar-500: #cb6161;
--active-pillar-600: #eb6e6e;
}
:root[data-article-theme="Labs"] {
--active-pillar-100: #09615b;
--active-pillar-200: #0c7a73;
--active-pillar-300: #65a897;
--active-pillar-400: #69d1ca;
--active-pillar-500: #a8e3df;
--active-pillar-600: #dcf4f3;
--active-pillar-700: #f3fbfb;
}
:root[data-article-theme="SpecialReport"] {
--active-pillar-100: #222527;
--active-pillar-200: #303538;
--active-pillar-300: #3f464a;
--active-pillar-400: #595c5f;
--active-pillar-500: #abc2c9;
--active-pillar-700: #e4e5e8;
}
:root[data-article-theme="SpecialReportAlt"] {
--active-pillar-100: #2b2b2a;
--active-pillar-200: #b9300a;
--active-pillar-300: #ff663d;
--active-pillar-700: #ebe6e1;
--active-pillar-800: #f5;
}
```:root{--dateline: #606060;--headerBorder: #dcdcdc;--captionText: #999;--captionBackground: hsla(0, 0%, 7%, .72)}.furniture-wrapper{position:relative;display:grid;grid-template-areas:"portrait" "title" "headline" "standfirst" "mediacaption" "lines" "meta";margin-bottom:26px!important}@media (min-width: 61.25em){.furniture-wrapper{grid-column-gap:20px;grid-row-gap:0px;grid-template-areas:none;grid-template-columns:[title-start headline-start standfirst-start mediacaption-start meta-start] repeat(5,1fr) [title-end headline-end standfirst-end mediacaption-end meta-end portrait-start] repeat(5,1fr) [portrait-end];grid-template-rows:[title-start portrait-start] .25fr [title-end headline-start] 1fr [headline-end standfirst-start] .75fr [standfirst-end mediacaption-start] auto [mediacaption-end meta-start] auto [meta-end portrait-end];margin-bottom:0!important}}@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]}}@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] .25fr [title-end headline-start] 1fr [headline-end standfirst-start meta-start] .75fr [standfirst-end meta-end portrait-end]}}.furniture-wrapper .article-header .content__labels>div,.furniture-wrapper [data-gu-name=title] .content__labels>div{padding-top:2px}@media (min-width: 46.25em) and (max-width: 61.24em){.furniture-wrapper .article-header,.furniture-wrapper [data-gu-name=title]{max-width:738px}}@media (min-width: 46.25em) and (max-width: 61.24em){.furniture-wrapper #headline,.furniture-wrapper [data-gu-name=headline],.furniture-wrapper .headline{max-width:738px}}@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(--headerBorder)}}.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}}.furniture-wrapper .keyline-4,.furniture-wrapper [data-gu-name=lines]{width:100vw;margin-left:-10px;padding-left:10px;position:relative;background-color:#fff;margin-top:-1px;margin-bottom:-1px}@media (min-width: 30em){.furniture-wrapper .keyline-4,.furniture-wrapper [data-gu-name=lines]{margin-left:-20px}.furniture-wrapper .keyline-4>div>div,.furniture-wrapper [data-gu-name=lines]>div>div{padding:0 20px}}@media (min-width: 33.4375em){.furniture-wrapper .keyline-4,.furniture-wrapper [data-gu-name=lines]{padding-left:20px}}@media (min-width: 41.25em){.furniture-wrapper .keyline-4,.furniture-wrapper [data-gu-name=lines]{padding-left:0}}@media (min-width: 46.25em){.furniture-wrapper .keyline-4,.furniture-wrapper [data-gu-name=lines]{max-width:738px}}@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)}.furniture-wrapper #meta,.furniture-wrapper [data-gu-name=meta]{width:100vw;margin-left:-10px;padding-left:10px;position:relative;background-color:#fff}@media (min-width: 46.25em){.furniture-wrapper #meta,.furniture-wrapper [data-gu-name=meta]{margin-right:0;width:auto;max-width:738px}}@media (min-width: 61.25em){.furniture-wrapper #meta,.furniture-wrapper [data-gu-name=meta]{margin-left:unset;padding-left:unSet padding-top to 2px. At widths of 71.25em and above, add a 540px-wide, 1px-high line above the meta section using the header border color. At 81.25em and above, make that line 620px wide. The social and comment elements in the meta section should use the header border color for their borders.
The standfirst section should have a -10px left margin, 8px top padding, 10px side padding, 16px bottom padding, a white background, and relative positioning. Its paragraphs should use normal font weight, 20px font size, and 14px bottom padding. At 46.25em and above, add 2px top padding and set a maximum width of 738px. At 61.25em and above, remove the maximum width and background color. The content standfirst should have a 4px bottom margin. List items should use 20px font size. Links in the standfirst should have no bottom border or background image, but should be underlined with a 6px offset, using the header border color (or #dcdcdc) at 1px thickness. On hover, the underline color should change to the new pillar color. The first paragraph should have a 1px top border using the header border color and no bottom padding. At 71.25em and above, remove the top border from all paragraphs, including the first one, and add a 1px-wide vertical line on the left side of the standfirst using the header border color, positioned at 0.5px from the left. At 81.25em and above, move that line to -0.5px from the left.
The main media section should be relatively positioned, with a 0 top margin, 0 right margin, 2px bottom margin, and -10px left margin. It should be placed in the portrait grid area and span the full viewport width minus any scrollbar width. Any inner divs should be full width with no inline margins, and divs should have no bottom margin. At 30em and above, change the left margin to -20px. At 46.25em and above, change the left margin to -10px and set a maximum width of 738px. At 61.25em and above, the main media section should...์ ๊ณต๋ ํ
์คํธ๋ ์ฐ๋ฌธ์ด ์๋๋ผ CSS ์ฝ๋์ด๋ฏ๋ก, ๋ค์ ์์ฑํ ์์ฐ์ค๋ฌ์ด ์์ด๊ฐ ์์ต๋๋ค. ๋ค๋ฅธ ๊ตฌ์ ์ ๊ณต์ ํ๋ ค๋ ์๋์๋ค๋ฉด, ๋ณด๋ด์ฃผ์๋ฉด ์์ฒญํ์ ๋๋ก ๋ค์ ์์ฑํ๊ฒ ์ต๋๋ค.๋ฉ์ธ ์ฝํ
์ธ ์ด์์ ๋ํํ ์ํ์ ๋ค์ ๊ด๊ณ ์ฌ๋กฏ์ด ์ค๋ ๊ฒฝ์ฐ, ์๋จ ํจ๋ฉ์ ์ ๊ฑฐํ์ธ์. ๋ํํ ๊ธฐ์ฌ์ ์ธ์ฉ๋ฌธ์ ๋๋น๊ฐ 620ํฝ์
๋ก ์ ํ๋์ด์ผ ํฉ๋๋ค. ๋ชฐ์
ํ ์์๋ ์ ์ฒด ๋ทฐํฌํธ ๋๋น๋ฅผ ์ฐจ์งํด์ผ ํ๋ฉฐ, ๊ฐ ์ค๋จ์ ์์ ์ฌ๋ฐฑ์ด ์กฐ์ ๋ฉ๋๋ค: ์์ ํ๋ฉด์์๋ -10px, 30em๋ถํฐ๋ -20px, ๋ ํฐ ์ค๋จ์ ์์๋ ์ ์ง์ ์ผ๋ก ๋ ๋์ ์ต๋ ๋๋น(46.25em์์ 738px, 61.25em์์ 978px, 71.25em์์ 1098px, 81.25em์์ 1258px)๋ฅผ ๊ฐ์ง๋ฉฐ, ๊ฐ์ฅ ํฐ ๋ ์ค๋จ์ ์์๋ ์ผ์ชฝ ์ฌ๋ฐฑ์ด -160px๊ณผ -240px๋ก ์ด๋ํฉ๋๋ค. ๋ชฐ์
ํ ์์ ๋ด๋ถ์ ๊ทธ๋ฆผ ์บก์
์ 30em๋ถํฐ 20px์ ์ธ๋ผ์ธ ํจ๋ฉ์ ๊ฐ์ง๋ฉฐ, 71.25em์์ ์ ๊ฑฐ๋ฉ๋๋ค. ์ผ์ผ์ด์ค ๊ทธ๋ฆผ์ 71.25em๊ณผ 81.25em์์ ์ ์ฌํ ์ฌ๋ฐฑ ์กฐ์ ์ ๋ฐ๋ฆ
๋๋ค. ํด๋น ์บก์
์ ์ต๋ 620px๊น์ง ์ ์ ์ด๊ณ ์ ์ฒด ๋๋น์ด๋ฉฐ, 71.25em์์ ์ต๋ ๋๋น 140px, 81.25em์์ 220px๋ก ์ ๋ ์์น ์ง์ ๋ฉ๋๋ค. ์ธ๋ผ์ธ ์์๋ 61.25em๋ถํฐ 630px๋ก ์ ํ๋ฉ๋๋ค. "will-fade-in" ํด๋์ค๊ฐ ์๋ ๊ทธ๋ฆผ์ ์ฒ์์๋ ๋ณด์ด์ง ์๊ณ 50px ์๋๋ก ์ด๋ํ ์ํ์์ ์์ํ๋ฉฐ, "fade-in" ํด๋์ค๊ฐ ์ถ๊ฐ๋๋ฉด ํ์ด๋ ์ธ๋์ด ์ ์ ์์น๋ก ์ด๋ํฉ๋๋ค. ๋ธ๋ก์ธ์ฉ๋ฌธ ๋จ๋ฝ์ ์ด๋์ด ํ
์คํธ ์์์ ์ฌ์ฉํ๊ณ , h2 ์ ๋ชฉ์ ๋๋น๊ฐ 620px๋ก ์ ํ๋ฉ๋๋ค. ํฌ๋ ๋ง ์์ ๋จ๋ฝ์ ์ต์ํ์ ์์ง ์ฌ๋ฐฑ๊ณผ ์๋จ ํจ๋ฉ์ด ์์ต๋๋ค. 71.25em์์ ๋ํํ ๋ฉ์ธ ์ด์ ์์ฌ ์์๋ 12px ์๋ก ์ด๋ํ๊ณ ๋์ด๊ฐ 24px ์ฆ๊ฐํฉ๋๋ค. ๋คํฌ ๋ชจ๋์์ ๋ณธ๋ฌธ ๋ฐฐ๊ฒฝ์ ์ฌ์ฉ์๊ฐ ๋ช
์์ ์ผ๋ก ๋ฐ์ ์ ๊ตฌ์ฑํ๋ฅผ ์ค์ ํ์ง ์์ ํ ์ด๋์ด ๋ฐฐ๊ฒฝ ๋ณ์๋ฅผ ์ฌ์ฉํฉ๋๋ค.์ด๋์ด ์ด์ํ ๋ ์ด์์ ๊ธฐ๋ฅ์ ๊ฒฝ์ฐ, ์์ผ๋๋ ๋ด๋ถ์ ๋ธ๋๋ฉ ์ด๋ฏธ์ง๋ ๋ฐ์ ๋์ง ์์์ผ ํฉ๋๋ค. ๋ฃจํธ ์์๋ ์ ๊ตฌ์ฑํ๊ฐ ๋ฐ๊ฒ ์ค์ ๋์ง ์์ ํ ๋ธ๋๋ฉ ์ด๋ฏธ์ง๋ฅผ ๋ฐ์ ๋์ง ์์ ์ํ๋ก ์ ์งํด์ผ ํฉ๋๋ค.
์์ ํ์ง ์์ ์๋ฒ ๋ ๋ธ๋ก๊ณผ js-embed__iframe ํด๋์ค๋ฅผ ๊ฐ์ง iframe์ ๋์ด๊ฐ 0์ธ ๋ธ๋ก์ผ๋ก ํ์๋์ด์ผ ํฉ๋๋ค.
์์๋ ์ฌ๋ฐฑ์ด ์์ด์ผ ํฉ๋๋ค. ์ฑ ๋ ๋๋ง ๋์์์ ๋ํํ ์ฝํ
์ธ ๋ด๋ถ์ ๋ฉํ ์ปจํ
์ด๋๋ ์ค๋ฅธ์ชฝ ์ฌ๋ฐฑ์ด ์์ด์ผ ํฉ๋๋ค.
๋๋น๊ฐ ์ต๋ 61.24em์ธ ํ๋ฉด์์ ๊ฐ๊ตฌ ๋ํผ ๋ด๋ถ์ ๋ฏธ๋์ด ์์๋ ํ๋จ ์ฌ๋ฐฑ์ด -65px์ด๊ณ , ์๋จ์ ๋ถ๊ณ , #1a1a1a ๋ฐฐ๊ฒฝ์ ์ฌ์ฉํ๋ฉฐ, 0.5s ease-in-out ์ ํ์ผ๋ก ํ์ด๋ ์ธ ๋ฐ ์์๋๊ณ , ์์ ํ ๋ณด์ด๋ ์ํ์์ ์์ํด์ผ ํฉ๋๋ค.
๋๋น๊ฐ 30em์์ 61.24em ์ฌ์ด์ธ ํ๋ฉด์์ ํด๋น ๋ฏธ๋์ด ์์๋ ์ผ์ชฝ ๋ฐ ์ค๋ฅธ์ชฝ ์ฌ๋ฐฑ์ด -20px์ด์ด์ผ ํฉ๋๋ค.
๋๋น๊ฐ ์ต๋ 61.24em์ธ ํ๋ฉด์์ ๋ฏธ๋์ด ์์๊ฐ ํ์ด๋ ์์๋๋ฉด ์์ ํ ํฌ๋ช
ํด์ ธ์ผ ํฉ๋๋ค. ์ ๋ชฉ๊ณผ ํค๋๋ผ์ธ ์์๋ z-index 10์ผ๋ก ๋ค๋ฅธ ์ฝํ
์ธ ์์ ์์นํ๊ณ , ์ผ์ชฝ์ผ๋ก 10px ์ด๋ํ๋ฉฐ ์ผ์ชฝ ํจ๋ฉ์ด 10px์ด์ด์ผ ํฉ๋๋ค.
๋๋น๊ฐ 30em์์ 61.24em ์ฌ์ด์ธ ํ๋ฉด์์ ์ ๋ชฉ, ํค๋๋ผ์ธ, ์คํ ๋ํผ์คํธ, ๋ฉํ ์์๋ ์ํ ์ฌ๋ฐฑ์ด -20px์ด๊ณ ์ํ ํจ๋ฉ์ด 20px์ด์ด์ผ ํฉ๋๋ค.
๋๋น๊ฐ ์ต๋ 61.24em์ธ ํ๋ฉด์์ ํค๋๋ผ์ธ์ ์๋์ ์ผ๋ก ์์นํด์ผ ํฉ๋๋ค. ๋ด๋ถ div๋ ํ๋จ ํจ๋ฉ์ด 32px์ด์ด์ผ ํฉ๋๋ค. ๊ทธ ์์ h1์ ํฐ์์ด์ด์ผ ํ๋ฉฐ ์ผ๋ฐ ๊ธ๊ผด ๋๊ป๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค. ํค๋๋ผ์ธ ๋ด๋ถ์ ๊ทธ๋ผ๋์ธํธ div๋ ์ ๋ ์์น ์ง์ ๋๊ณ , ๋์ด๊ฐ 135%์ด๋ฉฐ, ๋ค๋ฅธ ์ฝํ
์ธ ๋ค์ ์์นํ๊ณ , ์ ์ฒด ๋๋น๋ฅผ ์ฐจ์งํ๋ฉฐ, ์ผ์ชฝ ํ๋จ์ ๊ณ ์ ๋์ด์ผ ํฉ๋๋ค. 12px์ ๋ฐฐ๊ฒฝ ํ๋ฆผ๊ณผ ํฌ๋ช
์์ #1a1a1a๋ก ํ์ด๋๋๋ ๊ทธ๋ผ๋์ธํธ ๋ฐฐ๊ฒฝ์ ๊ฐ์ ธ์ผ ํ๋ฉฐ, 120px์์ ์์ํ์ฌ ํ๋จ๊น์ง ๊ณ์๋ฉ๋๋ค. ๋ํ ์ ์ฌํ ์์ง ํ์ด๋๋ฅผ ๊ฐ์ง ๋ง์คํฌ ์ด๋ฏธ์ง๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
๋๋น๊ฐ 26.25em์์ 61.24em ์ฌ์ด์ธ ํ๋ฉด์์ ํด๋น ๊ทธ๋ผ๋์ธํธ div๋ ๋์ด๊ฐ 140%์ฌ์ผ ํฉ๋๋ค.
๋๋น๊ฐ ์ต๋ 61.24em์ธ ํ๋ฉด์์ ์ ๋ชฉ์ z-index 11๋ก ๋ค๋ฅธ ์ฝํ
์ธ ์์ ์์นํ๊ณ , ์๋จ ํจ๋ฉ์ด 8px์ด๋ฉฐ ํ๋จ ํจ๋ฉ์ด 1px์ด์ด์ผ ํฉ๋๋ค. ์ ๋ชฉ ๋ด๋ถ์ ๋งํฌ๋ ํ์ฑ ํ๋ฌ 400 ์์์ ์ฌ์ฉํด์ผ ํฉ๋๋ค. ์คํ ๋ํผ์คํธ ์ปจํ
์ด๋๋ ํ๋จ ํจ๋ฉ์ด ์์ด์ผ ํ์ง๋ง, ๊ทธ ์์ ๋จ๋ฝ์ ํ๋จ ํจ๋ฉ์ด 24px์ด์ด์ผ ํฉ๋๋ค.
๋๋น๊ฐ ์ต๋ 61.24em์ธ ํ๋ฉด์์ figcaption์ mediacaption ๊ทธ๋ฆฌ๋ ์์ญ์ ๋ฐฐ์น๋๊ณ , ์๋์ ์ผ๋ก ์์นํ๋ฉฐ, ๋ฐฐ๊ฒฝ์ด ์๊ณ , ํ๋จ ํจ๋ฉ์ด 12px์ด๋ฉฐ, ์ผ์ชฝ ํจ๋ฉ์ด 10px์ด๊ณ , ์ผ์ชฝ ์ฌ๋ฐฑ์ด -10px์ด๋ฉฐ, ์ต์ ๋์ด๊ฐ ์๊ณ , ์ ์ฒด ๋ทฐํฌํธ ๋๋น์ด๋ฉฐ, ํฐ์ ๋ฐฐ๊ฒฝ์ ๊ฐ์ ธ์ผ ํฉ๋๋ค. figcaption ๋ด๋ถ์ span์ ์บก์
๋ฉ์ธ ๋ฏธ๋์ด ํ
์คํธ ์์์ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
๋๋น๊ฐ 30em์์ 61.24em ์ฌ์ด์ธ ํ๋ฉด์์ figcaption์ ์ผ์ชฝ ์ฌ๋ฐฑ์ด -20px์ด๊ณ , ์๋จ ์ฌ๋ฐฑ์ด -1px์ด๋ฉฐ, ์ผ์ชฝ ํจ๋ฉ์ด 20px์ด์ด์ผ ํฉ๋๋ค.
๋๋น๊ฐ 46.25em์์ 61.24em ์ฌ์ด์ธ ํ๋ฉด์์ figcaption์ ์ต๋ ๋๋น๊ฐ 738px์ด์ด์ผ ํฉ๋๋ค.
๋๋น๊ฐ ์ต๋ 61.24em์ธ ํ๋ฉด์์ hidden ํด๋์ค๊ฐ ์๋ figcaption์ ํ์๋์ง ์์์ผ ํฉ๋๋ค. video-icon ํด๋์ค๊ฐ ์๋ figcaption์ span ํ
์คํธ ์์ ๋น๋์ค ์นด๋ฉ๋ผ ์์ด์ฝ์ ํ์ํด์ผ ํ๋ฉฐ, 17px x 10px ์ธ๋ผ์ธ ๋ธ๋ก ์์์ ์ค๋ฅธ์ชฝ ์ฌ๋ฐฑ 4px๊ณผ ๋ฐฐ๊ฒฝ ์ด๋ฏธ์ง๋ฅผ ์ฌ์ฉํด์ผ ํฉ๋๋ค. ๋น๋์ค ์ปจํ
์ด๋์ ์๋ค๋ง๊ทธ๋ํ ๋ด๋ถ์ figcaption span์ ์จ๊ฒจ์ ธ์ผ ํฉ๋๋ค. lines ๋ฐ meta ์์์ ๋ด๋ถ div๋ ์ค๋ฅธ์ชฝ ์ฌ๋ฐฑ์ด ์์ด์ผ ํฉ๋๋ค.
๋๋น๊ฐ 46.25em์์ 61.24em ์ฌ์ด์ธ ํ๋ฉด์์ meta ์์๋ ํ๋จ ํจ๋ฉ์ด 8px์ด์ด์ผ ํฉ๋๋ค.
video-icon ํด๋์ค๊ฐ ์๋ figcaption์ span ํ
์คํธ ์์ ๋น๋์ค ์นด๋ฉ๋ผ ์์ด์ฝ์ ํ์ํด์ผ ํ๋ฉฐ, 17px x 10px ์ธ๋ผ์ธ ๋ธ๋ก ์์์ ์ค๋ฅธ์ชฝ ์ฌ๋ฐฑ 4px๊ณผ ๋ฐฐ