web/www/css/manual.css
2025-01-19 13:28:45 -06:00

869 lines
15 KiB
CSS

@import url("monokai.css");
@font-face{
font-family: "Fira Sans";
src: local("Fira Sans"), url("/fonts/fira-sans.woff2") format("woff2");
font-weight: normal;
font-style: normal;
}
@font-face{
font-family: "Fira Sans";
src: local("Fira Sans"), url("/fonts/fira-sans-bold.woff2") format("woff2");
font-weight: bold;
font-style: normal;
}
@font-face{
font-family: "Fira Sans";
src: local("Fira Sans"), url("/fonts/fira-sans-italic.woff2") format("woff2");
font-weight: normal;
font-style: italic;
}
@font-face{
font-family: "Fira Sans";
src: local("Fira Sans"), url("/fonts/fira-sans-bold-italic.woff2") format("woff2");
font-weight: bold;
font-style: italic;
}
@font-face{
font-family: "Fira Mono";
src: local("Fira Mono"), url("/fonts/fira-mono.woff2") format("woff2");
font-weight: normal;
font-style: normal;
font-display: swap;
}
@font-face{
font-family: "Fira Mono";
src: local("Fira Mono"), url("/fonts/fira-mono-bold.woff2") format("woff2");
font-weight: bold;
font-style: normal;
font-display: swap;
}
.manual h1,
.manual h2,
.manual h3,
.manual h4,
.manual h5,
.manual h6{
text-align: left;
}
main.manual{
font-family: "Fira Sans", sans-serif;
font-size: .8rem;
font-variant-numeric: initial;
}
main.manual.outdated{
background: url("/images/outdated.svg");
}
main code:first-child{
margin-top: 0;
}
code{
hyphens: none;
font-variant-numeric: normal;
font-family: "Fira Mono", monospace;
font-size: .8rem;
border: 1px solid rgba(255,255,255,.25);
background: #333;
border-radius: .25rem;
white-space: nowrap;
padding: 0 .25rem;
color: #fff;
margin: 0 .2rem;
font-style: normal; /* override italics in parent */
}
blockquote,
figure.text{
background: rgba(255,255,255,.25);
border: 1px solid rgba(255,255,255,.25);
padding: 1rem;
border-radius: .25rem;
}
blockquote{
font-style: italic;
}
blockquote mark.error{
background: #CF4647;
padding: .2rem;
}
table{
width: 100%;
text-align: left;
margin-top: 1rem;
}
table code.full{
display: block;
white-space: normal !important;
}
table code.full{
white-space: pre-wrap !important;
}
table td{
vertical-align: top;
padding: 1rem;
}
table td:first-child{
width: 25%;
}
table td + td{
padding-left: 10px;
}
table p{
margin: 0;
}
table thead{
border-bottom: 3px double var(--sub-text);
font-weight: bold;
}
abbr{
white-space: nowrap;
}
abbr.acronym{
font-variant: all-small-caps;
}
abbr.temperature,
abbr.era{
font-variant: all-small-caps;
}
h3 abbr.initialism{
font-variant: normal;
}
code.ws,
code.string,
code.tag,
code.path,
code.program,
code.bash,
code.regex,
code.html,
code.xml,
code.ietf,
code.css,
code.marc{
border: 1px solid var(--border);
background: #333;
border-radius: .25rem;
white-space: normal;
word-break: break-all;
padding: 0 .25rem;
color: #fff;
margin: 0 .2rem;
}
figure code.xml,
figure code.html,
figure code.css{
padding: 1rem;
background: #333;
border: none;
text-align: left;
color: #fff !important; /* in case code highlighting fails */
}
code.xml.full,
code.html.full,
code.css.full{
position: relative;
border: none;
display: block;
padding: 1rem;
background: #333;
text-align: left;
color: #fff !important; /* in case code highlighting fails */
border: 1px solid var(--border);
}
code.full{
margin-top: 1rem;
color: #fff !important; /* in case code highlighting fails */
}
figure.full{
position: relative;
}
figure.full::after{
float: right;
font-weight: bold;
line-height: 1;
color: rgba(255, 255, 255, 0.25);
position: absolute;
top: .5rem;
right: .5rem;
font-family: "Fira Mono", monospace;
font-size: .5rem;
z-index: 100;
}
figure.xml.full::after{
content: "XML";
}
figure.html.full::after{
content: "HTML";
}
figure.css.full::after{
content: "CSS";
}
code{
font-family: "Fira Mono", monospace;
}
code.terminal{
color: #fff;
background-color: #333;
text-align: left;
padding: 1rem 1rem 1rem 2.5rem;
border-radius: .25rem;
position: relative;
display: block;
margin-top: 1rem;
overflow: auto;
}
code.terminal::before{
content: "";
background: url("/images/terminal.svg");
background-size: cover;
height: 1rem;
width: 1rem;
top: 1.15rem;
left: 1rem;
position: absolute;
}
code.raw{
white-space: pre;
}
code.terminal span{
display: block;
}
code.terminal span::before{
margin-right: .5rem;
color: #56DA55;
font-weight: bold;
display: inline;
}
.utf{
border: 1px solid var(--body-text);
padding: .1rem;
line-height: 1;
margin: 0 .2rem;
display: inline-block;
font-family: "Fira Mono", monospace;
vertical-align: middle;
margin-top: -3px; /* to match poor crimson alignment */
}
figure code.html .utf,
code.full .utf{
border-color: #fff;
margin-top: 0;
}
.step-by-step-guide ol li h2{
margin-top: 4rem;
margin-left: 0;
}
.step-by-step-guide ol li h3{
margin-top: 3rem;
}
.step-by-step-guide > ol li::marker{
font-weight: bold;
font-family: "League Spartan", sans-serif;
}
.step-by-step-guide > ol {
counter-reset: item;
margin-left: 0;
padding-left: 0;
margin-top: 0;
list-style: none;
}
.step-by-step-guide > ol > li::before {
float: left;
content: counter(item) ".";
counter-increment: item;
width: 4rem;
text-align: right;
margin-left: -4.5rem;
font-size: 1.2rem;
font-family: "League Spartan", sans-serif;
line-height: 1.2;
letter-spacing: 1px;
text-transform: uppercase;
}
.step-by-step-guide dl{
margin-left: 0;
padding-left: 0;
margin-top: 0;
}
.step-by-step-guide dl dt{
margin-top:1em;
}
.step-by-step-guide dl dt a:link{
font-weight:bold;
}
.step-by-step-guide details{
padding: 1rem 0;
list-style-type: none;
counter-reset: toc 0;
}
.step-by-step-guide summary{
/* reproduce H2 styling: */
font-size: 1.4rem;
font-family: "League Spartan", Arial, sans-serif;
margin-top: 4rem;
line-height: 1.2;
letter-spacing: 1px;
text-transform: uppercase;
list-style-position: outside;
}
.alert p.warning{
font-size: 2rem;
font-weight: bold;
font-style: normal;
text-align: center;
}
.alert p.warning::before,
.alert p.warning::after{
content: "\f071";
content: "\f071" / "";
font-family: "Fork Awesome";
}
.alert p.warning::before{
margin-right: 1rem;
}
.alert p.warning::after{
margin-left: 1rem;
}
figure p.wrong{
text-decoration-line: underline;
text-decoration-style: wavy;
text-decoration-color: #CF4647;
}
figure p.wrong::before,
figure.wrong::before{
font-family: "Fork Awesome";
content: "\f00d";
content: "\f00d" / "";
font-size: 1.5rem;
width: 1.5rem;
line-height: 1;
margin-right: .5rem;
color: #CF4647;
text-shadow: 1px 1px 0 rgba(0, 0, 0, .1);
display: inline-block;
flex-shrink: 0;
}
figure p.corrected::before,
figure.corrected::before{
font-family: "Fork Awesome";
content: "\f00c";
content: "\f00c" / "";
font-size: 1.5rem;
line-height: 1;
margin-right: .5rem;
width: 1.5rem;
color: #79BD9A;
text-shadow: 1px 1px 0 rgba(0, 0, 0, .1);
display: inline-block;
flex-shrink: 0;
}
figure.wrong::before,
figure.corrected::before{
display: flex;
margin-right: 0;
align-self: stretch;
align-items: center;
justify-content: center;
padding: 0 .5rem;
border-top-left-radius: .25rem;
border-bottom-left-radius: .25rem;
border: 1px solid var(--border);
border-right: none;
}
figure.wrong::before{
background: #762729;
}
figure.corrected::before{
background: #406451;
}
figure.wrong code{
background: #550000 url("/images/stripes-dark.svg");
}
figure.wrong,
figure.corrected{
display: flex;
align-items: center;
}
figure.wrong code,
figure.corrected code{
flex-grow: 1;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.manual p{
text-align: left;
}
.manual section{
margin-top: 2rem;
}
.manual ol ol{
margin-left: 0;
}
.manual figure code{
margin: 0;
}
.manual h2,
.manual h3,
.manual h4,
.manual h5,
.manual h6{
margin-left: 0;
}
.manual > article > section > section[id] > section > ol > li aside.number,
.manual > article > section > section[id] > section > aside.number{
margin-left: -12.5rem
}
.manual > article > section > section[id] > section > section > ol > li aside.number,
.manual > article > section > section[id] > section > section > aside.number{
margin-left: -14.5rem
}
.manual > article > section > section[id] > section > section > section > aside.number{
margin-left: -16.5rem
}
.manual > article > section > section[id] > section > section > section > section > aside.number{
margin-left: -18.5rem
}
.manual > article > section > section[id] > ol ol > li aside.number::after,
.manual > article > section > section[id] section > ol > li aside.number::after,
.manual > article > section > section[id] section > aside.number::after{
content: " ";
width: 2rem;
border-bottom: 2px dotted;
border-color: rgba(0, 0, 0, .5);
display: block;
margin-left: 10.25rem;
margin-top: -.55rem;
}
.manual > article > section > section[id] > section > ol ol > li aside.number::after,
.manual > article > section > section[id] > section > section > ol > li aside.number::after,
.manual > article > section > section[id] > section > section > aside.number::after{
width: 4rem;
}
.manual > article > section > section[id] > section > section > section > aside.number::after{
width: 6rem;
}
.manual > article > section > section[id] > section > section > section > section > aside.number::after{
width: 8rem;
}
.manual > article > section > section[id] section > ol > li aside.number,
.manual > article > section > section[id] section > aside.number{
margin-left: -12.5rem
}
.manual ol ol ul,
.manual ol ol p,
.manual ol ol figure,
.manual > article > section > section section{
margin-left: 2rem;
}
.manual ul > li > p{
margin-left: 0;
}
.manual section + section,
.manual ol + section{
counter-reset: none;
}
.manual section[id] ol > li{
list-style: none;
}
.manual > article > section[id] > aside.number{
position: absolute;
width: 10rem;
text-align: right;
margin-left: -11rem;
margin-top: 2rem;
font-size: 2rem;
}
.manual section[id] > aside{
font-size: .8rem;
}
.manual section[id] > aside.number a,
.manual section[id] ol > li > aside.number a{
text-decoration: none;
}
.manual h1 + section > h2:first-child{
margin-top: 0;
}
.manual section[id] > aside.number,
.manual section[id] ol > li > aside.number{
position: absolute;
width: 10rem;
margin-left: -10.5rem;
text-align: right;
font-family: "League Spartan", sans-serif;
font-weight: normal;
}
.manual section[id] ol > li > aside.number{
font-size: .75rem;
}
.manual > article > section[id] > section > aside.number{
font-style: normal;
margin-top: .15rem;
}
.manual section > aside.number{
font-family: "League Spartan", sans-serif;
line-height: 1.2;
}
.manual > article > section > aside.number{
font-size: 1.2rem;
}
.manual h2,
.manual h3,
.manual h4,
.manual h5,
.manual h6{
margin-top: 0;
}
.manual figure p{
hyphens: none;
}
.manual table td:first-child{
width: auto;
}
.manual aside.tip{
font-style: italic;
margin: 1rem 0;
position: relative;
padding: 1rem;
padding-left: 2rem;
padding-top: 2rem;
background: rgba(0, 0, 0, .2);
}
.manual aside.tip::before{
font-family: "Fork Awesome";
content: "\f0eb";
content: "\f0eb" / "";
font-size: 1rem;
position: absolute;
font-style: normal;
left: .75rem;
top: .25rem;
}
.manual aside.tip::after{
content: "Tip";
font-family: "League Spartan";
text-transform: uppercase;
font-size: .75rem;
position: absolute;
font-style: normal;
left: 2rem;
top: .5rem;
}
.manual aside.tip code{
font-style: normal;
}
span.ws{
border: 1px solid #222;
padding: .1rem;
line-height: 1;
margin: 0 .1rem;
font-size: .5rem;
display: inline-block;
vertical-align: middle;
}
code.terminal b,
code.bash b{
font-weight: normal;
color: #55b006;
}
code.terminal i,
code.bash i{
font-style: normal;
color: #c4a000;
}
code.terminal i.glob,
code.bash i.glob{
font-style: normal;
color: #719ece;
}
code.html .ws,
figure code.html .ws,
code.full .ws{
border-color: #fff;
margin-top: 0;
}
main.manual ul.changes td{
padding: 0;
}
main.manual ul.changes tr + tr td{
padding-top: 1rem;
}
main.manual ul.changes td:first-child{
text-align: right;
font-weight: bold;
padding-right: 1rem;
white-space: nowrap;
}
main.manual ul.changes span.wrong,
main.manual code.wrong{
text-decoration: wavy underline red;
}
main.manual ul.changes{
hyphens: none;
}
main.manual h1{
margin-bottom: 2rem;
}
main.manual h1 + p{
margin-top: 0;
}
main.manual h2 code{
font-size: 1.25rem;
top: -.1rem;
position: relative;
text-transform: lowercase;
}
main.manual > nav{
position: absolute;
left: 0;
background: rgba(0, 0, 0, .15);
padding: 1rem;
border-bottom: 1px solid var(--border);
border-right: 1px solid var(--border);
max-width: 18%;
}
main.manual > nav ol,
main.manual > nav li{
margin-top: .5rem;
}
main.manual > nav > p,
main.manual > nav > ol > li > p > a{
font-family: "League Spartan";
}
main.manual > nav > ol > li > p > a{
font-size: .75rem;
}
main.manual > nav a{
text-decoration: none;
}
main.manual > nav ol{
list-style: none;
}
figure code.xml,
figure code.html,
figure code.css{
white-space: pre-wrap;
}
@keyframes highlight {
0%{
background: #FFFF99;
}
100%{
background: none;
}
}
main.manual *:target{
animation: highlight 5s;
}
@media(max-width: 1700px){
main.manual > article{
margin-left: 10rem;
}
}
@media(max-width: 1350px){
main.manual > article{
margin-left: 0;
}
main.manual > nav{
position: relative;
max-width: none;
border: none;
background: none;
padding-left: 2rem;
padding-top: 2rem;
font-family: "League Spartan";
}
main.manual > nav ol{
display: none;
}
main.manual > article > section,
main.manual nav + article h1{
margin-top: 0;
}
.manual > article > section[id] > aside.number{
margin-top: 0;
}
}
@media(max-width: 1100px){
.manual ol ol ul, .manual ol ol p, .manual ol ol figure,
.manual > article > section > section section{
margin-left: 0;
}
.manual > article > section > section[id] > section > ol > li aside.number,
.manual > article > section > section[id] > section > aside.number{
margin-left: -10.5rem;
}
.manual > article > section > section[id] > section > section > ol > li aside.number,
.manual > article > section > section[id] > section > section > aside.number{
margin-left: -10.5rem;
}
.manual > article > section > section[id] > ol ol > li aside.number::after,
.manual > article > section > section[id] section > ol > li aside.number::after,
.manual > article > section > section[id] section > aside.number::after{
display: none;
}
.manual > article > section > section{
padding-left: 2rem;
}
}
@media(max-width: 1000px){
main.manual > article{
margin-left: 2rem;
}
}
@media(max-width: 500px){
.manual h1,
.manual h2,
.manual h3,
.manual h4,
.manual h5,
.manual h6{
word-break: break-all;
}
.manual .step-by-step-guide h1,
.manual .step-by-step-guide h2,
.manual .step-by-step-guide h3,
.manual .step-by-step-guide h4,
.manual .step-by-step-guide h5,
.manual .step-by-step-guide h6{
word-break: normal;
}
main.manual > article{
margin-left: 1rem;
}
}