website/assets/_default/single.scss
2020-11-27 18:36:31 +01:00

108 lines
2 KiB
SCSS

@import '../import/colors.scss';
@import '../import/syntax.scss';
@import '../import/main.scss';
@import '../import/nav.scss';
@import '../import/footer.scss';
@import '../import/include.scss';
.section-article {
article {
margin: 0 auto;
max-width: 720px;
.meta {
color: $white-dark;
}
.title {
font-size: 2em;
margin-top: 20px;
}
img {
border-radius: 5px;
box-shadow: 0 0 40px 10px rgb(30, 30, 45);
margin-bottom: 15px;
width: 100%;
}
@include a-underlined;
h2 {
font-size: .6em;
}
aside {
margin-top: 80px;
.tags {
display: flex;
list-style: none;
margin-left: -15px;
padding: 0;
li {
a {
background: $bg60;
border: 0;
border-radius: 5px;
color: $white-dark;
margin-left: 15px;
padding: 10px;
&:hover {
background: $bg50;
color: $white-light;
}
}
}
}
}
}
}
.section-articles {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem;
margin: 20px auto 0 auto;
max-width: 720px;
white-space: nowrap;
&::after {
background: $bg50;
content: '';
height: 200px;
left: 0;
position: absolute;
width: 100vw;
z-index: -10;
}
article {
display: flex;
flex-flow: column;
height: max-content;
margin: 20px 0;
a {
border-bottom: 1px solid transparent;
color: $white-dark;
transition: border .2s, color .2s;
&:hover {
border-bottom: 1px solid;
color: $red;
text-decoration: none;
}
}
}
.next-article {
margin-right: auto;
}
.previous-article {
margin-left: auto;
}
}
@media (max-width: 400px) {
.section-articles {
grid-template-columns: repeat(1, 1fr);
&::after {
height: 250px;
}
.next-article {
margin: 20px auto 0 auto;
}
.previous-article {
margin: 0 auto;
}
}
}