nasg/templates/style.css

371 lines
4.8 KiB
CSS

* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: "Courier New", 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 > nav,
body > main,
body > main > article,
body > main > aside,
body > main > section,
body > header > section,
body > footer > section {
max-width: 56em;
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 {
text-transform:uppercase;
text-align: center;
padding-bottom: 1em;
}
hr {
border-bottom: 1px dotted #999;
}
svg {
transform: rotate(0deg);
fill: currentColor;
vertical-align:middle;
}
body > svg {
display: none;
visibility: hidden;
}
a {
color: #f90;
text-decoration: none;
border-bottom: 1px none #f90;
}
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 input, input[type=submit] {
display: none;
}
.theme {
margin: 0 0.3em 0 0;
}
.theme input + label {
color: #f90;
cursor: pointer;
border-bottom: 3px solid transparent;
padding-bottom: 0.1em;
margin-left:0.6em;
}
.theme input:hover + label,
.theme input:checked + label {
border-bottom: 3px solid #eee;
color: #eee;
}
body > footer {
margin-top: 2em;
}
body > footer > section > * {
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;
}
.vcard 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;
}
article > header {
border-bottom: 4px double #999;
margin-bottom: 2em;
}
.h-feed article > header {
border: none;
margin: 0;
}
main ul {
margin-left: 2em;
}
main ol {
margin-left: 3em;
}
li p {
margin: 0;
}
.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%;
border-bottom: 1px solid rgba(255, 153, 0, 0);
}
.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;
}
.h-feed aside a,
.h-feed article a,
body > nav > ul > li a {
border-bottom: 1px solid rgba(255, 153, 0, 0.5);
}
.comments .u-url:hover,
.footnotes a:hover,
.h-feed aside a:hover,
.h-feed article a:hover,
body > nav > ul > li a:hover {
border-bottom: 1px solid #eee;
}
@media all and (min-width: 58em) {
body > header > 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;
}