9iron/styles/styles.css
2020-08-22 21:13:20 -05:00

168 lines
2.6 KiB
CSS

/*
* styles.css
* Copyright (C) 2020 Vintage Salt
*
* Distributed under terms of the MIT license.
*/
/* GLOBALS */
:root {
--background-bright: #fdfcfa;
--background: #ecebe9;
--link: #286a9d;
--link-hover: #3ea5f3;
--shadow: 8px -5px #d6d5d3;
--text: #414040;
}
html {
overflow-y: scroll;
}
body {
background: var(--background);
color: var(--text);
font: "Roboto", sans-serif;
margin: 0;
}
/* TYPES */
/* a */
a {
color: var(--link);
text-decoration: none;
transition: .08s ease-in;
}
a:hover {
color: var(--link-hover);
}
/* code */
code {
background: var(--text);
border-radius: 3px;
color: var(--background);
display: inline-block;
font-size: 11pt;
padding: 2px 4px;
}
dl {
list-style-type: none;
margin: 0;
}
dl dt {
font-weight: bold;
margin: 1em 0 0 0;
}
dl dd {
margin: 0;
}
/* CUSTOM DIVS AND SPANS */
a.quickbutton {
background: var(--background-bright);
border-radius: 8px;
box-shadow: 5px 5px var(--shadow);
display: block;
font-size: 150%;
margin: 0.5em 0;
padding: 1em;
text-align: center;
}
a.quickbutton:hover {
background: var(--link-hover);
color: var(--background);
}
div.break {
width: 4em;
margin: 2em auto;
border-bottom: 3px double var(--text);
}
img.bigimg {
border-radius: 8px;
box-shadow: 5px 5px var(--shadow);
display: block;
margin: 1em auto;
}
/* HIERARCHICAL CLASSES */
/* HEADER */
.header {
background: var(--background-bright);
box-shadow: 0 5px var(--shadow);
}
.logocontainer {
align-items: center;
display: flex;
justify-content: center;
padding: 1em 0;
}
.logo {
border-radius: 50%;
height: 64px;
vertical-align: middle;
margin: 0 1em;
max-width: 64px;
}
.header h1 {
display: inline;
margin: 0;
}
.header p {
margin: 0;
}
.header nav ul {
list-style-type: none;
margin: 0;
padding: 0;
text-align: center;
}
.header nav ul li {
display: inline-block;
padding: 0.8em;
}
.header nav ul li:hover {
background: var(--link-hover);
color: var(--background);
transition: .08s ease-in;
}
/* CONTENT */
.content {
max-width: 48em;
margin: 2em auto;
padding: 1em;
}
.subcontainer {
background: var(--background-bright);
border-radius: 8px;
box-shadow: 5px 5px var(--shadow);
margin: 1em 0;
padding: 1em;
}
.toc {
background: var(--background-bright);
border-radius: 4px;
box-shadow: 5px 5px var(--shadow);
display: inline-block;
margin: 0 1em 1em 1em;
padding: 0 1em;
width: auto;
}
/* FOOTER */
.footer {
font-size: 11px;
line-height: 1.3;
margin: 0 0 4em 0;
text-align: center;
}
.footer p {
margin: 0;
}
/* MOBILE */
@media only screen and (max-width: 600px) {
.nomobile {
display: none;
}
}