website/assets/_default/single.scss

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