This commit is contained in:
Vrifox 2020-11-12 09:57:45 +01:00
parent cc98aeaa05
commit a9852b3403
6 changed files with 86 additions and 153 deletions

View file

@ -11,3 +11,62 @@
}
}
}
@mixin posts {
.section.posts {
.inner {
display: grid;
grid-gap: 1rem;
grid-template-columns: repeat(2, 1fr);
margin: 40px 0;
a {
color: $white-light;
text-decoration: none;
}
article {
background: $bg60;
border-radius: 5px;
color: $white;
display: flex;
flex-flow: column;
height: 100%;
padding: 20px 40px;
transition: background .2s;
&:hover {
background: $bg50;
}
h1 {
color: $white;
display: flex;
font-size: 18px;
font-weight: 400;
margin: 0 0 10px 0;
min-height: 65px;
text-align: center;
span {
margin: auto;
}
}
p.description {
color: $white-dark;
flex: 1;
font-size: 16px;
margin: 20px 0;
}
p.meta {
color: $white-dark;
font-size: 14px;
margin: 0;
text-align: center;
}
}
}
}
@media (max-width: 900px) {
main {
.section.articles.inner {
grid-template-columns: repeat(1, 1fr);
}
}
}
}

View file

@ -54,4 +54,5 @@ hr {
main {
width: 100vw;
margin: 60px 0 0 0;
}