site/src/css/global.scss

89 lines
1.4 KiB
SCSS
Raw Normal View History

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;
}
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
}
main, article {
2024-05-25 20:14:37 -04:00
padding: 1em;
margin: 0 2em;
color: $fg;
2024-05-25 20:26:19 -04:00
border: 16px solid;
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;
2023-10-24 01:40:23 -04:00
}
main :where(ol, ul), article :where(ol, ul) {
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;
}
a:hover, a:active {
background-color: $bg-hover;
}
2023-10-25 01:34:15 -04:00
a.logo, a.logo:hover, a.logo:active {
font-size: 3em;
2023-10-24 01:40:23 -04:00
color: $fg-logo;
2023-10-25 01:34:15 -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;
}
ul, ol {
margin-bottom: 1em;
}
2024-05-25 20:14:37 -04:00
footer.footer_main {
margin: 2em 0 1em 0;
text-align: center;
}
main > :last-child, header > :last-child{
margin-bottom: 0px;
2024-05-25 20:14:37 -04:00
}