hazelnut.dev/static/style.css

232 lines
3.3 KiB
CSS
Raw Normal View History

2020-12-21 14:49:03 +00:00
:root {
--background: #2d2d2d;
--foreground: #d3d0c8;
--decoration: #747369;
--link-underline: #cd98cd;
--link-fancy: #ffcd5d;
--background-alt: #353535;
--fontset: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
Bitstream Vera Sans Mono, Courier New, monospace, serif;
}
2020-09-09 01:10:48 +00:00
html {
2020-12-21 14:49:03 +00:00
font-size: 16px;
2021-03-25 07:01:36 +00:00
background-color: #222222;
2020-09-09 01:10:48 +00:00
}
body {
2020-12-21 14:49:03 +00:00
margin: auto;
max-width: 80ch;
font-size: 1rem;
line-height: 1.6;
font-family: var(--fontset);
color: var(--foreground);
background-color: var(--background);
padding: 1rem;
}
2021-02-26 19:02:34 +00:00
code {
background-color: #454545;
padding: 0 0.25ch;
2021-03-24 22:21:56 +00:00
padding-top: 0.5ch;
border: 1px solid var(--decoration);
2020-12-21 14:49:03 +00:00
}
2021-03-25 07:01:36 +00:00
strong {
text-decoration: underline;
}
2020-12-21 14:49:03 +00:00
h1,
h2,
h3 {
font-weight: bold;
font-size: 1em;
2021-02-26 19:02:34 +00:00
margin-bottom: 0;
2020-09-09 01:10:48 +00:00
}
2020-12-21 14:49:03 +00:00
h1.site-title {
2021-03-25 07:01:36 +00:00
margin-top: 0;
font-size: 2em;
2020-12-21 14:49:03 +00:00
line-height: 1;
2020-09-09 01:10:48 +00:00
}
2021-03-25 07:01:36 +00:00
h1.post-title {
2020-12-21 14:49:03 +00:00
padding-top: 0.5em;
2020-09-09 01:10:48 +00:00
}
2021-03-25 07:01:36 +00:00
h1:not(.site-title):not(.post-title) {
font-size: 1.25em;
text-decoration: underline;
/* border-bottom: 4px solid var(--foreground); */
/*border-top: 4px solid var(--foreground);*/
}
2020-09-09 01:10:48 +00:00
h2 {
2021-03-25 07:01:36 +00:00
/* border-bottom: 2px solid var(--foreground); */
font-size: 1.25em;
2020-09-09 01:10:48 +00:00
}
2020-12-23 18:23:38 +00:00
h1:not(.site-title):not(.post-title)::before {
2020-12-21 14:49:03 +00:00
content: "# ";
color: var(--decoration);
2020-09-09 01:10:48 +00:00
}
h2::before {
2020-12-21 14:49:03 +00:00
content: "## ";
color: var(--decoration);
2020-09-09 01:10:48 +00:00
}
h3::before {
2020-12-21 14:49:03 +00:00
content: "### ";
color: var(--decoration);
2020-09-09 01:10:48 +00:00
}
a {
2020-12-21 14:49:03 +00:00
text-decoration: none;
border-bottom: 1px solid var(--link-underline);
color: var(--foreground);
2020-09-09 01:10:48 +00:00
}
2020-09-09 01:29:13 +00:00
a:not(.internal)::after {
2020-12-21 14:49:03 +00:00
content: " " url("/link.svg");
}
2020-12-23 16:55:55 +00:00
a.show-url::after {
2020-12-21 14:49:03 +00:00
content: " [" attr(href) "]" url("/link.svg");
color: var(--link-fancy);
2020-09-09 01:10:48 +00:00
}
2021-03-27 03:11:10 +00:00
.site-title a {
border-bottom: none;
}
.site-title a::after {
content: "";
}
2021-03-25 07:01:36 +00:00
nav {
margin-bottom: 2em;
}
2020-12-23 16:55:55 +00:00
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav li {
display: inline;
}
2020-09-09 01:10:48 +00:00
nav a {
2020-12-21 14:49:03 +00:00
color: var(--link-fancy);
2020-09-09 01:10:48 +00:00
}
2020-12-23 16:55:55 +00:00
nav a.internal {
margin-right: 1ch;
}
div.table-wrapper {
2020-12-21 14:49:03 +00:00
overflow-x: auto;
}
div.table-wrapper table {
2020-12-21 14:49:03 +00:00
border-collapse: collapse;
2021-03-25 11:27:37 +00:00
border: 2px solid;
2020-09-09 01:10:48 +00:00
}
2020-12-21 14:49:03 +00:00
div.table-wrapper table,
th,
td {
padding: 0.5em;
2020-09-09 01:10:48 +00:00
}
div.table-wrapper th {
2020-12-21 14:49:03 +00:00
border-bottom: 2px solid var(--foreground);
2020-09-09 01:10:48 +00:00
}
div.table-wrapper td {
2020-12-21 14:49:03 +00:00
border: 1px solid var(--foreground);
2020-09-09 01:10:48 +00:00
}
div.table-wrapper table tr td:first-child {
2020-12-21 14:49:03 +00:00
border-left: 0;
2020-09-09 01:10:48 +00:00
}
div.table-wrapper table tr td:last-child {
2020-12-21 14:49:03 +00:00
border-right: 0;
2020-09-09 01:10:48 +00:00
}
div.table-wrapper table tr:last-child td {
2020-12-21 14:49:03 +00:00
border-bottom: 0;
2020-09-09 01:10:48 +00:00
}
div.table-wrapper tr:nth-child(even) {
2020-12-21 14:49:03 +00:00
background-color: var(--background-alt);
}
#toc-toggle {
border: none;
font-family: var(--fontset);
font-size: 1rem;
line-height: 1.6;
background-color: var(--foreground);
color: var(--background);
padding: 0 0.5em;
margin: 0;
float: right;
cursor: pointer;
2020-09-09 01:10:48 +00:00
}
2020-12-23 16:55:55 +00:00
2021-03-25 07:01:36 +00:00
#toc {
border: 1px solid var(--decoration);
}
2021-02-26 19:02:34 +00:00
#toc ol {
counter-reset: item;
list-style-type: none;
}
#toc li {
display: block;
color: var(--decoration);
}
#toc li:before {
content: counters(item, ".") " ";
counter-increment: item;
}
2020-12-23 18:23:38 +00:00
h1.post-title {
font-size: 1.5em;
border: none;
line-height: 1;
margin: 0;
}
2021-03-25 07:01:36 +00:00
li p.post-date {
border-bottom: none;
}
2020-12-23 16:55:55 +00:00
p.post-date {
color: var(--decoration);
margin: 0;
2021-03-25 07:01:36 +00:00
border-bottom: 1px solid var(--decoration);
2020-12-23 16:55:55 +00:00
}
2021-02-26 19:02:34 +00:00
p.post-desc {
margin-top: 0;
}
.flex {
display: flex;
flex-wrap: wrap;
}
.flex * {
margin-left: 1em;
margin-right: 1em;
}
2021-03-25 07:01:36 +00:00