nasg/templates/style.css

363 lines
4.6 KiB
CSS
Raw Normal View History

* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: "Courier", monospace;
font-size: 11.5pt;
2019-01-15 21:28:58 +00:00
margin: 0;
padding: 0;
line-height: 1.5em;
2019-01-05 11:56:12 +00:00
}
body {
color: #eee;
background-color: #222;
2019-01-15 21:28:58 +00:00
}
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;
2019-01-15 21:28:58 +00:00
}
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;
2019-01-15 21:28:58 +00:00
vertical-align: text-top;
}
body > svg {
display: none;
}
a {
color: #f90;
text-decoration: none;
border-bottom: 1px solid transparent;
}
a:hover {
2019-01-15 21:28:58 +00:00
color: #eee;
border-bottom: 1px solid #eee;
}
2019-01-15 21:28:58 +00:00
sup {
vertical-align: unset;
}
2019-01-15 21:28:58 +00:00
sup:before {
content: '[';
}
2019-01-15 21:28:58 +00:00
sup:after {
content: ']';
}
2019-01-15 21:28:58 +00:00
input, button, label {
-webkit-appearance:none;
}
2019-01-15 21:28:58 +00:00
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;
text-transform:uppercase;
2019-01-15 21:28:58 +00:00
}
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;
}
2019-01-15 21:28:58 +00:00
input {
width: 8em;
padding: 0 0.3em;
border: none;
background-color: #333;
color: #ccc;
}
2019-01-15 21:28:58 +00:00
.hidden, .theme,
.theme input, input[type=submit] {
display: none;
}
2019-01-15 21:28:58 +00:00
.theme input + label {
color: #f90;
cursor: pointer;
border-bottom: 3px solid transparent;
padding-bottom: 0.1em;
}
2019-01-15 21:28:58 +00:00
.theme input:hover + label,
.theme input:checked + label {
border-bottom: 3px solid #eee;
color: #eee;
}
2019-01-15 21:28:58 +00:00
body > footer {
margin-top: 2em;
}
body > footer > * {
margin-bottom: 0.6em;
2019-01-15 21:28:58 +00:00
}
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;
}
2019-01-15 21:28:58 +00:00
figure {
margin: 2em 0;
}
2019-01-15 21:28:58 +00:00
figcaption {
margin-top: 1em;
2018-11-15 14:06:35 +00:00
}
2019-01-15 21:28:58 +00:00
figcaption > dl {
margin-top: 1em;
color: #666;
}
2019-01-15 21:28:58 +00:00
figcaption > dl * {
display: inline-block;
}
2019-01-15 21:28:58 +00:00
figcaption > dl dt {
display: none;
}
2019-01-15 21:28:58 +00:00
figcaption > dl dd {
margin: 0 0.3em;
}
2019-01-15 21:28:58 +00:00
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;
2019-01-15 21:28:58 +00:00
margin: 1em 0;
}
code {
2019-01-15 21:28:58 +00:00
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;
2019-01-15 21:28:58 +00:00
padding: 0 0.3em;
margin: -0.6em -0.6em 0 0;
}
table {
border-collapse: collapse;
width: 100%;
}
2019-01-15 21:28:58 +00:00
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;
}
2019-01-15 21:28:58 +00:00
main ul {
margin-left: 2em;
}
2019-01-15 21:28:58 +00:00
main ol {
margin-left: 3em;
}
2019-01-15 21:28:58 +00:00
li p {
margin: 0;
}
.encourage, .encourage a {
2019-01-15 21:28:58 +00:00
color: #090;
}
.encourage a {
color: #0a0;
font-weight: bold;
}
2019-01-15 21:28:58 +00:00
.encourage h2 {
border-color: #090;
}
2019-01-15 21:28:58 +00:00
.footnotes hr:before {
content: 'Links';
color: #ccc;
2019-01-15 21:28:58 +00:00
font-weight: bold;
}
2019-01-05 11:56:12 +00:00
.replies .u-url,
.footnotes a {
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: top;
2019-01-15 21:28:58 +00:00
max-width: 96%;
}
.footnote-back {
2019-01-15 21:28:58 +00:00
margin: 0 0 0 0.6em;
2019-01-15 21:28:03 +00:00
}
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,
2019-01-15 21:28:03 +00:00
body > footer > section {
text-align: left;
display: flex;
justify-content:space-between;
}
body > header a svg {
display: inline-block;
}
2019-01-15 21:28:03 +00:00
2019-01-15 21:28:58 +00:00
body > header form {
margin-top: 0;
}
}
body > img {
position: fixed;
bottom: 0;
right: 0;
width: 10em;
height: auto;
}