Добавлены стили для статей

This commit is contained in:
Anton Vakhrushev 2019-05-06 16:29:19 +03:00
parent ac189b603f
commit e7d3b02d92
3 changed files with 28 additions and 2 deletions

View File

@ -14,3 +14,28 @@
} }
} }
} }
.content {
p {
line-height: 1.5;
margin-top: 0;
margin-bottom: 1em;
}
h1 {
margin-top: 1.2em;
margin-bottom: 0.5em;
}
pre {
font-family: $base-monospace-font-family;
font-size: 90%;
padding: 1em;
background-color: #f6f8fa; // from github
border-radius: 5px;
}
code {
font-family: $base-monospace-font-family;
}
}

View File

@ -1,8 +1,9 @@
$base-font-family: 'PT Serif', serif; $base-font-family: 'PT Serif', serif;
$base-monospace-font-family: 'PT Mono', monospace;
// Базовый размер шрифта // Базовый размер шрифта
$base-font-size: 20px; $base-font-size: 20px;
$base-font-color: #000; $base-font-color: #24292e; // from github
// Ширина страницы // Ширина страницы
$preferred-width: 700px; $preferred-width: 700px;

View File

@ -33,4 +33,4 @@
<meta property="og:locale" content="ru_RU"> <meta property="og:locale" content="ru_RU">
{# Links and styles #} {# Links and styles #}
<link href="https://fonts.googleapis.com/css?family=PT+Serif:400,700&amp;subset=cyrillic" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=PT+Mono|PT+Serif:400,700&amp;subset=cyrillic" rel="stylesheet">