This commit is contained in:
Vri 🌈 2023-03-09 20:47:10 +01:00
parent 804159352f
commit b70349e775
Signed by: vrifox
GPG key ID: D40098E5B60B2197
5 changed files with 46 additions and 29 deletions

View file

@ -21,12 +21,17 @@
height: 100vh; height: 100vh;
color: var(--vriish-gradient-text); color: var(--vriish-gradient-text);
mask: var(--vriish-waves); mask: var(--vriish-waves);
@media (max-width: 1040px) { padding: 1rem;
@media (max-width: 1140px) {
height: 90vh; height: 90vh;
font-size: 1.5rem;
} }
h1 { h1 {
letter-spacing: 0.5rem; letter-spacing: 0.5rem;
font-size: 7rem; font-size: 7rem;
@media (max-width: 1140px) {
font-size: 4rem;
}
} }
p { p {
letter-spacing: 0.15rem; letter-spacing: 0.15rem;

View file

@ -17,15 +17,10 @@ html {
body { body {
background: var(--background); background: var(--background);
color: var(--text); color: var(--text);
display: grid; display: flex;
font-family: system-ui, sans-serif; font-family: system-ui, sans-serif;
font-size: 1.2em; font-size: 1.2em;
grid-template-areas: flex-direction: column;
"header header"
"sidebar content"
"footer footer";
grid-template-columns: 250px 1fr;
grid-template-rows: min-content;
line-height: 1.7; line-height: 1.7;
margin: 0; margin: 0;
min-height: 100vh; min-height: 100vh;
@ -34,7 +29,6 @@ html {
grid-template-areas: grid-template-areas:
"header" "header"
"content" "content"
"sidebar"
"footer"; "footer";
grid-template-columns: 1fr; grid-template-columns: 1fr;
} }

View file

@ -1,5 +1,5 @@
footer { footer {
color: var(--text-secondary); color: var(--text-accent-150);
grid-area: footer; grid-area: footer;
margin: 1em auto; margin: 1em auto;
text-align: center; text-align: center;

View file

@ -19,12 +19,12 @@
border: 1px solid var(--sidebar-border); border: 1px solid var(--sidebar-border);
border-left: 0; border-left: 0;
overflow: hidden; overflow: hidden;
@media (max-width: 1040px) { @media (max-width: 1140px) {
top: auto; top: auto;
bottom: 0; bottom: 0;
border-radius: 2rem 2rem 0 0; border-radius: 2rem 2rem 0 0;
flex-direction: row; flex-direction: row;
width: 100vw; min-width: 100vw;
height: 5rem; height: 5rem;
margin: 0; margin: 0;
overflow-y: hidden; overflow-y: hidden;
@ -52,7 +52,7 @@
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
@media (max-width: 1040px) { @media (max-width: 1140px) {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
height: 100%; height: 100%;
@ -69,7 +69,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
transition: background-color 0.2s linear; transition: background-color 0.2s linear;
@media (max-width: 1040px) { @media (max-width: 1140px) {
margin: 0 0.5rem; margin: 0 0.5rem;
} }
a { a {
@ -89,7 +89,7 @@
opacity: 1; opacity: 1;
opacity: 0.5; opacity: 0.5;
transition: left 0.5s ease-out, opacity 0.5s ease-out, background-color 0.2s linear, top 0.5s ease-out; transition: left 0.5s ease-out, opacity 0.5s ease-out, background-color 0.2s linear, top 0.5s ease-out;
@media (max-width: 1040px) { @media (max-width: 1140px) {
left: 0; left: 0;
top: 100%; top: 100%;
} }
@ -107,7 +107,7 @@
&::after { &::after {
left: 0; left: 0;
opacity: 1; opacity: 1;
@media (max-width: 1040px) { @media (max-width: 1140px) {
top: 0; top: 0;
} }
} }
@ -123,24 +123,31 @@
} }
} }
aside { aside {
@media (max-width: 1040px) { @media (max-width: 1140px) {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
} }
#social-links { #social-links {
text-align: center; text-align: center;
align-items: center;
display: flex;
justify-content: center;
ul { ul {
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 1rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
@media (max-width: 1140px) {
flex-direction: row;
}
} }
.icon { .icon {
height: 2em; height: 1.25rem;
width: 1.25rem;
transition: color 0.2s ease-in-out; transition: color 0.2s ease-in-out;
display: block;
&.mastodon-icon { &.mastodon-icon {
color: hsl(239.6, 100%, 69.4%); color: hsl(239.6, 100%, 69.4%);
&:hover { &:hover {
@ -153,6 +160,9 @@
text-align: center; text-align: center;
transition: background-color 0.2s ease-in-out; transition: background-color 0.2s ease-in-out;
border-radius: 0.5rem 0.5rem 1.85rem 0.5rem; border-radius: 0.5rem 0.5rem 1.85rem 0.5rem;
@media (max-width: 1140px) {
border-radius: 0.5rem;
}
&:hover { &:hover {
background-color: var(--sidebar-accent-1); background-color: var(--sidebar-accent-1);
} }
@ -164,7 +174,7 @@
text-decoration: none; text-decoration: none;
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 0.5rem 1rem; padding: 1rem 1rem;
pointer-events: all; pointer-events: all;
} }
} }

View file

@ -13,13 +13,17 @@
--primary-light-#{$counter}: hsl(25, #{$saturation}, #{$lightness}); --primary-light-#{$counter}: hsl(25, #{$saturation}, #{$lightness});
} }
@for $i from 1 to 20 {
$counter: $i * 50;
$saturation: 10% + $i * 2.5%;
$lightness: $i * 4%;
--text-accent-#{$counter}: hsl(320, #{$saturation}, #{$lightness});
}
--background: var(--primary-dark-150); --background: var(--primary-dark-150);
--border: var(--primary-dark-200); --border: var(--primary-dark-200);
--text: var(--primary-light-950); --text: var(--primary-light-950);
--text-accent-1: var(--primary-light-900);
--text-accent-2: var(--primary-light-850);
--text-accent-3: var(--primary-light-800);
--sidebar-background: var(--primary-dark-100); --sidebar-background: var(--primary-dark-100);
--sidebar-border: var(--primary-dark-150); --sidebar-border: var(--primary-dark-150);
@ -45,13 +49,17 @@
} }
@media (prefers-color-scheme: light) { @media (prefers-color-scheme: light) {
:root { :root {
@for $i from 1 to 20 {
$counter: $i * 50;
$saturation: 20% + $i * 2.5%;
$lightness: $i * 5%;
--text-accent-#{$counter}: hsl(25, #{$saturation}, #{$lightness});
}
--background: var(--primary-light-850); --background: var(--primary-light-850);
--border: var(--primary-dark-800); --border: var(--primary-dark-800);
--text: var(--primary-dark-50); --text: var(--primary-dark-50);
--text-accent-1: var(--primary-dark-100);
--text-accent-2: var(--primary-dark-150);
--text-accent-3: var(--primary-dark-200);
--sidebar-background: var(--primary-light-900); --sidebar-background: var(--primary-light-900);
--sidebar-border: var(--primary-light-850); --sidebar-border: var(--primary-light-850);