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;
}
}

View file

@ -1,12 +1,12 @@
footer {
background: rgb(30, 30, 45);
color: rgb(215, 215, 235);
background: $bg30;
color: $white-dark;
margin-top: 100px;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
&::after {
background: rgb(30, 30, 45);
background: $bg30;
content: '';
height: 10000px;
overflow: hidden;
@ -27,12 +27,12 @@ footer {
margin-left: 30px;
a {
border-bottom: 1px solid transparent;
color: rgb(215, 215, 235);
color: $white-dark;
padding: 5px 0;
transition: border .2s, color .2s;
&:hover {
border-bottom: 1px solid;
color: rgb(255, 130, 130);
color: $red;
text-decoration: none;
}
}

View file

@ -1,13 +1,13 @@
* {
box-sizing: border-box;
scrollbar-color: rgb(255, 130, 130) rgb(60, 60, 90);
scrollbar-color: $red $bg60;
scrollbar-width: thin;
&::-webkit-scrollbar {
background: rgb(60, 60, 90);
background: $bg60;
width: 6px;
}
&::-webkit-scrollbar-thumb {
background: rgb(255, 130, 130);
background: $red;
}
}
html {
@ -15,15 +15,15 @@ html {
overflow-y: scroll;
}
body {
background: rgb(40, 40, 60);
color: rgb(245, 245, 255);
background: $bg40;
color: $white;
display: grid;
font-family: 'Lucida Console', monospace;
line-height: 1.8;
margin: 0;
}
a {
color: rgb(255, 130, 130);
color: $red;
text-decoration: none;
&:hover {
text-decoration: underline;
@ -42,7 +42,7 @@ h4 {
font-size: .9em;
}
hr {
color: rgb(60, 60, 90);
color: $bg60;
margin: 50px 20px;
}

View file

@ -1,5 +1,5 @@
nav {
background: rgb(60, 60, 90);
background: $bg60;
overflow-x: auto;
overflow-y: hidden;
position: sticky;
@ -11,16 +11,16 @@ nav {
height: 64px;
.website-name {
a {
color: rgb(245, 245, 245);
color: $white;
display: block;
padding: 20px 30px;
text-decoration: none;
transition: background .2s;
&:hover {
background: rgb(50, 50, 75);
background: $bg50;
}
&.active {
border-bottom: 2px solid rgb(215,215,225);
border-bottom: 2px solid $white-dark;
border-top: 2px solid transparent;
padding: 16px 30px;
}
@ -39,18 +39,18 @@ nav {
li {
list-style-type: none;
&.active a {
border-bottom: 2px solid rgb(215,215,225);
border-bottom: 2px solid $white-dark;
border-top: 4px solid transparent;
padding: 16px 30px;
}
a {
color: rgb(245, 245, 245);
color: $white;
display: block;
text-decoration: none;
transition: background .2s;
padding: 20px 30px;
&:hover {
background: rgb(50, 50, 75);
background: $bg50;
}
}
}
@ -65,13 +65,13 @@ nav {
li {
list-style-type: none;
a {
color: rgb(245, 245, 255);
color: $white;
display: block;
text-decoration: none;
transition: background .2s;
padding: 20px 30px;
&:hover {
background: rgb(50, 50, 75);
background: $bg50;
}
}
.seperator {
@ -98,10 +98,10 @@ nav {
ul {
li {
a {
background: rgb(50, 50, 75);
color: rgb(215, 215, 225);
background: $bg50;
color: $white-dark;
&:hover {
background: rgb(40, 40, 60);
background: $bg40;
}
}
.seperator {

View file

@ -1,7 +1,7 @@
.chroma { // background
background: rgb(30, 30, 45);
background: $bg30;
border-radius: 5px;
color: rgb(245, 245, 255);
color: $white;
.x { // other
}
@ -29,12 +29,12 @@
width: 100%;
}
.lnt { // lineNumbersTable
color: rgb(215, 215, 225);
color: $white-dark;
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
}
.ln { // lineNumbers
color: rgb(215, 215, 225);
color: $white-dark;
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
}
@ -108,7 +108,7 @@
}
.nt { // nameTag
color: rgb(255, 255, 255);
color: $white-light;
}
.nv { // nameVariable
color: #8be9fd;

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,14 +24,14 @@
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;
@ -39,10 +39,10 @@
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;
@ -60,7 +60,7 @@
margin: 0;
}
.status {
color: rgb(215, 215, 245);
color: $white-dark;
font-style: italic;
}
}