[wip] website redesign

This commit is contained in:
Vri 🌈 2022-11-28 18:32:29 +01:00
parent 4857a7b766
commit 59e98e5274
Signed by: vrifox
GPG key ID: D40098E5B60B2197
8 changed files with 155 additions and 161 deletions

View file

@ -1,98 +1,90 @@
:root {
--background: hsl(210, 21%, 15%);
--border: hsl(210, 21%, 20%);
--text: hsl(210, 21%, 95%);
--text-2: hsl(210, 21%, 80%);
--text-secondary: hsl(210, 21%, 40%);
--vriish-red: hsl(0, 100%, 75%);
--rose: hsl(0, 100%, 75%);
--orange: hsl(25, 100%, 75%);
--gold: hsl(50, 100%, 75%);
--emerald: hsl(130, 100%, 75%);
--sky: hsl(215, 100%, 75%);
--purpur: hsl(275, 100%, 75%);
--white: hsl(360, 100%, 100%);
}
@media (prefers-color-scheme: light) {
:root {
--background: rgb(255, 245, 235);
--border: rgb(225, 215, 205);
--text: rgb(50, 40, 30);
--text-2: rgb(90, 80, 70);
}
}
// general
@import "variables";
// site parts
@import "sidebar";
@import "footer";
// pages
@import "home";
* {
box-sizing: border-box;
scrollbar-color: var(--vriish-red) var(--background);
scrollbar-color: var(--vriish-rose) var(--background);
scrollbar-width: thin;
&::-webkit-scrollbar {
background: var(--background);
width: 6px;
}
&::-webkit-scrollbar-thumb { background: var(--vriish-red); }
&::-webkit-scrollbar-thumb { background: var(--vriish-rose); }
}
html {
margin: 0;
overflow-x: hidden;
overflow-y: scroll;
}
body {
background: var(--background);
color: var(--text);
display: grid;
font-family: system-ui, sans-serif;
font-size: 1.2em;
line-height: 1.7;
margin: 0;
}
h1, h2, h3, h4, h5, h6 {
line-height: 1em;
margin: .8em 0;
}
a {
color: var(--text);
text-decoration: underline;
text-decoration-color: var(--vriish-red);
text-underline-offset: 3px;
transition: text-decoration-color .2s;
&:hover { text-decoration-color: var(--text); }
}
center {
margin: 19.2px 0;
text-align: center;
}
pre {
border: 1px solid var(--vriish-red);
border-radius: 4px;
overflow: auto;
padding: 10px 15px;
}
p {
hyphens: auto;
img {
border: 2px solid var(--border);
border-radius: 4px;
display: block;
margin: 0 auto;
padding: 0;
body {
background: var(--background);
color: var(--text);
display: grid;
font-family: system-ui, sans-serif;
font-size: 1.2em;
grid-template-areas:
"header header"
"sidebar content"
"sidebar footer";
line-height: 1.7;
margin: 0;
@media (max-width: 920px) {
grid-template-areas:
"content"
"sidebar"
"footer";
}
h1, h2, h3, h4, h5, h6 {
line-height: 1em;
margin: .8em 0;
}
a {
color: var(--text);
text-decoration: underline;
text-decoration-color: var(--vriish-rose);
text-underline-offset: 3px;
transition: text-decoration-color .2s;
&:hover { text-decoration-color: var(--text); }
}
pre {
border: 1px solid var(--vriish-rose);
border-radius: 4px;
overflow: auto;
padding: 10px 15px;
}
p {
hyphens: auto;
img {
border: 2px solid var(--border);
border-radius: 4px;
display: block;
margin: 0 auto;
}
}
hr {
border: 1px solid var(--border);
color: var(--border);
margin: 60px 0;
}
}
}
hr {
border: 1px solid var(--border);
color: var(--border);
margin: 60px 0;
.global-header {
grid-area: header;
}
// ------------------------
// - header / nav; footer -
// ------------------------
header, footer {
/*header, footer {
align-items: center;
display: flex;
overflow: auto;
@ -104,7 +96,7 @@ header, footer {
text-decoration-thickness: 2px !important;
text-underline-offset: 6px;
margin: 0 15px;
&:hover { text-decoration-color: var(--vriish-red); }
&:hover { text-decoration-color: var(--vriish-rose); }
}
}
header {
@ -116,7 +108,7 @@ header {
font-size: 1em;
margin: 0;
a {
color: var(--vriish-red);
color: var(--vriish-rose);
}
}
nav {
@ -126,24 +118,16 @@ header {
aside {
margin-left: auto;
}
}
footer {
bottom: 0;
color: var(--text-secondary);
position: absolute;
a { color: var(--text-secondary); }
span {
padding: 17.6px 30px;
margin-right: auto;
}
}
}*/
// --------
// - main -
// --------
main {
grid-area: content;
margin: 20px auto;
max-width: 720px;
max-width: 1000px;
overflow: hidden;
padding: 30px;
width: 100%;
@ -151,7 +135,7 @@ main {
}
#intro-heading {
background-image: linear-gradient(180deg, var(--rose) 0%, var(--rose) 50%, var(--gold) 95%, var(--rose) 100%);
background-image: linear-gradient(180deg, var(--vriish-rose) 0%, var(--vriish-rose) 50%, var(--gold) 95%, var(--vriish-rose) 100%);
background-clip: text;
-webkit-background-clip: text;
color: transparent;