homepage/static/assets/css/default.css

249 lines
3.3 KiB
CSS

/* http://www.colourlovers.com/palette/92095/Giant_Goldfish */
html {
background-color: white;
background-image: url("../images/bg.jpg");
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
background-position: center;
}
body {
background-color: rgba(255, 255, 255, 0.8);
margin: auto;
padding: 1em;
border-radius: 1em;
max-width: 35em;
font-family: "Lato", "Roboto", "Noto Color Emoji", sans-serif;
font-size: 13pt;
}
input {
font-family: inherit;
font-size: inherit;
border: thin solid #ccc;
}
input:read-only {
color: #444;
background-color: #eee;
}
header {
background-color: #e0e4cc;
border-radius: 0.25em;
padding: 0.1em 0.5em;
margin-top: 0;
box-shadow: 0.2em 0.2em 1em rgba(0,0,0,0.1);
}
header * {
margin: 0.2em;
}
.tagline {
font-style: italic;
margin-left: 1.5em;
}
.draft,
.draft a:any-link {
background-color: black;
color: orange;
}
.draft:after {
content: " (draft)";
font-style: italic;
}
.subtitle {
font-size: 60%;
}
h1, h2, h3, h4, h5, h6 {
color: #e64;
}
a {
color: #38d;
text-decoration: none;
}
a:visited {
color: #579;
}
a:hover {
color: #f83;
}
img.face {
margin: 1em;
width: 10em;
}
pre {
background: #e0e4cc;
overflow-x: auto;
}
blockquote {
background: #e0e4cc;
padding: 0.1em 1em;
border-radius: 0.4em;
}
footer {
clear: both;
border-top: solid black 1px;
}
nav ul,
ul.compact {
display: flex;
padding: 0;
margin-top: 0;
margin-bottom: 1em;
flex-wrap: wrap;
}
nav ul li,
ul.compact li {
display: inline;
margin: 0.5em 0.5em;
text-align: center;
}
nav ul li {
flex-grow: 1;
}
nav ul .fill {
flex-grow: 20;
}
.left {
float: left;
}
.right {
float: right;
}
/* Formatting */
p, li, dd {
text-align: left;
}
body > p {
text-indent: 1.5em;
}
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p, ol + p, ul + p, pre + p, blockquote + p, img + p {
text-indent: 0;
}
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
}
pre {
margin: 1em 2em;
padding: 1em;
border: solid black 1px;
}
.figure {
float: right;
padding: 0.25em;
margin: 0.5em;
font-size: small;
border: solid black 1px;
}
#timestamp {
font-size: small;
text-indent: inherit;
}
button.big {
padding: 0;
border: 0;
margin: 1em;
font-size: 2em;
background: inherit;
}
legend {
background-color: #e0e4cc;
}
table {
margin: 1em 0;
border-collapse: collapse;
}
thead, tfoot {
color: #e64;
background-color: rgba(224, 228, 204, 0.8);
}
tbody tr:nth-of-type(even) {
background-color: rgba(238, 102, 68, 0.05);
}
td, th {
padding: 0.2em 0.5em;
}
caption {
caption-side: bottom;
font-size: small;
}
.jistify-center {
text-align: center;
}
.justify-right, input[type="number"] {
text-align: right;
}
.justify-left {
text-align: left;
}
.tags {
font-size: small;
}
.tags li::before {
content: "➤";
padding-right: 0.2em;
}
.branch::after {
content: "✢";
}
@media (max-width: 768px) {
img, video {
max-width: 100%;
}
}
@media (min-width: 768px) {
img, video {
max-width: 60%;
}
figure img {
max-width: 100%;
}
}
.flex {
display: flex;
justify-content: space-around;
}
.flex.wrap {
flex-wrap: wrap;
}
@media (prefers-color-scheme: dark) {
html {
background-image: url("../images/bg-dark.jpg");
filter: invert(1);
}
img,video,canvas {
filter: invert(1);
}
}