This repository has been archived on 2025-09-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
plaintext-encyclopedia/public/static/style.css

96 lines
2 KiB
CSS
Raw Normal View History

2024-08-28 20:29:34 +02:00
/* Copyright (c) 2024 Julian Müller (ChaoticByte) */
2025-07-11 22:39:47 +02:00
:root {
--color-text: black;
--color-footer: #00000080;
--color-search-box-placeholder: #00000060;
--color-search-box-border: #00000040;
--background: #dfd4d0;
--font-family: sans-serif;
}
2024-08-27 11:55:01 +02:00
body {
display: flex;
flex-direction: column;
2025-07-11 22:39:47 +02:00
margin: 0;
padding: 0;
min-height: 100vh;
2025-07-11 22:39:47 +02:00
font-family: var(--font-family);
background: var(--background);
2024-08-27 11:55:01 +02:00
}
2024-08-28 19:49:23 +02:00
a:hover, a:focus { text-decoration: underline; }
2024-08-27 11:55:01 +02:00
a {
2025-07-11 22:39:47 +02:00
color: var(--color-text);
2024-08-27 11:55:01 +02:00
text-decoration: none;
2024-08-28 19:49:23 +02:00
outline: none;
2024-08-27 11:55:01 +02:00
}
footer {
display: flex;
flex-wrap: wrap;
2025-07-11 22:39:47 +02:00
margin-top: auto;
box-sizing: border-box;
padding: 1rem;
}
footer > div {
margin: 0 .5rem;
}
footer, footer * {
2025-07-11 22:39:47 +02:00
color: var(--color-footer) !important;
font-size: .9rem;
2024-08-27 11:55:01 +02:00
}
.main > h1 {
font-size: 1.4rem;
2025-07-11 22:39:47 +02:00
margin-top: .6rem;
margin-bottom: 1.5rem;
}
.main > h1, .content {
max-width: 42rem;
2024-08-27 11:55:01 +02:00
}
.content { white-space: pre-line; }
2025-07-11 22:39:47 +02:00
.home-main, .main {
padding: 2rem;
2024-08-28 19:49:23 +02:00
box-sizing: border-box;
2025-07-11 22:39:47 +02:00
}
.home-main {
width: fit-content;
min-width: 30rem;
2024-08-28 19:49:23 +02:00
gap: 1rem;
}
2024-08-29 13:29:39 +02:00
.about {
margin-bottom: 2rem;
}
.about > h1 {
font-size: 1.6rem;
2025-07-11 22:39:47 +02:00
margin-top: .4rem;
margin-bottom: 1.5rem;
}
2024-08-29 13:29:39 +02:00
.description {
white-space: pre-line;
}
2024-08-28 19:49:23 +02:00
.home-main, .toc, #search-results {
display: flex;
flex-direction: column;
}
.toc, #search-results, #search-box { padding: 0 .2rem; }
.toc, #search-results { gap: .2rem; }
#search-box {
width: 100%;
2025-07-11 22:39:47 +02:00
height: 2rem;
2024-08-28 19:49:23 +02:00
border: none;
outline: none;
2025-07-11 22:39:47 +02:00
border-bottom: 1px solid var(--color-search-box-border);
background: transparent;
2024-08-28 19:49:23 +02:00
font-size: 1rem;
}
2025-07-11 22:39:47 +02:00
#search-box::placeholder {
color: var(--color-search-box-placeholder);
}
#search-box:not(:placeholder-shown), #search-box:active, #search-box:focus, #search-box:hover {
border-bottom: 1px solid var(--color-text);
}
2024-08-28 19:49:23 +02:00
.hidden { display: none !important; }
2024-08-27 11:55:01 +02:00
@media only screen and (max-width: 750px) {
.main > h1, .content {
2025-07-11 22:39:47 +02:00
width: 100%;
2024-08-27 11:55:01 +02:00
max-width: unset;
}
}