website/assets/_default/single.scss

118 lines
2.2 KiB
SCSS
Raw Normal View History

2020-09-14 16:24:02 +02:00
@import '../partials/main';
@import '../partials/nav';
@import '../partials/syntax';
2020-09-14 16:24:02 +02:00
.section-article {
article {
margin: 80px auto;
max-width: 720px;
2020-09-14 16:24:02 +02:00
.meta {
2020-10-05 09:57:10 +02:00
color: rgb(215, 215, 235);
2020-09-14 16:24:02 +02:00
}
.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-10-05 09:57:10 +02:00
border-bottom: 1px solid;
color: rgb(245, 245, 255);
margin: -5px;
padding: 5px;
transition: border .2s, color .2s;
&:hover {
2020-10-05 09:57:10 +02:00
color: rgb(255, 130, 130);
text-decoration: none;
}
2020-09-14 16:24:02 +02:00
}
2020-10-05 09:57:10 +02:00
h2 {
font-size: .6em;
}
2020-09-17 21:51:17 +02:00
aside {
margin-top: 80px;
.tags {
display: flex;
list-style: none;
2020-10-05 09:57:10 +02:00
margin-left: -15px;
2020-09-17 21:51:17 +02:00
padding: 0;
li {
a {
2020-10-05 09:57:10 +02:00
background: rgb(60, 60, 90);
border: 0;
border-radius: 5px;
color: rgb(215, 215, 225);
margin-left: 15px;
padding: 10px;
&:hover {
2020-10-05 09:57:10 +02:00
background: rgb(50, 50, 75);
color: rgb(255, 255, 255);
}
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;
2020-10-05 09:57:10 +02:00
margin: 20px auto 0 auto;
2020-09-21 10:59:52 +02:00
max-width: 720px;
2020-10-05 09:57:10 +02:00
white-space: nowrap;
&::after {
background: rgb(50, 50, 75);
content: '';
2020-10-05 09:57:10 +02:00
height: 200px;
left: 0;
position: absolute;
width: 100vw;
z-index: -10;
}
2020-09-14 16:24:02 +02:00
article {
display: flex;
flex-flow: column;
height: max-content;
margin: 20px 0;
2020-09-14 16:24:02 +02:00
a {
2020-10-05 09:57:10 +02:00
border-bottom: 1px solid transparent;
color: rgb(215, 215, 225);
transition: border .2s, color .2s;
&:hover {
2020-10-05 09:57:10 +02:00
border-bottom: 1px solid;
color: rgb(255, 130, 130);
text-decoration: none;
}
2020-09-14 16:24:02 +02:00
}
}
2020-10-05 09:57:10 +02:00
.next-article {
margin-right: auto;
}
.previous-article {
2020-10-05 09:57:10 +02:00
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;
}
2020-09-14 16:24:02 +02:00
}
}
@import '../partials/footer';