desultd/styles/styles.css

151 lines
1.9 KiB
CSS
Raw Normal View History

2020-09-11 11:07:28 -05:00
/*
* styles.css
* Copyright (C) 2020 Vintage Salt
*
* Distributed under terms of the MIT license.
*/
/* GLOBALS */
:root {
--background: #3c3341;
--background-dark: #28232c;
--link: #ba844d;
--link-hover: #ffb940;
2020-12-20 08:20:13 -06:00
--text: #ffe4b4;
2020-09-11 11:07:28 -05:00
}
html {
background: var(--background-dark);
overflow-y: scroll;
}
body {
background: var(--background);
color: var(--text);
2020-12-20 08:20:13 -06:00
font: 12pt Inconsolata, sans-serif;
2020-09-11 11:07:28 -05:00
margin: 4em auto;
max-width: 40em;
padding: 4em;
}
/* TYPES */
/* a */
a {
color: var(--link);
text-decoration: none;
transition: .08s ease-in;
}
a:hover {
color: var(--link-hover);
}
2020-12-21 00:58:07 -06:00
a.button {
background: var(--background-dark);
display: inline-block;
padding: 1em;
}
2021-01-19 20:13:42 -06:00
code {
background: rgba(0,0,0,0.2);
}
code:before {
content: "[";
opacity: 0.25;
}
code:after {
content: "]";
opacity: 0.25;
}
2020-09-11 11:07:28 -05:00
dl {
list-style-type: none;
margin: 0;
}
dl dt {
font-weight: bold;
margin: 1em 0 0 0;
}
dl dd {
margin: 0;
}
2020-12-20 08:20:13 -06:00
h1 {
font-size: 100%;;
margin: 0;
2020-09-11 11:07:28 -05:00
}
2020-12-20 08:20:13 -06:00
h1:before {
content: "=> ";
opacity: 0.25;
2020-09-11 11:07:28 -05:00
}
2020-12-20 08:20:13 -06:00
h2 {
font-size: 100%;
margin: 0;
2020-09-11 11:07:28 -05:00
}
2020-12-20 08:20:13 -06:00
h2:before {
content: "-- ";
opacity: 0.25;
2020-09-11 11:07:28 -05:00
}
2020-12-20 08:20:13 -06:00
p {
margin: 0 0 1em 0;
}
2020-12-20 08:35:33 -06:00
nav:before,nav:after {
content: "--";
opacity: 0.25;
}
2020-12-20 08:20:13 -06:00
nav ul {
display: inline-block;
list-style-type: none;
2020-09-11 11:07:28 -05:00
margin: 0;
2020-12-20 08:20:13 -06:00
padding: 0;
2020-09-11 11:07:28 -05:00
}
2020-12-20 08:20:13 -06:00
nav ul li{
display: inline-block;
2020-09-11 11:07:28 -05:00
margin: 0;
2020-12-20 08:20:13 -06:00
padding: 0;
2020-09-11 11:07:28 -05:00
}
2020-12-20 08:20:13 -06:00
nav ul li:before {
2020-12-20 08:35:33 -06:00
content: "[";
opacity: 0.25;
}
nav ul li:after {
content: "]";
2020-12-20 08:20:13 -06:00
opacity: 0.25;
}
.content ul {
2020-09-11 11:07:28 -05:00
list-style-type: none;
margin: 0;
2021-01-19 20:16:42 -06:00
padding: 0 0 1em 1em;
2020-09-11 11:07:28 -05:00
}
2020-12-20 08:20:13 -06:00
.content ul li:before {
content: "* ";
opacity: 0.25;
2020-09-11 11:07:28 -05:00
}
/* CONTENT */
2020-12-20 08:20:13 -06:00
.header {
margin: 0 0 1em 0;
text-align: center;
}
.header img {
border-radius: 50%;
display: block;
margin: 0 auto 1em auto;
height: 6em;
width: 6em;
2020-09-11 11:07:28 -05:00
}
2020-12-20 08:35:33 -06:00
.header pre {
opacity: 0.25;
}
2020-12-20 08:20:13 -06:00
.header h1 {
margin: 0 0 1em 0;
2020-09-11 11:07:28 -05:00
}
2020-12-20 08:20:13 -06:00
.content {
2020-09-11 11:07:28 -05:00
background: var(--background);
}
/* MOBILE */
@media only screen and (max-width: 600px) {
body {
margin: 0;
padding: 1em;
}
.nomobile {
display: none;
}
}