Update design

This commit is contained in:
2024-10-17 11:26:46 +01:00
parent 0cd35ad084
commit edd0f40e17
6 changed files with 81 additions and 69 deletions

View File

@ -1,16 +1,16 @@
/* theming */
:root {
--text: #ededed;
--background: #1f2124;
--background: #1a1e22;
--primary: #133b6e;
--secondary: #3869b3;
--accent: #cc99ff;
--highlight: #cc99ff;
}
:root {
--headings: var(--text);
--link: var(--highlight);
--border: #b5b5b5;
--line: #ffffff;
--link: #cc99ff;
--link-hover: #ffffff;
--border-color: var(--accent);
--headings-color: var(--text);
--link-color: var(--highlight);
}
body {
@ -25,19 +25,9 @@ body {
margin: 0 auto;
}
h1,
h2,
h3,
h4,
h5 {
font-weight: 700;
}
html {
font-size: 100%;
} /* 16px */
html {
min-height: 100%;
scroll-behavior: smooth;
font-size: 100%;
} /* 16px */
@ -65,55 +55,52 @@ small {
font-size: 0.667rem; /* 10.72px */
}
hr {
background-color: var(--line);
}
/* layout */
body {
background-color: var(--background);
line-height: 1.6;
}
h1,
h2,
h3,
h4,
h5 {
color: var(--headings);
line-height: 1.2;
h5,
h6 {
margin-top: 24px;
margin-bottom: 8px;
color: var(--headings);
font-weight: bold;
color: var(--headings-color);
line-height: 1.2;
margin-top: 0;
margin-bottom: 0.5rem;
font-weight: 700;
}
header {
padding-top: 4px;
padding-bottom: 4px;
p {
margin-top: 8px;
}
a {
text-decoration: none;
color: var(--link);
transition: color 0.1s linear;
table {
margin-bottom: 1rem;
width: 100%;
border: 0 solid var(--border-color);
border-collapse: collapse;
}
a:hover {
color: var(--link-hover);
text-decoration: none;
td,
th {
padding: 0.25rem 0.5rem;
border-color: inherit;
border-style: solid;
border-width: 1px;
}
th {
text-align: left;
}
thead th {
border-bottom-color: currentColor;
}
.container {
max-width: 800px;
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
padding: 10px;
}
@media (min-width: 576px) {
@ -140,18 +127,39 @@ a:hover {
}
}
.link {
text-decoration: none;
transition: color 0.1s linear;
padding: 4px 12px;
hr {
background-color: var(--border-color);
}
.link:hover {
border-bottom: 2px solid var(--line);
blockquote {
border-left: 4px solid var(--border-color);
margin-left: 0px;
padding-left: 10px;
}
a {
border-bottom: 2px solid transparent;
color: var(--link-color);
text-decoration: none;
}
a:hover {
border-bottom: 2px solid var(--link-color);
text-decoration: none;
}
main {
margin-top: 20px;
color: var(--text);
font-size: 1rem;
}
main img {
max-width: 100%;
}
header {
padding-top: 4px;
padding-bottom: 4px;
}
section {