post_apocalypse_story/html_resources/style.css

222 lines
3.3 KiB
CSS
Raw Normal View History

* {
color: #101010;
}
a {
color: #1515A0;
}
a:visited {
color: #185113;
}
html {
background-color: #e5e3e0;
}
2023-09-02 19:23:36 +02:00
body {
2023-10-07 21:28:28 +02:00
margin: 0 auto;
width: 100%;
2023-10-07 21:28:28 +02:00
min-height: 100%;
2023-09-02 19:23:36 +02:00
}
@media screen and (min-width: 48rem) {
body {
width: 90%;
}
}
2023-09-02 19:23:36 +02:00
2023-10-07 21:28:28 +02:00
/* TODO: media query, use entire width on small viewports */
2023-09-02 19:23:36 +02:00
h1 {
text-align: center;
padding: 0;
padding-top: 0.8em;
padding-bottom: 0.5em;
border-bottom: 0.1em solid #101030;
2023-09-02 19:23:36 +02:00
margin: 0;
margin-bottom: 0.8em;
}
p, pre, ul {
padding: 0;
margin-top: 0;
margin-left: auto;
margin-right: auto;
margin-bottom: 0.9em;
width: 98%;
2023-09-02 19:23:36 +02:00
max-width: 720px;
list-style-position: inside;
list-style-type: disclosure-closed;
}
@media screen and (min-width: 48rem) {
p, ul {
width: 80%;
}
}
2023-09-02 19:23:36 +02:00
li ul {
margin-left: 2em;
width: 100%;
}
p {
text-align: justify;
}
p.light {
/* TODO: include a font that supports different weights */
font-weight: lighter;
font-style: italic;
}
p.strong {
font-weight: bold;
}
p.heavy {
/* TODO: include a font that supports different weights */
font-weight: bolder;
}
2023-10-07 21:28:28 +02:00
p.copyright {
position: relative;
margin-bottom: 0;
text-align: center;
font-size: 0.8em;
color: gray;
bottom: 2px;
}
2023-09-02 19:23:36 +02:00
pre {
max-width: 80ch;
font-size: 0.9rem;
overflow: scroll;
/*
Workaround for extending off screen on small viewports bc I cba
to figure it out properly
*/
width: 90%;
}
@media screen and (min-width: 48rem) {
pre {
/*
Get rid of scrollbars on browsers that show them regardless of
whether the content fits on screen or not
*/
overflow: visible;
}
2023-09-02 19:23:36 +02:00
}
pre.terminal {
color: #B5E550;
background-color: #3F3F3F;
border: 1px solid #101030;
2023-09-02 19:23:36 +02:00
padding: 1em;
}
pre.paper {
/* TODO: typewriter-look? */
/* TODO: tractor feed ribbons? */
background-color: #F0E6CE;
border: 1px solid #101030;
2023-09-02 19:23:36 +02:00
padding: 1em;
padding-bottom: 0em;
}
span.paper.green {
2023-09-02 19:23:36 +02:00
background-color: #D0DBA6;
}
span.quote.speech {
color: #303030;
}
span.quote.speech::before {
color: #101030;
content: "\25b8";
font-size: 0.75em;
position: relative;
bottom: 0.15em;
}
span.quote.speech::after {
color: #101030;
content: "\25c2";
font-size: 0.75em;
position: relative;
bottom: 0.15em;
}
span.quote.non-speech {
color: #303030;
}
span.quote.non-speech::before {
color: #101030;
content: "\25b9";
font-size: 0.75em;
position: relative;
bottom: 0.15em;
}
span.quote.non-speech::after {
color: #101030;
content: "\25c3";
font-size: 0.75em;
position: relative;
bottom: 0.15em;
}
/*TODO: Remove and replace with speech/non-speech where appropriate*/
span.quote.thought {
color: red;
/*color: #303030;*/
}
span.quote.thought::before {
color: red;
content: "\25b9";
font-size: 0.75em;
position: relative;
bottom: 0.15em;
}
span.quote.thought::after {
color: red;
content: "\25c3";
font-size: 0.75em;
position: relative;
bottom: 0.15em;
}
span.chapter {
color: inherit;
}
span.chapter::before {
content: "\25b9";
font-size: 0.75em;
position: relative;
bottom: 0.15em;
}
span.chapter::after {
content: "\25c3";
font-size: 0.75em;
position: relative;
bottom: 0.15em;
}
2023-09-23 11:12:00 +02:00
button.back {
font-size: 2.8em;
width: 1.3em;
height: 1.3em;
position: fixed;
top: 0.4em;
}
2023-09-02 19:23:36 +02:00
.comment {
font-style: italic;
color: gray;
}