You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
2.4 KiB
HTML
104 lines
2.4 KiB
HTML
{{ $page := . }}
|
|
|
|
<style>
|
|
{{ if templates.Exists "partials/paige/style-first.css" }}
|
|
{{ partial "paige/style-first.css" $page | safeCSS }}
|
|
{{ end }}
|
|
|
|
body, html {
|
|
height: 100%;
|
|
}
|
|
|
|
.highlight .chroma .hl, .highlight .chroma .lnt {
|
|
display: flex;
|
|
}
|
|
|
|
.paige-content {
|
|
counter-reset: paige-figure;
|
|
}
|
|
|
|
.paige-content .paige-figure.paige-figure-numbered {
|
|
counter-increment: paige-figure;
|
|
}
|
|
|
|
.paige-content .paige-figure.paige-figure-numbered figcaption:empty::before {
|
|
content: "{{ i18n `paige_figure` | safeCSS }} " counter(paige-figure);
|
|
}
|
|
|
|
.paige-content .paige-figure.paige-figure-numbered figcaption::before {
|
|
content: "{{ i18n `paige_figure` | safeCSS }} " counter(paige-figure) ": ";
|
|
}
|
|
|
|
.paige-content > blockquote {
|
|
padding: 0.5rem 1rem;
|
|
border-left: 0.25rem solid var(--bs-border-color);
|
|
padding-right: 0.25rem;
|
|
}
|
|
|
|
.paige-content > blockquote p:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.paige-figure .highlight .chroma pre, .paige-figure .highlight pre.chroma {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.paige-figure > div > .highlight > pre, .paige-figure > div > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.paige-figure .paige-quote > blockquote {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.paige-header-link {
|
|
margin-left: 0.5ch;
|
|
opacity: 0;
|
|
position: absolute;
|
|
text-decoration: none;
|
|
transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.paige-header-link {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
.paige-header-link:focus, .paige-header-link:hover, :hover > .paige-header-link, :target > .paige-header-link {
|
|
opacity: 1;
|
|
}
|
|
|
|
{{ with $page.Param "paige.max_width" }}
|
|
#paige-root {
|
|
max-width: {{ . | safeCSS }};
|
|
}
|
|
{{ end }}
|
|
|
|
{{ with $page.Param "paige.color_scheme" }}
|
|
{{ if eq . "dark" }}
|
|
{{ partial "paige/dark.css" . | safeCSS }}
|
|
{{ else if eq . "light" }}
|
|
{{ partial "paige/light.css" . | safeCSS }}
|
|
{{ else }}
|
|
{{ errorf "invalid color scheme: %q" . }}
|
|
{{ end }}
|
|
{{ else }}
|
|
@media (prefers-color-scheme: dark) {
|
|
{{ partial "paige/dark.css" $page | safeCSS }}
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
{{ partial "paige/light.css" $page | safeCSS }}
|
|
}
|
|
{{ end }}
|
|
|
|
{{ with $page.Param "paige.style" }}
|
|
{{ . | safeCSS }}
|
|
{{ end }}
|
|
|
|
{{ if templates.Exists "partials/paige/style-last.css" }}
|
|
{{ partial "paige/style-last.css" $page | safeCSS }}
|
|
{{ end }}
|
|
</style>
|