blog/sass/styles.scss

172 lines
2.5 KiB
SCSS
Raw Normal View History

2025-12-23 22:27:52 +01:00
@use 'constants' as *;
@use 'theme';
@use 'shortcodes/callout';
@use 'parts/anchor';
@use 'parts/articles-index';
2025-12-23 22:27:52 +01:00
@use 'parts/articles';
2025-12-23 22:27:52 +01:00
@use 'parts/index';
@use 'parts/code';
@use 'parts/footnote';
@use 'parts/misc';
2025-12-23 22:27:52 +01:00
@use 'parts/navbar';
@use 'parts/page_title';
@use 'parts/table';
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: var(--text-font);
scroll-behavior: smooth;
}
body {
color: var(--text);
background-color: var(--base);
font-size: 1rem;
line-height: 1.75;
2025-12-23 22:27:52 +01:00
margin: 0;
}
2025-12-23 22:27:52 +01:00
main {
2025-12-23 22:27:52 +01:00
max-width: calc(var(--main-width) - 12rem);
margin-left: auto;
margin-right: auto;
}
2025-12-23 22:27:52 +01:00
@media only screen and (max-width: $smartphone) {
2025-12-23 22:27:52 +01:00
main {
2025-12-23 22:27:52 +01:00
max-width: var(--main-width);
}
}
h1 {
font-size: 2rem;
font-weight: medium;
margin-top: 2rem;
margin-bottom: 1rem;
2025-12-23 22:27:52 +01:00
&.section-title {
font-size: 3rem;
}
}
2025-12-23 22:27:52 +01:00
h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
font-weight: medium;
}
h3 {
font-size: 1.2rem;
margin-bottom: .6rem;
font-weight: medium;
}
h4 {
font-size: 1.1rem;
font-weight: medium;
}
h5 {
font-size: 1rem;
font-weight: medium;
}
h6 {
font-size: .9rem;
font-weight: medium;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
2025-12-23 22:27:52 +01:00
@media only screen and (max-width: $smartphone) {
h1 {
font-size: 1.5rem;
margin-top: 1.3rem;
2025-12-23 22:27:52 +01:00
&.section-title {
font-size: 2.2rem;
}
2025-12-23 22:27:52 +01:00
}
h2 {
font-size: 1.3rem;
margin-bottom: 1rem;
font-weight: medium;
}
h3 {
font-size: 1.1rem;
margin-bottom: .6rem;
font-weight: medium;
}
h4 {
font-size: 1rem;
font-weight: medium;
}
h5 {
font-size: .9rem;
font-weight: 700;
}
h6 {
font-size: .9rem;
font-weight: 300;
}
}
p {
margin-top: 1.25rem;
margin-bottom: 1.25rem;
}
a {
color: var(--blue);
text-decoration: underline;
text-decoration-color: color-mix(in srgb, var(--blue), transparent 40%);
text-decoration-thickness: 0.01rem;
text-underline-offset: 0.3rem;
2025-12-23 22:27:52 +01:00
&:visited {
color: var(--lavender);
}
&:hover {
color: var(--sky);
}
}
li {
&::marker {
color: var(--overlay1);
}
}
img,
video {
max-width: 100%;
height: auto;
margin-left: auto;
margin-right: auto;
display: block;
border-radius: var(--standard-border-radius);
}