Update styles

This commit is contained in:
Anton Vakhrushev 2018-06-17 16:01:38 +03:00
parent 877dcd6184
commit e3e0eb44e6
7 changed files with 22 additions and 27 deletions

View File

@ -1,24 +1,19 @@
@import 'vars';
html,
body {
font-size: 18px;
font-size: $base-font-size;
font-family: 'PT Serif', serif;
padding: 0;
margin: 0;
@media (max-width: 839px) {
font-size: 16px;
@media (max-width: $preferred-width - 1px) {
font-size: $base-font-size - 2px;
margin: {
left: 0.8em;
right: 0.8em;
}
}
@media (max-width: 480px) {
margin: {
left: 0.5em;
right: 0.5em;
}
}
}
h1,

View File

@ -1,15 +1,10 @@
@import '../styles/vars';
@import '../styles/base_style';
@import '../vars';
@import '../base_style';
.content {
width: $preferred-width;
margin: 0 auto;
@media (max-width: 839px) {
margin: 20px 0;
width: auto;
}
@media (max-width: 480px) {
margin: 10px 0;
width: auto;

View File

@ -1,5 +1,5 @@
@import '../styles/vars';
@import '../styles/base_style';
@import '../vars';
@import '../base_style';
.navigation {
display: block;
@ -27,14 +27,14 @@
width: $preferred-width;
margin: 0 auto;
@media (max-width: 839px) {
width: auto;
}
@media (max-width: 480px) {
width: auto;
}
}
.content {
.hr-line {
height: 0;
display: block;
border-bottom: 1px solid #eee;
margin: 2em 0;
}

View File

@ -89,7 +89,6 @@ $font-size: 20px;
width: 400px;
text-align: center;
padding: 2em;
border: 1px solid #ccc;
@media (max-width: 749px) {
padding: 2em 0;
width: auto;

View File

@ -1 +0,0 @@
$preferred-width: 840px;

5
source/_assets/vars.scss Normal file
View File

@ -0,0 +1,5 @@
// Базовый размер шрифта
$base-font-size: 20px;
// Ширина страницы
$preferred-width: 700px;

View File

@ -33,6 +33,8 @@ title: Гадалка
</li>
</ul>
<span class="hr-line"></span>
<div id="app"></div>
{% endblock %}