website/_includes/styles/base.scss

87 lines
1.3 KiB
SCSS
Raw Normal View History

2023-07-23 20:21:43 -04:00
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
font-weight: normal;
}
body {
color: var(--color-fg);
background: var(--color-bg);
transition: color 0.5s, background-color 0.5s;
font-family: var(--font--sans-serif);
2023-07-23 20:21:43 -04:00
font-size: var(--text-base);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
2023-07-26 23:03:23 -04:00
p {
margin-bottom: 1rem;
&:only-child, &:last-child {
margin-bottom: 0;
}
}
2023-07-23 20:21:43 -04:00
a {
color: var(--color-links);
}
img {
width: 100%;
}
ol, ul {
2023-07-25 02:59:32 -04:00
list-style: disc;
li {
margin-bottom: 0.4rem;
&:last-of-type {
margin-bottom: 0;
}
}
}
hr {
height: 1px;
background-color: var(--color-black);
border: none;
margin-top: 1rem;
margin-bottom: 1rem;
}
h1, h2, h3, h4, h5, h6 {
color: var(--color-blue);
font-weight: bold;
}
section {
padding: 1rem;
margin: 0 auto;
max-width: var(--page--max-width);
2023-07-25 02:59:32 -04:00
& > * {
margin-bottom: 1rem;
}
& > *:last-child {
margin-bottom: 0;
}
}
pre {
padding: 1rem;
border-radius: 5px;
display: block;
background-color: var(--color-bg--layer-01);
overflow: auto;
page-break-inside: avoid;
word-wrap: break-word;
font-family: var(--font--mono);
2023-07-25 02:59:32 -04:00
code {
font-family: var(--font--mono);
2023-07-25 02:59:32 -04:00
}
}
2023-07-26 21:50:00 -04:00
.inline {
display: inline;
}