site/src/scss/landing.scss

117 lines
1.9 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;
2024-06-11 02:50:50 -04:00
$max-width: 600px;
$max-height: 600px;
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 {
2024-06-11 02:50:50 -04:00
background-color: #{colors.$background};
2024-06-10 04:06:12 -04:00
display: flex;
flex-direction: column;
gap: $gutter;
2024-06-10 14:42:50 -04:00
align-items: center;
@include breakpoint("md") {
2024-06-10 04:06:12 -04:00
flex-direction: row;
2024-06-10 14:42:50 -04:00
justify-content: center;
2024-06-11 02:50:50 -04:00
min-height: 100vh;
2024-06-10 04:06:12 -04:00
}
}
main {
2024-06-10 14:42:50 -04:00
width: 100%;
gap: $gutter;
2024-06-11 02:50:50 -04:00
color: #{colors.$text};
2024-06-10 14:42:50 -04:00
display: flex;
flex-direction: column;
2024-06-10 04:06:12 -04:00
2024-06-10 18:25:56 -04:00
@include breakpoint("md") {
max-width: $max-width;
}
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;
}
2024-06-12 21:53:46 -04:00
@include markup;
2024-06-10 14:42:50 -04:00
}
a {
2024-06-11 02:50:50 -04:00
color: #{colors.$link};
text-decoration: underline #{colors.$link} 2px;
2024-06-10 14:42:50 -04:00
&:hover {
2024-06-11 02:50:50 -04:00
color: #{colors.$link-hover};
2024-06-10 14:42:50 -04:00
}
}
}
aside {
margin-top: #{$gutter * 2};
2024-06-10 18:41:15 -04:00
margin-bottom: #{$gutter * 2};
2024-06-10 14:42:50 -04:00
width: #{$avatar-width};
@include breakpoint("md") {
2024-06-11 02:50:50 -04:00
height: $max-height;
2024-06-10 14:42:50 -04:00
margin-top: 0;
2024-06-11 02:50:50 -04:00
margin-right: 2em;
}
2024-06-10 04:06:12 -04:00
img {
2024-06-10 14:42:50 -04:00
width: 100%;
2024-06-10 04:06:12 -04:00
image-rendering: pixelated;
2024-06-10 14:42:50 -04:00
max-width: #{$avatar-width};
2024-06-10 04:06:12 -04:00
}
}
2024-06-10 14:42:50 -04:00
.entry-button {
2024-06-10 18:53:23 -04:00
display: inline-block;
height: 2em;
2024-06-10 14:42:50 -04:00
margin: auto;
margin-bottom: #{$gutter};
2024-06-10 18:20:21 -04:00
image-rendering: pixelated;
font-size: 1.5em;
font-weight: bold;
2024-06-10 18:41:15 -04:00
2024-06-10 18:20:21 -04:00
&:hover {
font-style: italic;
}
2024-06-10 18:41:15 -04:00
2024-06-10 18:20:21 -04:00
&::after {
content: " >>";
2024-06-11 02:50:50 -04:00
color: #{colors.$muted};
2024-06-10 18:20:21 -04:00
font-style: normal;
2024-06-11 02:50:50 -04:00
text-decoration: underline #{colors.$background} 2px;
2024-06-10 18:20:21 -04:00
}
@include breakpoint("md") {
margin-right: 0;
}
2024-06-10 04:06:12 -04:00
}