homepage/styles/style.css

146 lines
2.7 KiB
CSS

:root.light {
--background-color: #e8e8e8;
--background-color-2: #e0e0e0;
--background-color-3: #d1d1d1;
--text-color: #1c1c1c;
--text-color-2: #4d4d4d;
--link-color: #236936;
--code-color: #e02929;
}
:root.dark {
--background-color: #1c1c1c;
--background-color-2: #222222;
--background-color-3: #2b2b2b;
--text-color: #e8e8e8;
--text-color-2: #a5a5a5;
--link-color: #46d169;
--code-color: #ff2f2f;
}
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: "IBM Plex Sans", sans-serif;
max-width: 50ch;
margin: 0 auto;
padding: 0 0.5em;
padding-bottom: 1em;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Cormorant Garamond";
font-weight: 700;
}
a {
color: var(--link-color);
text-decoration: none;
}
hr {
max-width: 60ch;
}
code {
font-family: "IBM Plex Mono", monospace;
}
.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: "IBM Plex Mono";
text-align: end;
border: 1px solid var(--background-color-3);
padding: 0.5em;
}
.page-header {
text-align: center;
max-width: 50ch;
margin: 0 auto;
}
.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: "IBM Plex Sans";
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: "IBM Plex Sans", 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;
}