website/assets/index.scss
2020-11-03 21:43:41 +01:00

147 lines
2.7 KiB
SCSS

@import 'import/colors.scss';
@import 'import/main.scss';
@import 'import/nav.scss';
@import 'import/footer.scss';
.section.header {
align-items: center;
background: $bg70;
display: flex;
height: 120px;
margin: 0 0 40px 0;
text-align: center;
header {
h1 {
font-size: 1.5em;
margin: auto;
}
}
}
.section.latest {
color: $white-dark;
font-size: 1.5em;
a {
color: $white;
font-weight: bold;
transition: border .2s, color .2s;
&:hover {
color: $red;
text-decoration: none;
}
}
}
.section.articles {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem;
margin: 20px 0;
a {
color: $white-light;
text-decoration: none;
}
article {
background: $bg60;
border: 1px solid $bg60;
border-radius: 5px;
color: $white;
display: flex;
flex-flow: column;
height: max-content;
padding: 20px;
transition: background .2s;
&:hover {
background: $bg70;
}
img {
background: $bg80;
border-radius: 5px 5px 0px 0px;
margin: -20px -20px 15px -20px;
max-height: 250px;
max-width: calc(100% + 40px);
object-fit: cover;
order: -1;
}
h1 {
font-size: 18px;
font-weight: 400;
margin: 0 0 10px 0;
}
.meta {
color: $white-dark;
font-size: 14px;
margin: 0;
}
.author {
color: $white-dark;
font-style: italic;
}
}
}
@media (max-width: 900px) {
.section.articles {
grid-template-columns: repeat(1, 1fr);
}
}
.section.projects {
display: grid;
grid-gap: 1rem;
grid-template-columns: repeat(3, 1fr);
margin: 20px 0;
a {
color: $white-light;
text-decoration: none;
}
article {
background: $bg60;
border: 1px solid $bg60;
border-radius: 5px;
color: $white-light;
display: flex;
flex-flow: column;
height: max-content;
padding: 20px;
transition: background .2s;
&:hover {
background: $bg70;
}
img {
background: $bg80;
border-radius: 5px 5px 0px 0px;
margin: -20px -20px 10px -20px;
max-height: 170px;
max-width: calc(100% + 40px);
object-fit: cover;
order: -1;
}
h1 {
font-size: 20px;
font-weight: 400;
margin: 0;
}
.meta {
color: $white-dark;
font-size: 15px;
margin: 0;
}
.status {
color: $white-dark;
&::before {
content: '·';
margin-right: 9px;
}
}
}
}
@media (max-width: 900px) {
.section.projects {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 600px) {
.section.projects {
grid-template-columns: repeat(1, 1fr);
}
}