website/assets/import/include.scss

71 lines
1.4 KiB
SCSS
Raw Normal View History

2020-11-09 16:12:02 +01:00
@mixin a-underlined {
a {
border-bottom: 1px solid;
color: $white;
2020-11-09 20:16:31 +01:00
margin: -2px 0;
padding: 2px 0;
2020-11-09 16:12:02 +01:00
transition: border .2s, color .2s;
&:hover {
color: $red;
text-decoration: none;
}
}
}
2020-11-12 09:57:45 +01:00
@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) {
2020-11-12 16:31:56 +01:00
.section.posts .inner {
grid-template-columns: repeat(1, 1fr);
2020-11-12 09:57:45 +01:00
}
}
}