website/assets/_default/single.scss

92 lines
1.7 KiB
SCSS
Raw Normal View History

2020-09-14 16:24:02 +02:00
@import '../partials/main';
@import '../partials/nav';
.section-article {
article {
margin: 80px auto;
max-width: 720px;
2020-09-14 16:24:02 +02:00
.meta {
color: rgb(180, 180, 220);
}
.title {
font-size: 2em;
margin-top: 20px;
}
img {
border: 1px solid rgb(60, 60, 90);
border-radius: 5px;
margin-bottom: 15px;
max-width: 100%;
2020-09-14 16:24:02 +02:00
}
a {
2020-09-23 17:10:06 +02:00
background: rgb(60, 60, 90);
border-radius: 5px;
color: rgb(240, 240, 250);
2020-09-23 17:10:06 +02:00
margin: -5px 0;
padding: 5px 5px;
transition: background .2s, color .2s;
&:hover {
background: rgb(255, 130, 130);
color: rgb(255, 255, 255);
text-decoration: none;
}
2020-09-14 16:24:02 +02:00
}
2020-09-17 21:51:17 +02:00
aside {
margin-top: 80px;
.tags {
display: flex;
list-style: none;
margin-left: -10px;
padding: 0;
li {
a {
color: rgb(180, 180, 220);
2020-09-23 17:10:06 +02:00
margin-left: 10px;
padding: 10px;
&:hover {
background: rgb(70, 70, 105);
}
2020-09-17 21:51:17 +02:00
}
}
}
}
2020-09-14 16:24:02 +02:00
}
}
.section-articles {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem;
margin: 20px auto -50px auto;
2020-09-21 10:59:52 +02:00
max-width: 720px;
&::after {
background: rgb(50, 50, 75);
content: '';
height: 210px;
left: 0;
position: absolute;
width: 100vw;
z-index: -10;
}
2020-09-14 16:24:02 +02:00
article {
border-radius: 5px;
color: rgb(255, 255, 255);
2020-09-14 16:24:02 +02:00
display: flex;
flex-flow: column;
height: max-content;
margin: 20px 0;
2020-09-14 16:24:02 +02:00
transition: background .2s;
a {
margin: 10px 0;
&:hover {
text-decoration: underline;
}
2020-09-14 16:24:02 +02:00
}
}
.previous-article {
text-align: right;
2020-09-14 16:24:02 +02:00
}
}
@import '../partials/footer';