site/src/scss/landing.scss

150 lines
2.3 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;
$padding: $gutter;
$max-width: 500px;
2024-06-10 14:42:50 -04:00
$max-height: math.div($max-width, 2);
$avatar-width: 256px;
2024-06-10 04:06:12 -04:00
/*
COLORS
===============================================================================
*/
$fg: white;
2024-06-10 14:42:50 -04:00
$link-color: colors.$green-600;
$link-color-hover: colors.$green-400;
2024-06-10 04:06:12 -04:00
:root {
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 {
background-color: #{colors.$bg};
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;
height: 100vh;
2024-06-10 04:06:12 -04:00
}
}
main {
2024-06-10 14:42:50 -04:00
width: 100%;
max-width: $max-width;
gap: $gutter;
color: #{$fg};
display: flex;
flex-direction: column;
2024-06-10 04:06:12 -04:00
2024-06-10 14:42:50 -04:00
article {
background: #{colors.$base-950};
padding: $gutter;
padding-top: 0;
2024-06-10 04:06:12 -04:00
font-size: 1rem;
2024-06-10 14:42:50 -04:00
:first-child {
margin-top: 0;
}
2024-06-10 04:06:12 -04:00
2024-06-10 14:42:50 -04:00
h1 {
font-size: 2em;
a {
font-size: 0.5em;
2024-06-10 04:06:12 -04:00
}
}
2024-06-10 14:42:50 -04:00
h2 {
font-weight: bold;
2024-06-10 04:06:12 -04:00
}
2024-06-10 14:42:50 -04:00
*:not(li) + *:not(li) {
margin-top: 1em;
2024-06-10 04:06:12 -04:00
}
ol,
ul {
all: revert;
2024-06-10 14:42:50 -04:00
margin: #{$gutter} 0;
2024-06-10 04:06:12 -04:00
padding-left: 1em;
}
2024-06-10 14:42:50 -04:00
@include breakpoint("md") {
border: solid #{colors.$base-900};
max-height: 400px;
overflow: scroll;
}
}
a {
color: #{$link-color};
text-decoration: underline #{$link-color} 2px;
&:hover {
color: #{$link-color-hover};
}
}
}
aside {
margin-top: #{$gutter * 2};
width: #{$avatar-width};
@include breakpoint("md") {
margin-top: 0;
margin-left: #{$gutter};
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
.spacer {
height: 2em;
}
.entry-button {
margin: auto;
margin-bottom: #{$gutter};
2024-06-10 18:20:21 -04:00
image-rendering: pixelated;
font-size: 1.5em;
font-weight: bold;
&:hover {
font-style: italic;
}
&::after {
content: " >>";
color: #525252;
font-style: normal;
text-decoration: underline #{colors.$bg} 2px;
}
@include breakpoint("md") {
margin-right: 0;
}
2024-06-10 04:06:12 -04:00
}
2024-06-10 14:42:50 -04:00
.entry-button:hover {
font-style: italic;
}