124 lines
2.1 KiB
SCSS
124 lines
2.1 KiB
SCSS
|
@use "colors";
|
||
|
@use "fonts";
|
||
|
@use "mixins" as *;
|
||
|
|
||
|
/*
|
||
|
|
||
|
VARIABLES
|
||
|
===============================================================================
|
||
|
|
||
|
*/
|
||
|
$gutter: 10px;
|
||
|
$padding: $gutter;
|
||
|
$max-width: 500px;
|
||
|
$max-height: $max-width;
|
||
|
$avatar-width: 216px;
|
||
|
|
||
|
/*
|
||
|
|
||
|
COLORS
|
||
|
===============================================================================
|
||
|
|
||
|
*/
|
||
|
$fg: white;
|
||
|
$fg-logo: colors.$magenta-600;
|
||
|
$link: colors.$green-600;
|
||
|
$bg-hover: scale-color(colors.$green-400, $alpha: -75%);
|
||
|
$bg-highlight: scale-color(colors.$magenta-600, $alpha: -75%);
|
||
|
|
||
|
:root {
|
||
|
font: {
|
||
|
size: 14pt;
|
||
|
family: "Linux Libertine", "Times New Roman", Times, serif;
|
||
|
}
|
||
|
line-height: 1.25;
|
||
|
}
|
||
|
|
||
|
body {
|
||
|
background-color: #{colors.$bg};
|
||
|
width: 100vw;
|
||
|
height: 100vh;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
gap: $gutter;
|
||
|
@include breakpoint("sm") {
|
||
|
flex-direction: row;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
main {
|
||
|
article {
|
||
|
width: 100%;
|
||
|
max-width: $max-width;
|
||
|
height: auto;
|
||
|
max-height: $max-height;
|
||
|
overflow: scroll;
|
||
|
padding: #{$padding};
|
||
|
|
||
|
border: solid #{$fg};
|
||
|
color: #{$fg};
|
||
|
|
||
|
font-size: 1rem;
|
||
|
|
||
|
blockquote {
|
||
|
background: lighten(colors.$bg, $amount: 10%);
|
||
|
border-bottom: solid white;
|
||
|
padding: $gutter;
|
||
|
font-size: 1.25em;
|
||
|
|
||
|
h1 {
|
||
|
margin-top: #{$gutter};
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
h1::after {
|
||
|
content: "";
|
||
|
margin-left: #{$gutter};
|
||
|
width: 10px;
|
||
|
height: 24px;
|
||
|
background: #{$fg};
|
||
|
display: inline-block;
|
||
|
vertical-align: bottom;
|
||
|
@keyframes cursor-blink {
|
||
|
0% {
|
||
|
background: transparent;
|
||
|
}
|
||
|
50% {
|
||
|
background: #{$fg};
|
||
|
}
|
||
|
}
|
||
|
animation: cursor-blink 1.5s steps(1) infinite;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
:first-child {
|
||
|
margin-top: 0;
|
||
|
}
|
||
|
|
||
|
p {
|
||
|
margin-top: #{$gutter};
|
||
|
}
|
||
|
|
||
|
ol,
|
||
|
ul {
|
||
|
all: revert;
|
||
|
margin-bottom: 0;
|
||
|
padding-left: 1em;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
img {
|
||
|
display: block;
|
||
|
margin: auto;
|
||
|
margin-top: $gutter;
|
||
|
image-rendering: pixelated;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
aside {
|
||
|
max-width: $avatar-width;
|
||
|
image-rendering: pixelated;
|
||
|
}
|