site/src/scss/landing.scss

118 lines
2 KiB
SCSS
Raw Normal View History

2024-06-10 14:42:50 -04:00
@use "sass:math";
2024-06-10 04:06:12 -04:00
@use "colors";
@use "fonts";
@use "mixins" as *;
/*
VARIABLES
===============================================================================
*/
$gutter: 10px;
$max-width: 750px;
$max-height: 500px;
2024-06-10 14:42:50 -04:00
$avatar-width: 256px;
2024-06-10 04:06:12 -04:00
2024-06-11 02:50:50 -04:00
html {
2024-06-10 04:06:12 -04:00
font: {
size: 14pt;
family: "Linux Libertine", "Times New Roman", Times, serif;
}
2024-06-10 14:42:50 -04:00
line-height: 1.5;
2024-06-10 04:06:12 -04:00
}
body {
display: flex;
flex-direction: column;
2024-06-10 14:42:50 -04:00
align-items: center;
justify-content: center;
gap: 5px;
margin: auto;
padding: 1em 0;
background-color: #{colors.$background};
@include breakpoint("md") {
width: $max-width;
}
@include breakpoint("lg") {
height: 100vh;
width: $max-width + $avatar-width;
}
}
a {
color: #{colors.$link};
text-decoration: underline #{colors.$link} 2px;
&:hover {
color: #{colors.$link-hover};
}
}
nav {
align-self: flex-end;
margin-right: 1em;
text-align: right;
2024-06-10 14:42:50 -04:00
@include breakpoint("md") {
margin: 0;
}
.enter-link {
font-size: 1.5em;
font-weight: bold;
image-rendering: pixelated;
&:hover {
font-style: italic;
}
&::after {
content: " >>";
font-style: normal;
text-decoration: underline #{colors.$background} 2px;
color: #{colors.$muted};
}
2024-06-10 04:06:12 -04:00
}
}
main {
2024-06-10 14:42:50 -04:00
display: flex;
flex-direction: column;
align-items: center;
gap: 2em;
margin: 1em 0;
color: #{colors.$text};
2024-06-10 04:06:12 -04:00
@include breakpoint("lg") {
flex-direction: row-reverse;
align-items: flex-start;
max-height: $max-height;
2024-06-10 18:25:56 -04:00
}
2024-06-10 14:42:50 -04:00
article {
background: #{colors.$base-950};
2024-06-10 18:41:15 -04:00
border-top: solid #{colors.$base-900};
border-bottom: solid #{colors.$base-900};
2024-06-10 04:06:12 -04:00
font-size: 1rem;
2024-06-10 18:41:15 -04:00
@include breakpoint("md") {
border: solid #{colors.$base-900};
2024-06-11 02:50:50 -04:00
max-height: $max-height;
2024-06-10 18:41:15 -04:00
overflow: scroll;
max-width: $max-width;
2024-06-10 18:41:15 -04:00
}
2024-06-12 21:53:46 -04:00
@include markup;
2024-06-10 14:42:50 -04:00
}
aside {
img {
width: 100%;
image-rendering: pixelated;
max-width: #{$avatar-width};
2024-06-10 14:42:50 -04:00
}
}
}