-
Notifications
You must be signed in to change notification settings - Fork 103
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
Потапов Лев #101
base: master
Are you sure you want to change the base?
Потапов Лев #101
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,159 @@ | ||
body | ||
{ | ||
background-color: #f4f5ac; | ||
} | ||
|
||
h1 | ||
{ | ||
font-size: 40px; | ||
text-align: center; | ||
font-family: 'Old English Text MT'; | ||
line-height: 20px; | ||
} | ||
|
||
h4, | ||
h5, | ||
|
||
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. Пустая строка |
||
h6 | ||
{ | ||
font-family: serif; | ||
text-indent: 10%; | ||
text-align: start; | ||
} | ||
|
||
header | ||
{ | ||
position: relative; | ||
text-align: center; | ||
border-bottom: 1px solid black; | ||
border-top: 1px solid black; | ||
padding: 4px; | ||
} | ||
|
||
.subtitle | ||
{ | ||
display: block; | ||
border-bottom: 1px solid black; | ||
border-top: 1px solid black; | ||
text-align: center; | ||
font-family: serif; | ||
font-variant: small-caps; | ||
width: 100%; | ||
margin: 1px 0; | ||
} | ||
|
||
article | ||
{ | ||
border: 1px solid black; | ||
height: 100%; | ||
} | ||
|
||
.news | ||
{ | ||
column-count: 3; | ||
column-rule: 2px solid black; | ||
text-indent: 1em; | ||
width: 50%; | ||
display: inline-block; | ||
} | ||
|
||
.mainNew | ||
{ | ||
width: 49%; | ||
display: inline-block; | ||
vertical-align: top; | ||
} | ||
|
||
.mainNewTitle | ||
{ | ||
font-family: 'Times New Roman'; | ||
font-style: italic; | ||
font-size: 40px; | ||
font-weight: bold; | ||
text-align: center; | ||
} | ||
|
||
.weather, | ||
.tagline | ||
{ | ||
position: absolute; | ||
border: 1px solid black; | ||
padding: 0 5px; | ||
line-height: 0; | ||
height: 90%; | ||
text-align: center; | ||
} | ||
|
||
.weather | ||
{ | ||
right: 70px; | ||
} | ||
|
||
.tagline | ||
{ | ||
left: 70px; | ||
} | ||
|
||
section | ||
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. Давай не будем использовать теги в css, а повесим на них классы. |
||
{ | ||
font-family: serif; | ||
font-variant: small-caps; | ||
text-align: center; | ||
padding: 3px; | ||
} | ||
|
||
.newsBox | ||
{ | ||
border: 1px solid #313131; | ||
} | ||
|
||
hr | ||
{ | ||
color: #000; | ||
} | ||
|
||
.titleHr | ||
{ | ||
width: 40%; | ||
} | ||
|
||
.textHr | ||
{ | ||
width: 80%; | ||
} | ||
|
||
.articleTitle | ||
{ | ||
font-family: serif; | ||
font-weight: bold; | ||
font-size: 30px; | ||
} | ||
|
||
.prevue | ||
{ | ||
display: inline-block; | ||
column-count: 1; | ||
column-rule: black; | ||
width: 30%; | ||
border-right: 1px black solid; | ||
vertical-align: top; | ||
} | ||
|
||
.mainNewImage | ||
{ | ||
display: inline-block; | ||
filter: grayscale(100%); | ||
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. Нужно добавить вендорных префиксов этому правилу. |
||
width: 66%; | ||
} | ||
|
||
.mainImage | ||
{ | ||
width: 100%; | ||
} | ||
|
||
.mainNewText | ||
{ | ||
column-count: 3; | ||
column-rule: 2px solid black; | ||
text-indent: 1em; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,183 @@ | |
<head> | ||
<meta charset="utf-8"> | ||
<title>Задача «DeLorean DMC-12»</title> | ||
<link href="index.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<header> | ||
<section class="tagline"> | ||
<h2> | ||
The best paper | ||
</h2> | ||
<h6> | ||
23.10.2018 | ||
</h6> | ||
</section> | ||
<section class="weather"> | ||
<h2> | ||
The weather | ||
</h2> | ||
<h6> | ||
sunny | ||
</h6> | ||
</section> | ||
<h1> | ||
New York Times | ||
</h1> | ||
</header> | ||
<span class="subtitle"> | ||
<span> | ||
Ekaterinburg, Monday, October 23 | ||
</span> | ||
</span> | ||
<div> | ||
<article class="news"> | ||
<section class="newsBox"> | ||
<h2>Dolor Sit</h2> | ||
<hr class="titleHr"> | ||
<h4> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
</h4> | ||
<hr class="textHr"> | ||
</section> | ||
<section> | ||
<h2>Dolor Sit</h2> | ||
<hr class="titleHr"> | ||
<h4> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
</h4> | ||
<hr class="textHr"> | ||
</section><section> | ||
<h2>Dolor Sit</h2> | ||
<hr class="titleHr"> | ||
<h4> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
</h4> | ||
<hr class="textHr"> | ||
</section> | ||
<section> | ||
<h2>Dolor Sit</h2> | ||
<hr class="titleHr"> | ||
<h4> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
</h4> | ||
<hr class="textHr"> | ||
</section> | ||
<section> | ||
<h2>Dolor Sit</h2> | ||
<hr class="titleHr"> | ||
<h4> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
</h4> | ||
<hr class="textHr"> | ||
</section> | ||
<section> | ||
<h2>Dolor Sit</h2> | ||
<hr class="titleHr"> | ||
<h4> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
Volutpat sit amet luctus eu, vestibulum sed ligula. | ||
estibulum | ||
</h4> | ||
<hr class="textHr"> | ||
</section> | ||
<section> | ||
<h2>Dolor Sit</h2> | ||
<hr class="titleHr"> | ||
<h4> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
</h4> | ||
<hr class="textHr"> | ||
</section> | ||
<section> | ||
<span class="articleTitle"> | ||
Curabitur est nisl | ||
</span> | ||
<hr class="titleHr"> | ||
<h4> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate. | ||
</h4> | ||
</section> | ||
</article> | ||
<article class="mainNew"> | ||
<span class="mainNewTitle"> | ||
The student was killed by a textbook. | ||
</span> | ||
<div> | ||
<section class="prevue"> | ||
<h2>Dolor Sit</h2> | ||
<hr class="titleHr"> | ||
<h4> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur est nisl, volutpat sit amet luctus eu, | ||
vestibulum sed ligula. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas, consectetur adipiscing elit. | ||
|
||
</h4> | ||
<hr class="textHr"> | ||
</section> | ||
<section class="mainNewImage"> | ||
<img alt="mainImage" | ||
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. Давай добавим title |
||
src="https://clck.ru/EakF2" | ||
class="mainImage"> | ||
<h2>Dolor Sit</h2> | ||
<hr class="titleHr"> | ||
<h4 class="mainNewText"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Donec scelerisque lorem vitae augue vulputate, | ||
id congue nunc egestas. Curabitur est nisl, volutpat sit | ||
amet luctus eu, vestibulum sed ligula. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
|
||
</h4> | ||
<hr class="textHr"> | ||
</section> | ||
</div> | ||
</article> | ||
</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.
Надо установить фолбек-шрифт на случай, если такого шрифта не будет или он не загрузится.
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(...) для каждого шрифта.