homepage/old/styles/style.css

155 lines
2.8 KiB
CSS
Raw Normal View History

2023-06-18 12:57:54 +00:00
:root.light {
--background-color: #e8e8e8;
--background-color-2: #e0e0e0;
--background-color-3: #d1d1d1;
--text-color: #1c1c1c;
--text-color-2: #4d4d4d;
2023-07-22 19:05:05 +00:00
--link-color: #236936;
--code-color: #e02929;
2023-06-18 12:57:54 +00:00
}
:root.dark {
--background-color: #1c1c1c;
--background-color-2: #222222;
--background-color-3: #2b2b2b;
--text-color: #e8e8e8;
--text-color-2: #a5a5a5;
2023-06-18 12:57:54 +00:00
--link-color: #46d169;
2023-07-22 19:05:05 +00:00
--code-color: #ff2f2f;
2023-06-18 12:57:54 +00:00
}
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: sans-serif;
2023-06-18 12:57:54 +00:00
max-width: 50ch;
margin: 0 auto;
padding: 0 0.5em;
2023-06-18 12:57:54 +00:00
padding-bottom: 1em;
}
h1, h2, h3, h4, h5, h6 {
font-family: serif;
font-weight: 700;
}
2023-06-18 12:57:54 +00:00
a {
color: var(--link-color);
text-decoration: none;
}
hr {
max-width: 60ch;
}
code {
font-family: monospace;
2023-06-18 12:57:54 +00:00
}
.stats-table {
background-color: var(--background-color-2);
width: 100%;
border-collapse: collapse;
}
.stats-table th {
text-align: start;
border: 1px solid var(--background-color-3);
padding: 0.5em;
}
.stats-table td {
font-family: monospace;
2023-06-18 12:57:54 +00:00
text-align: end;
border: 1px solid var(--background-color-3);
padding: 0.5em;
}
.page-header {
text-align: center;
max-width: 50ch;
margin: 0 auto;
2023-06-18 12:57:54 +00:00
}
.page-header div {
background-color: var(--background-color-2);
margin: 0.25em auto;
padding: 0.25em;
}
.page-header a:not(:last-child) {
padding-right: 0.25em;
}
.page-header-selected {
text-decoration: underline !important;
}
.basic-table {
background-color: var(--background-color-2);
width: 100%;
border-collapse: collapse;
}
.basic-table th {
text-align: center;
border: 1px solid var(--background-color-3);
padding: 0.5em;
}
.basic-table td {
font-family: sans-serif;
text-align: start;
border: 1px solid var(--background-color-3);
padding: 0.25em;
}
/* The article-card is used to show a simple preview for an article. */
.article-card {
display: block;
text-decoration: none;
color: var(--text-color);
background-color: var(--background-color-2);
padding: 0.5em;
}
.article-card + .article-card {
margin-top: 1em;
}
.article-card h3 {
font-family: sans-serif;
font-size: larger;
margin: 0;
}
.article-card:hover h3 {
text-decoration: underline;
}
.article-card > div > time {
font-size: smaller;
color: var(--text-color-2);
}
.article-card > div > span {
font-size: smaller;
color: var(--link-color);
background-color: var(--background-color-3);
padding: 0 0.25em 0.25em 0.25em;
border-radius: 0.5em;
}
.article-card p {
margin: 0.5em 0 0 0;
}
/* Stuff related to sitestat settings */
#sitestat-toggle {
color: var(--text-color-2);
cursor: pointer;
}
#sitestat-toggle:hover {
text-decoration: underline;
}