updated css

This commit is contained in:
Daniel Fichtinger 2025-07-13 16:03:58 -04:00
parent 301210fde8
commit 5611df962e

View file

@ -1,20 +1,20 @@
:root { :root {
--main-text-color: #b4b4b4; --main-text-color: #b4b4b4;
--main-bg-color: #121212; --main-bg-color: #121212;
--main-link-color: #df6464; --main-link-color: #df6464;
--main-heading-color: #df6464; --main-heading-color: #df6464;
--main-bullet-color: #d87c4a; --main-bullet-color: #d87c4a;
--main-transparent: rgba(255, 255, 255, 0.15); --main-transparent: rgba(255, 255, 255, 0.15);
--main-small-text-color: rgba(255, 255, 255, 0.45); --main-small-text-color: rgba(255, 255, 255, 0.45);
} }
body { body {
line-height: 1.6; line-height: 1.6;
font-size: 18px; font-size: 18px;
font-family: sans-serif; font-family: sans-serif;
background: var(--main-bg-color); background: var(--main-bg-color);
color: var(--main-text-color); color: var(--main-text-color);
padding-left: calc(100vw - 100%); padding-left: calc(100vw - 100%);
} }
.toclink { .toclink {
@ -63,277 +63,312 @@ h3,
h4, h4,
h5, h5,
h6 { h6 {
color: var(--main-heading-color); color: var(--main-heading-color);
} }
h1 { h1 {
margin-block-start: 0.67rem; margin-block-start: 0.67rem;
margin-block-end: 0.67rem; margin-block-end: 0.67rem;
font-size: 2rem; font-size: 2rem;
font-weight: bold; font-weight: bold;
} }
article h1:first-of-type { article h1:first-of-type {
margin-block-start: 1.67rem; margin-block-start: 1.67rem;
} }
h2 { h2 {
margin-block-start: 0.83rem; margin-block-start: 0.83rem;
margin-block-end: 0.83rem; margin-block-end: 0.83rem;
font-size: 1.5rem; font-size: 1.5rem;
font-weight: bold; font-weight: bold;
} }
h3 { h3 {
margin-block-start: 1rem; margin-block-start: 1rem;
margin-block-end: 1rem; margin-block-end: 1rem;
font-size: 1.17em; font-size: 1.17em;
font-weight: bold; font-weight: bold;
} }
h4 { h4 {
margin-block-start: 1.33rem; margin-block-start: 1.33rem;
margin-block-end: 1.33rem; margin-block-end: 1.33rem;
font-size: 1rem; font-size: 1rem;
font-weight: bold; font-weight: bold;
} }
article h1+h4:first-of-type { article h1 + h4:first-of-type {
margin-block-start: 0rem; margin-block-start: 0rem;
} }
h5 { h5 {
margin-block-start: 1.67rem; margin-block-start: 1.67rem;
margin-block-end: 1.67rem; margin-block-end: 1.67rem;
font-size: 0.83rem; font-size: 0.83rem;
font-weight: bold; font-weight: bold;
} }
h6 { h6 {
margin-block-start: 2.33rem; margin-block-start: 2.33rem;
margin-block-end: 2.33rem; margin-block-end: 2.33rem;
font-size: 0.67rem; font-size: 0.67rem;
font-weight: bold; font-weight: bold;
} }
ul { ul {
list-style-type: disc; list-style-type: disc;
/* or any other list style */ /* or any other list style */
} }
li::marker { li::marker {
color: var(--main-bullet-color); color: var(--main-bullet-color);
/* Change this to your desired color */ /* Change this to your desired color */
} }
a { a {
color: var(--main-link-color); color: var(--main-link-color);
text-decoration: underline;
} }
a:hover { a:hover {
background: var(--main-transparent); background: var(--main-transparent);
} }
max-width: 100%; max-width: 100%;
overflow: hidden; overflow: hidden;
img { img {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
width: auto; width: auto;
height: auto; height: auto;
} }
blockquote { blockquote {
color: var(--main-small-text-color); color: var(--main-small-text-color);
border-left: 3px solid var(--main-transparent); border-left: 3px solid var(--main-transparent);
padding: 0 1rem; padding: 0 1rem;
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }
hr { hr {
border: none; border: none;
height: 1px; height: 1px;
background: var(--main-small-text-color); background: var(--main-small-text-color);
} }
code { code {
background: var(--main-transparent); background: var(--main-transparent);
border-radius: 0.1875rem; border-radius: 0.1875rem;
/* padding: .0625rem .1875rem; */ /* padding: .0625rem .1875rem; */
/* margin: 0 .1875rem; */ /* margin: 0 .1875rem; */
} }
code, code,
pre { pre {
white-space: pre; white-space: pre;
word-wrap: break-word; word-wrap: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
font-family: monospace; font-family:
font-size: 0.95em; ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 0.95em;
} }
pre { pre {
background-color: #151515; background-color: #151515;
color: #d5d5d5; color: #d5d5d5;
padding: 1em; padding: 1em;
border-radius: 5px; border-radius: 5px;
line-height: 1.5; line-height: 1.5;
overflow-x: auto; overflow-x: auto;
} }
/* Inline code styling */ /* Inline code styling */
:not(pre) > code { :not(pre) > code {
padding: 0.2em 0.4em; padding: 0.2em 0.4em;
border-radius: 3px; font-size: 0.85em;
background-color: #1d1d1d; line-height: 1;
color: #d5d5d5; background-color: #1d1d1d;
font-size: 0.85em; border-radius: 6px;
vertical-align: middle;
font-family:
ui-monospace,
SFMono-Regular,
SF Mono,
Menlo,
Consolas,
Liberation Mono,
monospace;
} }
/* Block code styling (inherits from pre) */ /* Block code styling (inherits from pre) */
pre code { pre code {
padding: 0; padding: 0;
border-radius: 0; border-radius: 0;
background: none; background: none;
} }
small { small {
font-size: 0.95rem; font-size: 0.95rem;
color: var(--main-small-text-color); color: var(--main-small-text-color);
} }
small a { small a {
color: inherit; color: inherit;
/* Inherit the color of the surrounding <small> text */ /* Inherit the color of the surrounding <small> text */
text-decoration: underline; text-decoration: underline;
/* Optional: Keep the underline to indicate a link */ /* Optional: Keep the underline to indicate a link */
} }
.title-container { .title-container {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
text-align: center; text-align: center;
} }
.title-container h1 { .title-container h1 {
margin: 0; margin: 0;
} }
.image-container { .image-container {
text-align: center; text-align: center;
margin: 20px 0; margin: 20px 0;
max-width: 100%; max-width: 100%;
overflow: hidden; overflow: hidden;
/* Optional: add some spacing around the image container */ /* Optional: add some spacing around the image container */
} }
.image-container img { .image-container img {
max-width: 100%; max-width: 100%;
width: auto; width: auto;
max-height: 100%; max-height: 100%;
height: auto; height: auto;
} }
.fixed .image-container img { .fixed .image-container img {
max-width: 308px; max-width: 308px;
max-height: 308px; max-height: 308px;
} }
.image-container small { .image-container small {
display: block; display: block;
/* Ensure the caption is on a new line */ /* Ensure the caption is on a new line */
margin-top: 5px; margin-top: 5px;
/* Optional: adjust spacing between image and caption */ /* Optional: adjust spacing between image and caption */
} }
.image-container small a { .image-container small a {
color: inherit; color: inherit;
/* Ensure the link color matches the small text */ /* Ensure the link color matches the small text */
text-decoration: underline; text-decoration: underline;
/* Optional: underline to indicate a link */ /* Optional: underline to indicate a link */
} }
#header ul { #header ul {
list-style-type: none; list-style-type: none;
padding-left: 0; padding-left: 0;
} }
#header li { #header li {
display: inline; display: inline;
font-size: 1.2rem; font-size: 1.2rem;
margin-right: 1.2rem; margin-right: 1.2rem;
} }
#container { #container {
margin: 2.5rem auto; margin: 2.5rem auto;
width: 90%; width: 90%;
max-width: 60ch; max-width: 60ch;
} }
#postlistdiv ul { #postlistdiv ul {
list-style-type: none; list-style-type: none;
padding-left: 0; padding-left: 0;
} }
.moreposts { .moreposts {
font-size: 0.95rem; font-size: 0.95rem;
padding-left: 0.5rem; padding-left: 0.5rem;
} }
#nextprev { #nextprev {
text-align: center; text-align: center;
margin-top: 1.4rem; margin-top: 1.4rem;
font-size: 0.95rem; font-size: 0.95rem;
} }
#footer { #footer {
color: var(--main-small-text-color); color: var(--main-small-text-color);
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
margin: 1.5rem auto; margin: 1.5rem auto;
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
font-size: 0.85rem; font-size: 0.85rem;
text-align: left; /* Use center if you prefer */ text-align: left; /* Use center if you prefer */
} }
th, td { th, td {
border: 1px solid var(--main-transparent); border: 1px solid var(--main-transparent);
/*border: 1px solid var(--main-bullet-color);*/ /*border: 1px solid var(--main-bullet-color);*/
padding: 0.4rem 0.8rem; padding: 0.4rem 0.8rem;
vertical-align: middle; vertical-align: middle;
} }
thead th { thead th {
font-weight: bold; font-weight: bold;
background-color: rgba(255, 255, 255, 0.05); background-color: rgba(255, 255, 255, 0.05);
color: var(--main-text-color); color: var(--main-text-color);
} }
tbody tr:nth-child(even) { tbody tr:nth-child(even) {
background-color: rgba(255, 255, 255, 0.02); background-color: rgba(255, 255, 255, 0.02);
} }
tbody tr:hover { tbody tr:hover {
background-color: rgba(255, 255, 255, 0.05); background-color: rgba(255, 255, 255, 0.05);
} }
table code { table code {
font-family: monospace; font-family:
font-size: 0.85em; ui-monospace,
background: #1d1d1d; SFMono-Regular,
padding: 0.1em 0.25em; SF Mono,
border-radius: 3px; Menlo,
Consolas,
Liberation Mono,
monospace;
font-size: 0.85em;
background: #1d1d1d;
padding: 0.1em 0.25em;
border-radius: 3px;
} }
caption { caption {
margin-top: 0.5rem; margin-top: 0.5rem;
font-size: 0.8rem; font-size: 0.8rem;
color: var(--main-small-text-color); color: var(--main-small-text-color);
} }
a > code {
text-decoration: none;
color: inherit;
}
a:has(> code) {
text-decoration: none;
}
a:hover > code {
background-color: var(--main-transparent);
}