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

77 lines
1.4 KiB
CSS
Raw Normal View History

2024-08-27 11:55:01 +02:00
body {
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
2024-08-27 11:55:01 +02:00
width: 100vw;
font-family: sans-serif;
}
2024-08-28 19:49:23 +02:00
a:hover, a:focus { text-decoration: underline; }
2024-08-27 11:55:01 +02:00
a {
color: black;
text-decoration: none;
2024-08-28 19:49:23 +02:00
outline: none;
2024-08-27 11:55:01 +02:00
}
.homebtn {
position: absolute;
top: 1rem;
left: 1rem;
}
2024-08-27 11:55:01 +02:00
.main {
margin: 2rem 0;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.main > h1, .content {
width: 70vw;
max-width: 50rem;
}
.main > h1 {
font-size: 1.4rem;
margin-bottom: 0;
text-align: center;
2024-08-27 11:55:01 +02:00
}
.content { white-space: pre-line; }
2024-08-28 19:49:23 +02:00
.home-main {
width: 100%;
padding: 2rem;
2024-08-28 19:49:23 +02:00
box-sizing: border-box;
gap: 1rem;
}
.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%;
2024-08-28 19:49:23 +02:00
border: none;
outline: none;
border-bottom: 1px solid #00000040;
height: 2rem;
font-size: 1rem;
}
#search-box:active, #search-box:focus, #search-box:hover {
border-bottom: 1px solid black;
}
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) {
2024-08-28 19:49:23 +02:00
.main { margin-top: 4rem; }
2024-08-27 11:55:01 +02:00
.main > h1, .content {
width: 90vw;
max-width: unset;
}
.homebtn {
left: unset;
right: 1rem;
}
2024-08-27 11:55:01 +02:00
}