site/src/css/global.scss

131 lines
1.9 KiB
SCSS
Raw Normal View History

2024-05-25 22:01:34 -04:00
@use "mixins" as *;
2023-10-24 01:40:23 -04:00
@use "colors";
@use "fonts";
/*
Colors
======
*/
2024-05-25 20:14:37 -04:00
$bg: colors.$base-800;
2023-10-24 01:40:23 -04:00
$fg: scale-color(colors.$magenta-600, $lightness: -20%);
$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%);
body {
2024-05-25 20:14:37 -04:00
background-color: colors.$base-800;
color: colors.$paper;
2023-10-24 01:40:23 -04:00
font-family: Alkhemikal;
font-size: 1.5rem;
}
::selection {
background: $bg-highlight;
}
2024-05-26 12:01:17 -04:00
h1, h2, h3, h4, h5, h6 {
text-align: center;
@include breakpoint("sm") {
text-align: left;
}
}
2023-10-24 01:40:23 -04:00
h1 {
2024-05-25 17:36:34 -04:00
font-size: 3rem;
2023-10-24 01:40:23 -04:00
}
h2 {
2024-05-25 17:36:34 -04:00
font-size: 2.5rem;
2023-10-24 01:40:23 -04:00
}
2024-05-26 12:01:17 -04:00
h3 {
font-size: 2rem;
}
2024-05-25 22:01:34 -04:00
main,
article {
2024-05-25 20:14:37 -04:00
padding: 1em;
color: $fg;
border: 16px solid colors.$paper;
2024-05-25 20:14:37 -04:00
border-image: url(../img/nine-patch.png) 32 round;
-webkit-border-image: url(../img/nine-patch.png) 32 round;
background-color: colors.$paper;
box-shadow: 0px 0px 20px colors.$black;
2024-05-25 22:01:34 -04:00
@include breakpoint("sm") {
margin: 0 2em;
}
2023-10-24 01:40:23 -04:00
}
2024-05-25 22:01:34 -04:00
main :where(ol, ul),
article :where(ol, ul) {
2023-10-24 01:40:23 -04:00
all: revert;
margin: 0;
}
2023-10-25 01:34:15 -04:00
header.header_main {
text-align: center;
}
2023-10-24 01:40:23 -04:00
a {
color: $link;
border-radius: 10px;
}
2024-05-25 22:01:34 -04:00
a:hover,
a:active {
2023-10-24 01:40:23 -04:00
background-color: $bg-hover;
}
2024-05-25 22:01:34 -04:00
a.logo,
a.logo:hover,
a.logo:active {
2023-10-25 01:34:15 -04:00
font-size: 3em;
2023-10-24 01:40:23 -04:00
color: $fg-logo;
2024-05-25 22:01:34 -04:00
text-decoration: none;
2023-10-24 01:40:23 -04:00
}
.navbar :where(li) {
display: inline-flex;
2023-10-25 01:34:15 -04:00
}
2024-05-25 17:36:34 -04:00
p {
line-height: 1.5;
margin-bottom: 1em;
}
2024-05-25 22:01:34 -04:00
ul,
ol {
2024-05-25 17:36:34 -04:00
margin-bottom: 1em;
}
2024-05-25 20:14:37 -04:00
footer.footer_main {
2024-05-25 22:01:34 -04:00
margin: 2em 1em 1em 1em;
2024-05-25 20:14:37 -04:00
text-align: center;
}
2024-05-25 22:01:34 -04:00
main > :last-child,
header > :last-child {
margin-bottom: 0px;
2024-05-25 22:01:34 -04:00
}
.float-right {
2024-05-25 22:08:40 -04:00
margin: auto;
margin-bottom: 1em;
width: 100%;
2024-05-25 22:01:34 -04:00
height: auto;
2024-05-25 22:08:40 -04:00
max-width: 288px;
@include breakpoint("md") {
float: right;
margin-left: 1em;
2024-05-25 22:01:34 -04:00
}
}
2024-05-26 01:22:21 -04:00
2024-05-26 12:01:17 -04:00
.sigil {
display: block;
@include breakpoint("sm") {
display: inline;
vertical-align: text-bottom;
}
}