site/src/scss/landing.scss

83 lines
1.1 KiB
SCSS
Raw Normal View History

2024-06-19 02:24:06 -04:00
// landing.scss
/* IMPORTS ================================================================= */
2024-06-10 14:42:50 -04:00
@use "sass:math";
2024-06-19 20:21:44 -04:00
2024-06-20 01:45:23 -04:00
@use "modules/include-media" as *;
2024-06-10 04:06:12 -04:00
2024-06-20 01:45:23 -04:00
@use "markup" as *;
2024-06-19 02:24:06 -04:00
@use "vars" as *;
2024-06-19 20:21:44 -04:00
@use "colors";
@use "fonts";
2024-06-18 14:47:06 -04:00
2024-06-11 02:50:50 -04:00
html {
2024-06-10 04:06:12 -04:00
font: {
2024-06-19 02:24:06 -04:00
size: $font-base-size;
family: $font-stack-serif;
2024-06-10 04:06:12 -04:00
}
}
body {
2024-06-18 14:47:06 -04:00
display: grid;
2024-06-18 15:57:09 -04:00
padding: $gutter * 2;
2024-06-19 20:21:44 -04:00
@include media(">md") {
2024-06-18 15:57:09 -04:00
grid-template-columns: 2fr 3fr 2fr;
gap: $gutter;
2024-06-18 14:47:06 -04:00
height: 100%;
2024-06-18 15:57:09 -04:00
padding: ($gutter * 2) 0;
}
}
nav {
2024-06-18 14:47:06 -04:00
grid-row: 1;
grid-column: 1;
justify-self: right;
align-self: end;
2024-06-18 15:57:09 -04:00
font-size: 1.5em;
font-weight: bold;
2024-06-19 20:21:44 -04:00
@include media(">md") {
2024-06-18 15:57:09 -04:00
grid-column: 2;
}
2024-06-18 14:47:06 -04:00
a {
&:hover {
font-style: italic;
}
&::after {
content: " >>";
font-style: normal;
}
2024-06-10 04:06:12 -04:00
}
}
main {
2024-06-19 20:21:44 -04:00
@include media(">md") {
2024-06-18 14:47:06 -04:00
grid-row: 2;
grid-column: 2;
justify-self: center;
2024-06-10 18:25:56 -04:00
}
2024-06-10 14:42:50 -04:00
article {
2024-06-18 14:47:06 -04:00
padding: 0;
2024-06-18 15:57:09 -04:00
font-size: 1rem;
2024-06-18 14:47:06 -04:00
h1 {
margin-top: 0;
2024-06-10 18:41:15 -04:00
}
2024-06-18 14:47:06 -04:00
}
}
2024-06-10 18:41:15 -04:00
2024-06-18 14:47:06 -04:00
aside {
grid-row: 1;
grid-column: 1;
max-width: 192px;
2024-06-19 20:21:44 -04:00
@include media(">md") {
2024-06-18 15:57:09 -04:00
grid-column: 2;
}
2024-06-18 14:47:06 -04:00
img {
image-rendering: pixelated;
2024-06-10 14:42:50 -04:00
}
}