nasg/templates/style.css

340 lines
4.1 KiB
CSS

* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
background-color: #111;
color: #bbb;
}
body {
margin: 0;
padding: 0;
font-family: sans-serif;
color: #ccc;
background-color: #222;
font-size: 100%;
line-height: 1.3em;
}
svg {
transform: rotate(0deg);
width: 16px;
height: 16px;
fill: currentColor;
vertical-align: middle;
}
a {
color: #5193D4;
text-decoration: none;
border-bottom: 1px solid transparent;
}
a:hover {
color: #fff;
border-bottom: 1px solid #fff;
}
h1 {
font-size: 1.6em;
}
h1, h2 {
line-height: 1.2em;
}
h2 {
font-size: 1.2em;
}
h2, h3 {
margin-top: 2em;
}
hr {
border: none;
border-top: 1px solid #777;
margin: 1em 0;
clear:both;
}
blockquote {
border-left: 3px solid #999;
margin: 2em 0 2em 1em;
padding: 0 0 0 1em;
color: #aaa;
}
dt {
font-weight: bold;
margin: 1em 0 0.6em 0;
}
dd img {
width: 1em;
height: auto;
}
figure {
margin: 2em 0;
}
figure > a {
border: none;
}
figcaption {
padding: 0.3em 0;
text-align: center;
}
figure img {
display: block;
max-height: 98vh;
max-width: 100%;
width:auto;
height:auto;
margin: 0 auto;
border: 1px solid #000;
}
figcaption dt {
display: none;
}
figcaption dd {
font-size: 0.8em;
display: inline-block;
margin:0.3em 0.3em;
}
ul {
padding-left: 1.3em;
}
li {
padding: 0.1em 0;
}
li p {
margin: 0;
}
input, button {
border: none;
color: #ccc;
background-color: transparent;
}
button svg {
transition: all 0.2s;
}
input {
border-bottom: 3px solid #ccc;
}
label {
display: none;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav li {
display: inline-block;
padding: 0 0.6em 0 0;
}
code, pre, q, figcaption {
font-family: monospace;
font-size: 0.94em;
}
code, pre {
color: #32CD32;
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;
}
code {
padding: 0.1em 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-left: 0.3em;
}
table {
border-collapse: collapse;
border-spacing: 0;
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);
}
body > header,
body > footer {
text-align: center;
padding: 0.6em 0.6em;
background-color: #111;
}
body > header form {
padding: 0.2em 0 0 0;
display: inline-block;
}
body > header p {
margin: 1em 0 0 0;
font-size: 0.8em;
}
body > svg,
body > script {
display: none;
}
body > header {
position: relative;
}
body > header nav {
margin: 0.3em 0;
}
body > header a {
font-weight: bold;
color: #ccc;
border-bottom: 3px solid transparent;
text-decoration: none;
padding-bottom: 0.3em;
}
body > header a:hover,
body > header a.active,
input:active,
input:hover {
border-bottom: 3px solid #fefefe;
color: #fefefe;
}
body > header a svg {
display: block;
margin: 0.1em auto;
}
body > main,
body > nav,
body > footer > div {
max-width: 86ch;
margin: 0 auto;
padding: 0.6em;
}
body > nav ul {
text-align: center;
}
body > nav li {
margin: 1em 0.6em;
}
body > nav i {
font-style:normal;
}
body > nav .current {
color: #999;
}
body > footer {
text-align: center;
color: #ccc;
font-family: monospace;
}
body > footer img {
width: 1em;
}
body > footer h2 {
display: none;
}
body > footer > ul >li > a > span {
display: block;
font-size: 0.8em;
}
.footnotes a {
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: top;
max-width: 80%;
}
.footnote-back {
margin: 0 0 0 0.1em;
}
.h-feed h1 {
display: none;
}
@media all and (min-width: 56em) {
body > header {
text-align: unset;
display: flex;
justify-content:space-between;
}
body > header p {
display: inline-block;
margin: 0;
}
body > header a svg {
display: inline-block;
}
}