ParkerTenBroeck.github.io/sass/style.scss
ParkerTenBroeck 5df85e391a updated style
2026-04-29 23:18:50 -04:00

224 lines
No EOL
3.1 KiB
SCSS

@use "theme.scss";
@use "header.scss";
@use "footer.scss";
@use "blog.scss";
@use "fonts.scss";
@use "lightbox.scss";
@use "gallery.scss";
.z-code{
overflow-x: auto;
}
body {
background: var(--bg-0);
color: var(--fg-1);
font-size: 16px;
line-height: 1.6em;
letter-spacing: .5px;
}
::selection {
background: var(--text-highlight);
color: var(--fg-0);
}
.content {
margin-bottom: 4em;
margin-left: auto;
margin-right: auto;
max-width: min(800px, 100%);
padding: 0 0.5em;
}
@media screen and (min-width: 978px) {
.content {
margin-left: 4rem;
}
}
a {
color: var(--fg-0);
font-weight: bold;
text-decoration: underline;
text-decoration-thickness: 0.30ex;
text-decoration-color: var(--grey-light);
&:hover {
text-decoration-color: var(--primary);
}
&:has(img),
&:has(video) {
text-decoration: none;
}
}
.zola-anchor{
text-decoration-thickness: 0.05ex;
}
img,video {
background-color: var(--grey-dark);
}
.badge-88x31 {
width: 176px;
height: 62px;
image-rendering: auto;
image-rendering: crisp-edges;
image-rendering: pixelated;
image-rendering: -webkit-optimize-contrast;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--fg-0);
font-weight: bold;
margin-top: 2em;
line-height: 1.4em;
}
h1 {
font-size: 2rem;
}
h2 {
font-size: 1.4rem;
}
h3 {
font-size: 1.2rem;
}
h4 {
font-size: 1.1rem;
}
h5 {
font-size: 1rem;
}
h6 {
font-size: 1rem;
}
code:not([data-lang]) {
background: var(--grey-dark);
border-radius: 3px;
padding: .15rem .3rem;
}
time {
padding-bottom: 1em;
color: var(--fg-2);
}
figure {
align-items: center;
display: flex;
flex-direction: column;
}
figure {
margin: 2rem 0;
text-align: center;
}
figure > * {
max-width: 100%;
height: auto;
border-radius: 6px;
}
@media screen and (min-width: 700px) {
figure > * {
max-width: 80%;
height: auto;
border-radius: 6px;
}
}
figure figcaption {
max-width: 80%;
margin-top: 0.5rem;
font-size: 0.9rem;
color: var(--fg-muted);
}
table {
width: 100%;
margin: 2rem 0;
border-collapse: collapse;
display: block;
overflow-x: auto;
font-size: 0.95rem;
}
th,
td {
padding: 0.2rem 0.5rem;
border: 1px solid var(--grey-light);
text-align: left;
vertical-align: top;
}
th {
color: var(--fg-0);
background: var(--grey-dark);
}
blockquote {
--blockquote-color: var(--fg-2);
border-left: solid 3px var(--blockquote-color);
padding-left: 20px;
margin-left: 10px;
&::before{
content: "";
display: block;
font-weight: bold;
color: var(--blockquote-color);
}
}
.markdown-alert-note {
--blockquote-color: var(--blue);
&::before{
content: "Note"!important;
}
}
.markdown-alert-tip {
--blockquote-color: var(--green);
&::before{
content: "Tip";
}
}
.markdown-alert-important {
--blockquote-color: var(--purple);
&::before {
content: "Important";
}
}
.markdown-alert-warning {
--blockquote-color: var(--yellow);
&::before{
content: "Warning";
}
}
.markdown-alert-caution {
--blockquote-color: var(--red);
&::before{
content: "Caution";
}
}