mirror of
https://github.com/sergeyyarkov/gatsby-test-blog.git
synced 2026-10-11 10:19:19 +03:00
80 lines
1.1 KiB
SCSS
80 lines
1.1 KiB
SCSS
@import './fonts.scss';
|
|
@import '../components/Header/Header.scss';
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
|
|
h1,h2,h3,h4,h5,h6,p {
|
|
padding: 0;
|
|
margin: 15px 0;
|
|
}
|
|
|
|
ul {
|
|
margin: 0;
|
|
}
|
|
|
|
main {
|
|
margin-top: 40px;
|
|
h1 {
|
|
margin-bottom: 40px;
|
|
}
|
|
}
|
|
|
|
.container {
|
|
max-width: 800px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.blog-post {
|
|
&__title {
|
|
& h1 {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
&__description p {
|
|
margin-bottom: 2rem;
|
|
}
|
|
&__img img {
|
|
width: 100%;
|
|
border-radius: 3px;
|
|
}
|
|
&__content {
|
|
margin-top: 25px;
|
|
font-size: 17px;
|
|
line-height: 26px;
|
|
& img {
|
|
width: 100%;
|
|
border-radius: 3px;
|
|
}
|
|
& p {
|
|
margin: 0 0 15px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.main-posts {
|
|
& .post {
|
|
margin-bottom: 20px;
|
|
& h2 {
|
|
margin-bottom: 5px;
|
|
& a {
|
|
color: #000;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
& p {
|
|
text-align: justify;
|
|
}
|
|
border-bottom: 1px solid #e9e9e9;
|
|
border-bottom-right-radius: 5px;
|
|
border-bottom-left-radius: 5px;
|
|
}
|
|
} |