mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-27 21:12:18 +00:00
452 lines
No EOL
7.3 KiB
CSS
452 lines
No EOL
7.3 KiB
CSS
/* color and font overrides */
|
|
:root {
|
|
--code: var(--base06);
|
|
--font-monospace: 'Berkeley Mono', 'IBM Plex Mono', 'Cascadia Mono', 'Roboto Mono', 'Source Code Pro', 'Fira Mono', 'Courier New', monospace;
|
|
}
|
|
|
|
/* load preferred font */
|
|
@font-face {
|
|
font-family: 'Berkeley Mono';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-display: fallback;
|
|
src: local('Berkeley Mono'),
|
|
url('https://cdn.runtimeterror.dev/fonts/BerkeleyMono-Regular.woff2') format('woff2'),
|
|
}
|
|
|
|
/* minor layout tweaks */
|
|
.page {
|
|
max-width: 72rem;
|
|
}
|
|
|
|
.page__body {
|
|
margin: 1rem;
|
|
}
|
|
|
|
.page__aside {
|
|
margin: 0 1rem 0 0;
|
|
}
|
|
|
|
|
|
/* logo tweaks */
|
|
.page__logo {
|
|
color: var(--off-fg);
|
|
}
|
|
|
|
.page__logo-inner {
|
|
opacity: 0.80;
|
|
}
|
|
|
|
/* Footer tweaks */
|
|
.footer_slashes {
|
|
font-size: 14px;
|
|
line-height: 1.1rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.footer_slashes a:link, .footer_slashes a:visited {
|
|
color: var(--link);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.footer_links, .copyright {
|
|
font-size: 12px;
|
|
line-height: 1.1rem;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.footer_links a:link, .footer_links a:visited,
|
|
.copyright a:link, .copyright a:visited{
|
|
color: var(--off-fg);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.footer_links a:hover,
|
|
.footer_slashes a:hover,
|
|
.copyright a:hover {
|
|
color: var(--hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Notice CSS Built on hugo-notice by Nicolas Martignoni: https://github.com/martignoni/hugo-notice */
|
|
.notice {
|
|
--root-color: #444;
|
|
--root-background: #eff;
|
|
--title-color: #fff;
|
|
--title-background: #7bd;
|
|
--warning-title: #c33;
|
|
--warning-content: #fee;
|
|
--info-title: #fb7;
|
|
--info-content: #fec;
|
|
--note-title: #6be;
|
|
--note-content: #e7f2fa;
|
|
--tip-title: #5a5;
|
|
--tip-content: #efe;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.notice {
|
|
--root-color: #ddd;
|
|
--root-background: #eff;
|
|
--title-color: #fff;
|
|
--title-background: #7bd;
|
|
--warning-title: #800;
|
|
--warning-content: #400;
|
|
--info-title: #a50;
|
|
--info-content: #420;
|
|
--note-title: #069;
|
|
--note-content: #023;
|
|
--tip-title: #363;
|
|
--tip-content: #121;
|
|
}
|
|
}
|
|
|
|
body.dark .notice {
|
|
--root-color: #ddd;
|
|
--root-background: #eff;
|
|
--title-color: #fff;
|
|
--title-background: #7bd;
|
|
--warning-title: #800;
|
|
--warning-content: #400;
|
|
--info-title: #a50;
|
|
--info-content: #420;
|
|
--note-title: #069;
|
|
--note-content: #023;
|
|
--tip-title: #363;
|
|
--tip-content: #121;
|
|
}
|
|
|
|
.notice {
|
|
padding: 18px;
|
|
line-height: 24px;
|
|
margin-bottom: 24px;
|
|
border-radius: 4px;
|
|
color: var(--root-color);
|
|
background: var(--root-background);
|
|
}
|
|
|
|
.notice p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.notice-title {
|
|
margin: -18px -18px 12px;
|
|
padding: 4px 18px;
|
|
border-radius: 4px 4px 0 0;
|
|
font-weight: 700;
|
|
color: var(--title-color);
|
|
background: var(--title-background);
|
|
}
|
|
|
|
.notice.warning .notice-title {
|
|
background: var(--warning-title);
|
|
}
|
|
|
|
.notice.warning {
|
|
background: var(--warning-content);
|
|
}
|
|
|
|
.notice.info .notice-title {
|
|
background: var(--info-title);
|
|
}
|
|
|
|
.notice.info {
|
|
background: var(--info-content);
|
|
}
|
|
|
|
.notice.note .notice-title {
|
|
background: var(--note-title);
|
|
}
|
|
|
|
.notice.note {
|
|
background: var(--note-content);
|
|
}
|
|
|
|
.notice.tip .notice-title {
|
|
background: var(--tip-title);
|
|
}
|
|
|
|
.notice.tip {
|
|
background: var(--tip-content);
|
|
}
|
|
|
|
.icon-notice {
|
|
display: inline-flex;
|
|
align-self: center;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.icon-notice img,
|
|
.icon-notice svg {
|
|
height: 1em;
|
|
width: 1em;
|
|
fill: currentColor;
|
|
}
|
|
|
|
.icon-notice img,
|
|
.icon-notice.baseline svg {
|
|
top: 0.125em;
|
|
position: relative;
|
|
}
|
|
|
|
/* pagination overrides */
|
|
ul.pagination li::marker {
|
|
content:'';
|
|
}
|
|
|
|
ul.pagination li {
|
|
margin: 0 0.25rem;
|
|
}
|
|
|
|
.pagination {
|
|
display:flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* statuslol overrides */
|
|
.statuslol {
|
|
background: var(--off-bg) !important;
|
|
flex-direction:column
|
|
}
|
|
|
|
.statuslol_emoji_container {
|
|
font-size: 1.5em !important;
|
|
}
|
|
|
|
.statuslol_content p,
|
|
.statuslol_content li,
|
|
.statuslol_content em,
|
|
.statuslol_content strong {
|
|
overflow-wrap: inherit;
|
|
font-size: 0.8em;
|
|
line-height:normal;
|
|
margin: 0.8em auto;
|
|
color: var(--fg);
|
|
}
|
|
|
|
.statuslol_time a:link,
|
|
.statuslol_time a:visited {
|
|
color: var(--link) !important;
|
|
}
|
|
|
|
.statuslol_time a:hover,
|
|
.statuslol_time a:active {
|
|
color: var(--hover) !important;
|
|
}
|
|
|
|
small[style^="opacity: .5"] {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
/* recentfm styling */
|
|
.recent-played {
|
|
background: var(--off-bg) !important;
|
|
flex-direction:column;
|
|
border-radius: 0.5em;
|
|
padding: 0.5em;
|
|
}
|
|
|
|
.recent-played-track {
|
|
margin: 0.5em 0;
|
|
}
|
|
|
|
/* code overrides */
|
|
pre,
|
|
code,
|
|
kbd,
|
|
samp {
|
|
color: var(--code);
|
|
}
|
|
|
|
/* search box styling */
|
|
form {
|
|
display: flex;
|
|
flex-direction: row;
|
|
border-radius: 0.25rem;
|
|
outline: 0.25rem solid var(--bg);
|
|
width: 240px;
|
|
transition: width .2s ease-in-out, outline .2s ease-in-out;
|
|
}
|
|
|
|
input {
|
|
flex-grow: 2;
|
|
border: none;
|
|
background-color: var(--off-bg);
|
|
color: var(--off-fg);
|
|
height: 1.5rem;
|
|
border-radius: 0.25rem 0 0 0.25rem;
|
|
padding-left: 0.5rem;
|
|
font-family: var(--font-monospace);
|
|
}
|
|
|
|
form {
|
|
width:auto;
|
|
}
|
|
|
|
input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
form:focus-within {
|
|
outline: 1px solid var(--logo);
|
|
width: 100%;
|
|
}
|
|
|
|
form button {
|
|
outline: none;
|
|
border: none;
|
|
background-color: var(--off-bg);
|
|
color: var(--link);
|
|
}
|
|
|
|
/* tags list styling */
|
|
.tagsArchive {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
|
|
grid-gap: 0.5rem;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.tagsArchive sup {
|
|
font-size: 0.75rem;
|
|
margin-left: 0.2rem;
|
|
margin-right: 0.5rem;
|
|
}
|
|
|
|
.date {
|
|
font-size: 0.8rem;
|
|
color: var(--off-fg);
|
|
}
|
|
|
|
/* blockquote styling */
|
|
blockquote {
|
|
font-style: italic;
|
|
border-left: 0.25rem solid var(--logo);
|
|
padding-left: 0.25rem;
|
|
}
|
|
|
|
/* post front matter styling*/
|
|
.frontmatter hr {
|
|
margin-bottom: 0rem;
|
|
margin-top: 0rem;
|
|
}
|
|
|
|
.frontmatter h1 {
|
|
margin-top: 0rem;
|
|
}
|
|
|
|
.frontmatter .label {
|
|
color: var(--off-fg);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.frontmatter .title {
|
|
color: var(--fg);
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.frontmatter table {
|
|
overflow-wrap: break-word;
|
|
margin-bottom: 0rem;
|
|
}
|
|
|
|
.frontmatter_tags {
|
|
font-size: 0.8rem;
|
|
color: var(--off-fg);
|
|
}
|
|
|
|
/* back-to-top styling */
|
|
#back-to-top {
|
|
background: var(--inner-bg);
|
|
height: 56px;
|
|
width: 56px;
|
|
}
|
|
|
|
#back-to-top svg {
|
|
fill: var(--link);
|
|
}
|
|
|
|
/* footnote link styling */
|
|
.footnote-backref {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* hr override */
|
|
hr {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
/* no extra space for paragraphs with lists */
|
|
p:not(:has(+ ol)),
|
|
p:not(:has(+ ul)) {
|
|
margin-bottom: 1.5em;
|
|
}
|
|
|
|
p:has(+ ol),
|
|
p:has(+ ul) {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* tagline tweaks */
|
|
#tagline_container {
|
|
height: 3rem;
|
|
}
|
|
|
|
#tagline {
|
|
font-size: 0.8rem;
|
|
line-height: 0.8rem;
|
|
}
|
|
|
|
#tagline::after {
|
|
content: "";
|
|
width: 0.5rem;
|
|
height: 1rem;
|
|
background: var(--muted);
|
|
display: inline-block;
|
|
margin-left: 0.2rem;
|
|
vertical-align: text-bottom;
|
|
animation: cursor-blink 1.5s steps(2) infinite;
|
|
}
|
|
|
|
@keyframes cursor-blink {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
/* Cabin kudos styling */
|
|
.kudos-container {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.kudos-button {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
padding: 0;
|
|
margin-right: 0.25rem;
|
|
}
|
|
|
|
.kudos-button:disabled {
|
|
cursor: default;
|
|
}
|
|
|
|
.kudos-button .emoji {
|
|
display: inline-block;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.kudos-button.clicked .emoji {
|
|
transform: rotate(360deg);
|
|
}
|
|
|
|
.kudos-text {
|
|
transition: font-style 0.3s ease;
|
|
}
|
|
|
|
.kudos-text.thanks {
|
|
font-style: italic;
|
|
} |