justice/static/theme.css
2024-01-21 00:00:04 -05:00

172 lines
No EOL
2.8 KiB
CSS

body {
margin: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
--theme-accent: rgb(77, 3, 3);
--theme-accent2: rgb(255, 226, 158);
--theme-primary: white;
--theme-secondary: black;
max-width: 100vw;
background-color: var(--theme-primary);
color: var(--theme-secondary);
}
@media screen and (prefers-color-scheme:dark) {
body {
--theme-accent: rgb(255, 226, 158);
--theme-accent2: rgb(77, 3, 3);
--theme-primary: rgb(23, 23, 23);
--theme-secondary: rgb(255, 255, 255);
}
}
header {
background-color: var(--theme-accent);
color: var(--theme-primary);
display: flex;
flex-wrap: wrap;
justify-content: center;
flex-direction: row;
align-items: center;
font-weight: bolder;
font-size: 18px;
font-family: serif;
padding-bottom: 0.5rem;
}
a {
color: var(--theme-accent);
}
header a {
color: var(--theme-accent2);
}
header>* {
margin-left: 0.25rem;
margin-right: 0.25rem;
}
header nav {
display: flex;
flex-direction: row;
align-items: center;
}
header nav>* {
margin-left: 1rem;
margin-right: 1rem;
}
main {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
max-width: 95vw;
}
main article {
min-width: 60vw;
width: 95vw;
max-width: 60rem;
font-size: 24px;
line-height: 24px;
}
article {
margin-top: 1rem;
margin-bottom: 1rem;
padding: 0.5rem;
display: flex;
flex-direction: column;
align-items: center;
font-family: sans-serif;
width: 70rem;
font-size: 18px;
line-height: 26px;
max-width: 90vw;
}
article h3,
section h3,
article h4,
section h4,
article h5,
article p {
width: 100%;
text-align: left;
margin: 15px;
}
article ul,
article ol,
article blockquote {
width: 90%;
margin-top: 5px;
}
main article h1 {
width: 100%;
font-size: 160%;
text-align: center;
text-decoration: underline;
}
footer {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
color: var(--theme-primary);
background-color: var(--theme-accent);
}
footer a {
color: var(--theme-accent2);
}
hr {
color: var(--theme-accent);
margin-top: 0.5rem;
margin-bottom: 0.5rem;
width: 100%;
}
table {
border-collapse: collapse;
}
th {
background-color: var(--theme-accent);
color: var(--theme-primary);
}
th,
td {
border: 1px solid var(--theme-accent);
padding: 5px;
}
article code>span {
padding: 1rem;
font-size: 18px;
line-height: 24px;
word-wrap: normal;
max-width: 90vw;
height: auto;
flex-wrap: wrap;
}
code,
pre,
a {
word-wrap: break-word;
white-space: break-spaces;
}
blockquote {
border-left: 10px solid var(--theme-accent);
padding-left: 5px;
}