personal-website/css/theme_website.css
2025-01-07 10:42:05 -05:00

217 lines
3.7 KiB
CSS

:root {
--width: 720px;
--font-family: Verdana, sans-serif;
--font-scale: 1em;
--bg-100:#e6e6e6;
--bg-200:#dcdcdc;
--bg-300:#b4b4b4;
--text-100:#000000;
--text-200:#2c2c2c;
--accent-100:#666666;
--primary-100:#1994ff;
--primary-200:#003e99;
--contrast-100:#ff8419;
}
@media (prefers-color-scheme: dark) {
:root {
--bg-100: #191919;
--bg-200: #1f1f1f;
--bg-300: #3d3d3d;
--text-100: #fdfdfd;
--text-200: #e2e2e2;
--accent-100: #454545;
--primary-100: #008866;
--primary-200: #00F0B4;
--contrast-100: #da0037;
}
}
body {
margin: 0 auto;
padding: 0 16px;
max-width: var(--width);
background-color: var(--bg-100);
font-family: var(--font-family);
font-size: var(--font-scale);
line-height: 1.5;
word-wrap: break-word;
overflow-wrap: break-word;
color: var(--text-100);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-family);
color: var(--text-200);
}
a {
color: var(--primary-200);
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-thickness: 1px;
text-decoration-style: dotted;
text-decoration-color: var(--primary-100);
}
a:hover {
text-decoration: underline;
text-decoration-style: solid;
text-decoration-color: var(--contrast-100);
}
strong, b {
color: var(--text-200);
}
code {
padding: 2px 8px;
border-radius: 3px;
background-color: var(--bg-300);
font-family: monospace;
color: var(--primary-200);
}
time {
font-family: monospace;
font-size: 15px;
font-style: normal;
color: var(--text-200);
}
blockquote {
padding: 2px 16px;
border-left: 8px solid var(--contrast-100);
background: linear-gradient(to left top, var(--bg-300), 5%, var(--bg-200));
color: var(--text-100);
font-style: italic;
}
hr {
display: block;
margin: 2rem 0;
height: 1px;
border: none;
background: var(--accent-100);
opacity: .25;
font-size: 0;
}
.highlight {
margin-left: 16px;
padding: 2px 16px;
border-left: 8px solid var(--primary-100);
background: linear-gradient(to left top, var(--bg-100), 20%, var(--bg-200));
font-family: monospace;
font-size: 14px;
margin-block-start: 1em;
margin-block-end: 1em;
overflow-x: auto;
}
img {
max-width: 120%;
margin-left: -10%;
}
table {
width: 100%;
border-collapse: collapse;
border: 1px solid var(--accent-100);
background-color: var(--bg-200);
}
th {
padding: 2px 8px;
border-right: 1px solid var(--accent-100);
border-bottom: 4px solid var(--contrast-100);
background-color: var(--bg-300);
}
td {
padding: 2px 8px;
border-right: 1px solid var(--accent-100);
}
th:last-child,
td:last-child {
border-right: none;
}
header {
margin: 2rem 0;
padding: 0;
border-bottom: 1px dotted var(--accent-100);
}
.title {
text-decoration: none;
}
.title:hover {
text-decoration: none;
}
.title h1 {
margin: 0;
padding: 0;
font-size: 1.5em;
}
.title h1:hover {
color: var(--contrast-100);
}
nav {
margin: 0;
padding: 0;
}
nav p {
margin: 8px 0 2rem;
padding: 0;
}
nav a {
margin-right: 8px;
text-decoration: none;
}
nav a:hover {
text-decoration: underline;
text-decoration-style: solid;
text-decoration-color: var(--contrast-100);
}
main {
margin: 2rem 0;
padding: 0;
line-height: 1.6;
}
footer {
margin: 2rem 0 8rem;
padding: 0;
border-top: 1px dotted var(--accent-100);
font-size: .875em;
text-align: center;
}
footer a,
footer a:hover {
text-decoration: none;
}
ul.blog-posts {
margin: 0;
padding: 0;
list-style-type: none;
}
ul.blog-posts li {
padding: 2px 0;
}
ul.blog-posts li span {
padding-right: 8px;
}
.tags {
margin-top: 2rem;
}
.tags a {
border: 1px dotted var(--primary-100);
padding: 2px 8px;
text-decoration: none;
}
.tags a:hover {
border: 1px solid var(--contrast-100);
text-decoration: none;
}