nasg/templates/style.css
Peter Molnar c6755e6125 - no more microdata or RDFa in HTML: went full JSON-LD
- added og: and article: from open graph to meta
- jsonld as tmplvars for most elements
- removed unused commented code
- indention for inline CSS for readability
- merged reactions and comments into a single block
2019-02-07 19:27:15 +00:00

360 lines
No EOL
4.5 KiB
CSS

* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: "Courier", monospace;
margin: 0;
padding: 0;
line-height: 1.5em;
}
body {
color: #eee;
background-color: #222;
}
body > header,
body > footer {
background-color: #111;
text-align: center;
padding: 0.6em 0;
}
body > main,
body > nav,
body > header > section,
body > footer > section {
max-width: 88ch;
margin: 0 auto;
padding: 0 1em;
}
hr {
border: none;
}
dt {
font-weight: bold;
}
h1, h2, h3, h4, h5, h6, hr,
dt {
margin: 2em 0 0.6em 0;
}
main p {
margin: 1em 0;
}
h1 {
border-bottom: 4px double #999;
text-transform:uppercase;
}
article > footer > dl > dt,
h2 {
border-bottom: 1px solid #999;
}
article > footer > dl > dt,
h3,
hr {
border-bottom: 1px dotted #999;
}
h4 {
border-bottom: 1px dashed #999;
}
svg {
transform: rotate(0deg);
fill: currentColor;
vertical-align:middle;
}
body > svg {
display: none;
}
a {
color: #f90;
text-decoration: none;
border-bottom: 1px solid transparent;
}
a:hover {
color: #eee;
border-bottom: 1px solid #eee;
}
sup {
vertical-align: unset;
}
sup:before {
content: '[';
}
sup:after {
content: ']';
}
input, button, label {
-webkit-appearance:none;
}
nav > ul {
list-style-type: none;
}
nav > ul > li {
display: inline-block;
}
body > header form {
display: inline-block;
padding-left: 0.6em;
margin-top: 1em;
}
body > header a {
font-weight: bold;
border-bottom: 3px solid transparent;
padding-bottom: 0.1em;
}
body > header a:hover,
body > header a.active {
border-bottom: 3px solid #eee;
color: #eee;
}
body > header a svg {
display: block;
margin: 0.1em auto;
}
blockquote {
border-left: 3px solid #999;
margin: 2em 0 2em 1em;
padding: 0 0 0 1em;
color: #aaa;
}
input {
width: 8em;
padding: 0 0.3em;
border: none;
background-color: #333;
color: #ccc;
}
.hidden, .theme,
.theme input, input[type=submit] {
display: none;
}
.theme input + label {
color: #f90;
cursor: pointer;
border-bottom: 3px solid transparent;
padding-bottom: 0.1em;
}
.theme input:hover + label,
.theme input:checked + label {
border-bottom: 3px solid #eee;
color: #eee;
}
body > footer {
margin-top: 2em;
}
body > footer > * {
margin-bottom: 0.6em;
}
body > footer .email span {
display: none;
}
video,
figure img {
display: block;
max-height: 98vh;
max-width: 100%;
width:auto;
height:auto;
margin: 0 auto;
border: 1px solid #000;
}
figure {
margin: 2em 0;
}
figcaption {
margin-top: 1em;
}
figcaption > dl {
margin-top: 1em;
color: #666;
}
figcaption > dl * {
display: inline-block;
}
figcaption > dl dt {
display: none;
}
figcaption > dl dd {
margin: 0 0.3em;
}
footer img {
height: 1em;
}
code, pre {
color: #3c3;
border: 1px solid #666;
direction: ltr;
word-break: break-all;
word-wrap: break-word;
white-space: pre-wrap;
overflow:initial;
}
pre {
padding: 0.6em;
position: relative;
margin: 1em 0;
}
code {
padding: 0.05em 0.2em;
}
pre > code {
border: none;
}
pre > code::before {
content: attr(lang);
float: right;
color: #999;
border-left: 1px solid #666;
border-bottom: 1px solid #666;
padding: 0 0.3em;
margin: -0.6em -0.6em 0 0;
}
table {
border-collapse: collapse;
width: 100%;
}
td, th {
padding: 0.3em;
border: 1px solid #777;
text-align:left;
}
th {
font-weight: bold;
}
th, tr:nth-child(even) {
background-color: rgba(255, 255, 255, .1);
}
main > header > p {
text-align: center;
}
main ul {
margin-left: 2em;
}
main ol {
margin-left: 3em;
}
li p {
margin: 0;
}
.encourage, .encourage a {
color: #090;
}
.encourage a {
color: #0a0;
font-weight: bold;
}
.encourage h2 {
border-color: #090;
}
.footnotes hr:before {
content: 'Links';
color: #ccc;
font-weight: bold;
}
.comments .u-url,
.footnotes a {
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: top;
max-width: 96%;
}
.footnote-back {
margin: 0 0 0 0.6em;
}
main > section > article {
padding-left: 1em;
}
body > nav {
text-align: center;
margin-top: 2em;
}
body > nav > ul > li {
margin: 0 0.6em;
}
@media all and (min-width: 58em) {
body > header > section,
body > footer > section {
text-align: left;
display: flex;
justify-content:space-between;
}
body > header a svg {
display: inline-block;
}
body > header form {
margin-top: 0;
}
}
body > img {
position: fixed;
bottom: 0;
right: 0;
width: 10em;
height: auto;
}