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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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