-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Малышкин Александр #71
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,189 @@ | ||
@font-face | ||
{ | ||
font-family: 'Agincourt'; | ||
src: url('./AgincourtLetPlain.ttf') format('truetype'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Будет здорово, если добавишь ещё пару форматов шрифта для обеспечения кроссбраузерности. Например, |
||
font-weight: 100; | ||
font-style: normal; | ||
} | ||
|
||
.wrapper | ||
{ | ||
margin: 0; | ||
background: #fff; | ||
color: #6e6e6e; | ||
} | ||
|
||
.header | ||
{ | ||
border-bottom: 1px solid #6e6e6e; | ||
} | ||
|
||
.slogan, | ||
.edition, | ||
.name, | ||
.section | ||
{ | ||
display: inline-block; | ||
} | ||
|
||
.edition, | ||
.slogan | ||
{ | ||
font-family: Arial, serif; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Это основной шрифт на странице? Лучше его подключить к |
||
border: 2px solid #6e6e6e; | ||
font-size: 18px; | ||
letter-spacing: -1px; | ||
margin: 24px; | ||
} | ||
|
||
.header, | ||
.name, | ||
.slogan, | ||
.edition, | ||
.date | ||
{ | ||
text-align: center; | ||
} | ||
|
||
.slogan, | ||
.edition, | ||
.section | ||
{ | ||
vertical-align: top; | ||
padding: 16px 24px; | ||
} | ||
|
||
.edition, | ||
.version | ||
{ | ||
padding-top: 0; | ||
text-transform: uppercase; | ||
font-family: 'Times New Roman', serif; | ||
} | ||
|
||
.name | ||
{ | ||
line-height: 88px; | ||
width: 50%; | ||
font-family: 'Agincourt'; | ||
font-size: 76px; | ||
margin: 24px 0 0; | ||
vertical-align: middle; | ||
} | ||
|
||
.section .text | ||
{ | ||
display: block; | ||
} | ||
|
||
.section .number | ||
{ | ||
font-size: 60px; | ||
} | ||
|
||
.date | ||
{ | ||
margin: 2px 0; | ||
border-top: 1px solid #6e6e6e; | ||
border-bottom: 1px solid #6e6e6e; | ||
} | ||
|
||
.date-text | ||
{ | ||
text-transform: uppercase; | ||
display: block; | ||
padding-top: 2px; | ||
word-spacing: 10px; | ||
} | ||
|
||
.main-title | ||
{ | ||
border-top: 1px solid #6e6e6e; | ||
font-size: 48px; | ||
text-transform: uppercase; | ||
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; | ||
font-style: italic; | ||
padding-left: 24px; | ||
margin: 0; | ||
} | ||
|
||
.articles | ||
{ | ||
column-count: 4; | ||
border-top: 1px solid #6e6e6e; | ||
} | ||
|
||
.article-item | ||
{ | ||
padding-top: 24px; | ||
page-break-inside: avoid; | ||
} | ||
|
||
.articles, | ||
.article-inside | ||
{ | ||
column-rule: 1px solid #6e6e6e; | ||
} | ||
|
||
.article-inside | ||
{ | ||
column-count: 2; | ||
} | ||
|
||
.article-item h3, | ||
.article-item h4 | ||
{ | ||
text-align: center; | ||
padding-bottom: 24px; | ||
position: relative; | ||
} | ||
|
||
.article-item:not([id='second']) h3 | ||
{ | ||
text-transform: uppercase; | ||
font-family: Arial, sans-serif; | ||
font-size: 24px; | ||
border-bottom: 1px solid #000; | ||
} | ||
|
||
.first h4 | ||
{ | ||
font-family: Arial, serif; | ||
} | ||
|
||
.second h3, | ||
.second h4 | ||
{ | ||
font-style: oblique; | ||
} | ||
|
||
.second h3 | ||
{ | ||
font-size: 20px; | ||
} | ||
|
||
.article-item span | ||
{ | ||
font-size: 12px; | ||
font-family: Arial, sans-serif; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Тоже можно через |
||
text-align: justify; | ||
|
||
} | ||
|
||
.second h3::before, | ||
.article-item h4::before | ||
{ | ||
position: absolute; | ||
content: ''; | ||
bottom: 0; | ||
background: #000; | ||
width: 50%; | ||
height: 1px; | ||
left: 50%; | ||
margin-left: -75px; | ||
} | ||
|
||
.third h4:nth-child(3) | ||
{ | ||
text-transform: uppercase; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,124 @@ | ||
<!DOCTYPE html> | ||
<html lang="ru"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Задача «DeLorean DMC-12»</title> | ||
</head> | ||
<body> | ||
</body> | ||
</html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Задача «DeLorean DMC-12»</title> | ||
<link rel="stylesheet" type="text/css" media="screen" href="index.css"> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<header class="header"> | ||
<p class="slogan">"All the News That's<br>Fit to Print"</p> | ||
<p class="name">Thr New York Times.</p> | ||
<div class="edition"> | ||
<span class="version">Late City Edition</span><br> | ||
<span>неразборчиво</span> | ||
</div> | ||
<div class="section"> | ||
<span class="text"> | ||
Section | ||
</span> | ||
<span class="number"> | ||
1 | ||
</span> | ||
</div> | ||
</header> | ||
<div class="date"> | ||
<span class="date-text"> | ||
New York, monday, june 22, 1941 | ||
</span> | ||
</div> | ||
<h1 class="main-title"> | ||
Hitler begins war on Russia, with armies<br> | ||
on march from Arctic to the Black Sea;<br> | ||
Damascus falls; U.S. ousts Rome consuls | ||
</h1> | ||
<div class="articles"> | ||
<div class="article-item first"> | ||
<h3> | ||
Must go bu july 15 | ||
</h3> | ||
<h4> | ||
Ban on Italians Like<br> | ||
Order to German<br> | ||
Representatives | ||
</h4> | ||
<h4> | ||
U.S. Denies Spying | ||
</h4> | ||
<span> | ||
Imagine a society in which everyone more or less agrees with you. | ||
You wake up in the morning to online greetings from people who | ||
share your views on guns, religion and country. Your news feed contains | ||
only posts from like-minded politicians or articles from like-minded news | ||
outlets. You can safely post your own comments without fear of | ||
vitriol from trolls or challenges from naysayers. This is the insular | ||
world in which tens of thousands of Americans who use conservative | ||
political apps are experiencing the midterm election season. | ||
</span> | ||
</div> | ||
<div class="article-item second" id="second"> | ||
<h3> | ||
Hope Dims for Submarine;<br> | ||
Diver Balked at 370 Feet | ||
</h3> | ||
<h4> | ||
Knox Believes All 33 Dead On 0-9<br> | ||
and Expects At Scene for Navy<br> | ||
"Heroes" - Pressure Halts Descend | ||
</h4> | ||
<div class="article-inside"> | ||
<span> | ||
Imagine a society in which everyone more or less agrees with you. | ||
You wake up in the morning to online greetings from people who | ||
share your views on guns, religion and country. Your news feed contains | ||
only posts from like-minded politicians or articles from like-minded news | ||
outlets. You can safely post your own comments without fear of | ||
vitriol from trolls or challenges from naysayers. This is the insular | ||
world in which tens of thousands of Americans who use conservative | ||
political apps are experiencing the midterm election season. | ||
</span> | ||
</div> | ||
</div> | ||
<div class="article-item third"> | ||
<h3> | ||
R.A.F. Blasts Foe | ||
</h3> | ||
<h4> | ||
Bags 26 Nazi Planes in<br> | ||
Record Day Raids on<br> | ||
Invasion Coast | ||
</h4> | ||
<h4> | ||
Germany is Bombed | ||
</h4> | ||
<span> | ||
Imagine a society in which everyone more or less agrees with you. | ||
You wake up in the morning to online greetings from people who | ||
share your views on guns, religion and country. Your news feed contains | ||
only posts from like-minded politicians or articles from like-minded news | ||
outlets. You can safely post your own comments without fear of | ||
vitriol from trolls or challenges from naysayers. This is the insular | ||
world in which tens of thousands of Americans who use conservative | ||
political apps are experiencing the midterm election season. | ||
</span> | ||
</div> | ||
<div class="article-item quarter"> | ||
<h3> | ||
Must go bu july 15 | ||
</h3> | ||
<span> | ||
Imagine a society in which everyone more or less agrees with you. | ||
You wake up in the morning to online greetings from people who | ||
share your views on guns, religion and country. Your news feed contains | ||
only posts from like-minded politicians or articles from like-minded news | ||
outlets. You can safely post your own comments without fear of | ||
vitriol from trolls or challenges from naysayers. This is the insular | ||
world in which tens of thousands of Americans who use conservative | ||
political apps are experiencing the midterm election season. | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давай добавим также
local
, чтобы не загружать шрифт, если он есть на компьютере пользователя