replaced more values with variables

This commit is contained in:
Vrifox 2020-11-03 20:33:16 +01:00
parent 1c0aebd738
commit 9d082d0458
7 changed files with 57 additions and 57 deletions

View file

@ -5,7 +5,7 @@
.section.header {
align-items: center;
background: rgb(70, 70, 105);
background: $bg70;
display: flex;
height: 150px;
margin: 0 0 40px 0;
@ -24,24 +24,24 @@
grid-template-columns: repeat(2, 1fr);
margin: 20px 0;
a {
color: rgb(255, 255, 255);
color: $white-light;
text-decoration: none;
}
article {
background: rgb(60, 60, 90);
border: 1px solid rgb(60, 60, 90);
background: $bg60;
border: 1px solid $bg60;
border-radius: 5px;
color: rgb(255, 255, 255);
color: $white-light;
display: flex;
flex-flow: column;
height: max-content;
padding: 20px;
transition: background .2s;
&:hover {
background: rgb(70, 70, 105);
background: $bg70;
}
img {
background: rgb(80, 80, 120);
background: $bg80;
border-radius: 5px 5px 0px 0px;
margin: -20px -20px 15px -20px;
max-height: 250px;
@ -55,7 +55,7 @@
margin: 0 0 10px 0;
}
a {
color: rgb(255, 255, 255);
color: $white-light;
&:hover {
text-decoration: underline;
}
@ -65,7 +65,7 @@
margin: 0;
}
.author {
color: rgb(200, 200, 230);
color: $white-dark;
font-style: italic;
}
}

View file

@ -9,26 +9,26 @@
margin: 80px auto;
max-width: 720px;
.meta {
color: rgb(215, 215, 235);
color: $white-dark;
}
.title {
font-size: 2em;
margin-top: 20px;
}
img {
border: 1px solid rgb(60, 60, 90);
border: 1px solid $bg60;
border-radius: 5px;
margin-bottom: 15px;
max-width: 100%;
}
a {
border-bottom: 1px solid;
color: rgb(245, 245, 255);
color: $white;
margin: -5px;
padding: 5px;
transition: border .2s, color .2s;
&:hover {
color: rgb(255, 130, 130);
color: $red;
text-decoration: none;
}
}
@ -44,15 +44,15 @@
padding: 0;
li {
a {
background: rgb(60, 60, 90);
background: $bg60;
border: 0;
border-radius: 5px;
color: rgb(215, 215, 225);
color: $white-dark;
margin-left: 15px;
padding: 10px;
&:hover {
background: rgb(50, 50, 75);
color: rgb(255, 255, 255);
background: $bg50;
color: $white-light;
}
}
}
@ -69,7 +69,7 @@
max-width: 720px;
white-space: nowrap;
&::after {
background: rgb(50, 50, 75);
background: $bg50;
content: '';
height: 200px;
left: 0;
@ -84,11 +84,11 @@
margin: 20px 0;
a {
border-bottom: 1px solid transparent;
color: rgb(215, 215, 225);
color: $white-dark;
transition: border .2s, color .2s;
&:hover {
border-bottom: 1px solid;
color: rgb(255, 130, 130);
color: $red;
text-decoration: none;
}
}