Skip to content
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

Бородин Николай #65

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bikham-cyr-script_[allfont.ru].ttf
Binary file not shown.
221 changes: 221 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
@font-face
{
font-family: 'Bikham Cyr Script';
src: url(bikham-cyr-script_[allfont.ru].ttf) format(ttf);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ttf шрифты не везде работают

}

html
{
margin: 0;
padding: 0;
font: 16px 'Acme', sans-serif;
color: #420;
}

body
{
margin: 0;
padding: 0 4rem;
background-color: #fadabb;
text-align: justify;
}

.paper
{
position: relative;
max-width: 1200px;
margin: 0 auto 4rem;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему решил использовать rem?

padding: 4rem;
background-color: #fed;
color: #420;
}

.remark
{
position: absolute;
right: 1rem;
top: 2rem;
width: 1rem;
}

.remark_item
{
display: block;
width: .3em;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А здесь вдруг em?

margin-right: 1rem;
padding-bottom: .3rem;
font: .8rem 'Cutive Mono', monospace;
font-weight: bold;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bold тоже можно включить в правило выше

text-transform: uppercase;
word-break: break-all;
}

.paper_name
{
font: 70px 'Bikham Cyr Script';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А здесь вдруг px вообще

}

.article_name
{
font: bold 40px 'Acme', sans-serif;
text-align: center;
}

.paper_date
{
font: italic 1.25rem 'Cutive Mono';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему нет деградации?

margin: 1.5rem;
padding: .5rem;
border-top: 4px double #fadabb;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь можно сократить

border-bottom: 4px double #fadabb;
border-right: 4px double #fadabb;
border-left: 4px double #fadabb;
background-color: #420;
text-align: center;
color: #fed;
}

.entire_text
{
column-count: 3;
-moz-column-count: 3;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем нужны эти правила?

-webkit-column-count: 3;
-moz-column-rule: 1px solid #420;
-webkit-column-rule: 1px solid #420;
column-rule: 1px solid #420;
-moz-column-gap: 1.5rem;
-webkit-column-gap: 1.5rem;
column-gap: 1.5rem;
}

.quote
{
font-style: oblique;
white-space: pre-line;
}

.paper-image-2
{
column-span: all;
}

.paper_image_source
{
width: 100%;
}

.article_text::first-letter
{
font: 2rem 'Bikham Cyr Script';
}

.setting
{
padding: 1.5rem 0;
}

.setting_item
{
display: inline-block;
padding: 2rem;
text-align: center;
}

.setting_item_header
{
margin: 0 0 1rem;
padding: 0;
color: #420;
}

.setting_item_label
{
padding: .25rem .5rem;
cursor: pointer;
}

.setting_item label:not(:checked):hover
{
background-color: #fed;
}

input[id='set_color_dark']:checked ~ main .paper
{
background-color: #835d37;
color: #fadabb;
}

input[id='set_size_small']:checked ~ main .article_name
{
font-size: .9rem;
line-height: 1.2rem;
}

input[id='set_size_big']:checked ~ main .article_name
{
font-size: 3rem;
line-height: 3rem;
}

input[id='set_size_small']:checked ~ main .article_text
{
font-size: .9rem;
}

input[id='set_size_big']:checked ~ main .article_text
{
font-size: 1.2rem;
}

input[id='set_font_sans']:checked ~ main .article_text
{
font-family: 'Acme', sans-serif;
}

input[id='set_font_serif']:checked ~ main .article_text
{
font-family: 'Bree Serif', serif;
}

input[id='set_font_mono']:checked ~ main .article_text
{
font-family: 'Cutive Mono', monospace;
}

input[name^='set-']
{
display: none;
}

input[id='set_size_small']:checked ~ main label[for='set_size_small'],
input[id='set_size_normal']:checked ~ main label[for='set_size_normal'],
input[id='set_size_big']:checked ~ main label[for='set_size_big'],
input[id='set_font_sanserif']:checked ~ main label[for='set_font_sanserif'],
input[id='set_font_serif']:checked ~ main label[for='set_font_serif'],
input[id='set_font_mono']:checked ~ main label[for='set_font_mono'],
input[id='set_color_light']:checked ~ main label[for='set_color_light'],
input[id='set_color_dark']:checked ~ main label[for='set_color_dark']
{
background-color: #420;
color: #fed;
}

input[id='set_size_small']:checked ~ main .paper_image_caption
{
font-size: .9rem;
}

input[id='set_size_big']:checked ~ main .paper_image_caption
{
font-size: 1.2rem;
}

input[id='set_size_small']:checked ~ main .quote
{
font-size: .9rem;
}

input[id='set_size_big']:checked ~ main .quote
{
font-size: 1.2rem;
}
Loading