next/previous article/project section rewritten

This commit is contained in:
Vrifox 2020-09-22 14:10:53 +02:00
parent 8f44f2d329
commit fb24b7e480
7 changed files with 46 additions and 97 deletions

View file

@ -54,58 +54,38 @@
}
.section-articles {
margin: 20px auto;
margin: 20px auto -50px auto;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem;
max-width: 720px;
a {
color: rgb(255, 255, 255);
text-decoration: none;
}
article {
background: rgb(60, 60, 90);
color: rgb(255, 255, 255);
padding: 20px;
margin: 20px 0;
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: 170px;
}
h1 {
margin-top: 0px;
}
a {
color: rgb(255, 255, 255);
margin: 10px 0;
}
a:hover {
text-decoration: underline;
}
.meta {
margin: 0;
}
.author {
font-style: italic;
color: rgb(200, 200, 230);
}
}
article:hover {
background: rgb(70, 70, 105);
.previous-article {
text-align: right;
}
}
@media (max-width: 600px) {
.section-articles {
grid-template-columns: repeat(1, 1fr);
}
.section-articles::after {
content: '';
position: absolute;
width: 100vw;
background: rgb(50, 50, 75);
height: 230px;
left: 0;
z-index: -10;
}
@import '../partials/footer';

View file

@ -8,6 +8,8 @@
html {
scrollbar-width: thin;
scrollbar-color: rgb(255, 130, 130) rgb(60, 60, 90);
overflow-x: hidden;
overflow-y: scroll;
}
body {
background: rgb(40, 40, 60);
@ -15,7 +17,6 @@ body {
margin: 0;
font-family: PoppinsLatin, Monaco, Lucida Console, monospace;
display: grid;
overflow-x: hidden;
}
a {
color: rgb(255, 130, 130);