website/assets/scss/_default/list.scss
2020-09-14 16:24:02 +02:00

60 lines
1.1 KiB
SCSS

@import '../partials/main';
@import '../partials/nav';
@import '../partials/footer';
header {
text-align: center;
margin: 100px 0;
h1 {
font-size: 2em;
}
}
.section-articles {
margin: 20px 0;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem;
a {
color: rgb(255, 255, 255);
text-decoration: none;
}
article {
background: rgb(60, 60, 90);
color: rgb(255, 255, 255);
padding: 20px;
border-radius: 5px;
display: flex;
flex-flow: column;
height: max-content;
transition: background .2s;
img {
order: -1;
max-width: calc(100% + 40px);
border-radius: 5px;
margin: -20px -20px 20px -20px;
background: rgb(80, 80, 120);
object-fit: cover;
max-height: 250px;
}
h1 {
margin-top: 0px;
}
a {
color: rgb(255, 255, 255);
}
a:hover {
text-decoration: underline;
}
.meta {
margin: 0;
}
.author {
font-style: italic;
color: rgb(200, 200, 230);
}
}
article:hover {
background: rgb(70, 70, 105);
}
}