Add the first draft of the unified manual

This commit is contained in:
Alex Cabal 2020-03-12 22:10:14 -05:00
parent 4b8cbeb268
commit d78d2ee402
18 changed files with 3626 additions and 65 deletions

View file

@ -1609,69 +1609,6 @@ main.ebooks nav ol li.highlighted:nth-last-child(2)::after{
text-transform: uppercase;
}
.manual section,
.manual ol{
counter-reset: item;
}
.manual section{
margin-top: 2rem;
}
.manual section section{
margin-left: 2rem;
}
.manual section ol{
margin-top: 1rem;
margin-left: 2rem;
}
.manual section + section,
.manual ol + section{
counter-reset: none;
}
.manual ol li{
list-style: none;
}
.manual section::before,
.manual ol li::before{
counter-increment: item;
content: counters(item, ".");
font-style: italic;
position: absolute;
margin-left: -3rem;
}
.manual section::before{
font-family: 'League Spartan', sans-serif;
line-height: 1.2;
}
.manual > section::before{
font-size: 1.2rem;
}
.manual h2,
.manual h3,
.manual h4{
margin-top: 0;
}
.manual figure p{
hyphens: none;
}
.manual table td:first-child{
width: auto;
}
.manual table td code.path{
white-space: nowrap;
}
@media(max-width: 1100px){
article.ebook header{
width: calc(100% + 4rem);

163
www/css/manual.css Normal file
View file

@ -0,0 +1,163 @@
@import url("monokai.css");
.manual > section[data-start-at='1']{
counter-reset: root 1;
}
.manual > section[data-start-at='2']{
counter-reset: root 2;
}
.manual > section[data-start-at='3']{
counter-reset: root 3;
}
.manual > section[data-start-at='4']{
counter-reset: root 4;
}
.manual > section[data-start-at='5']{
counter-reset: root 5;
}
.manual > section[data-start-at='6']{
counter-reset: root 6;
}
.manual > section[data-start-at='7']{
counter-reset: root 7;
}
.manual > section[data-start-at='8']{
counter-reset: root 8;
}
.manual > section[data-start-at='9']{
counter-reset: root 9;
}
.manual > section[data-start-at='10']{
counter-reset: root 10;
}
.manual > section[data-start-at='11']{
counter-reset: root 11;
}
.manual > section[data-start-at='12']{
counter-reset: root 12;
}
.manual > section[data-start-at='13']{
counter-reset: root 13;
}
.manual > section[data-start-at='14']{
counter-reset: root 14;
}
.manual > section[data-start-at='15']{
counter-reset: root 15;
}
.manual > section section,
.manual ol{
counter-reset: item;
}
.manual section{
margin-top: 2rem;
}
.manual section section{
margin-left: 2rem;
}
.manual section ol{
margin-top: 1rem;
margin-left: 2rem;
}
.manual section + section,
.manual ol + section{
counter-reset: none;
}
.manual section[data-start-at] ol > li{
list-style: none;
}
.manual > section[data-start-at]::before{
content: counters(root, '.');
position: absolute;
width: 10rem;
text-align: right;
margin-left: -11rem;
margin-top: 2rem;
font-size: 2rem;
}
.manual h1 + section > h2:first-child{
margin-top: 0;
}
.manual > section[data-start-at] section::before,
.manual section[data-start-at] ol > li::before{
counter-increment: item;
content: counters(root, '.') '.' counters(item, ".");
position: absolute;
width: 10rem;
margin-left: -10.5rem;
text-align: right;
font-family: 'League Spartan', sans-serif;
font-weight: normal;
}
.manual .no-numbering::before{
content: none !important;
display: none !important;
}
.manual section[data-start-at] ol > li::before{
font-size: .75rem;
margin-top: .15rem;
}
.manual > section[data-start-at] > section::before{
font-style: normal;
margin-left: -11.5rem;
}
.manual section::before{
font-family: 'League Spartan', sans-serif;
line-height: 1.2;
}
.manual > section::before{
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 table td code.path{
white-space: nowrap;
}
.manual aside.tip{
font-style: italic;
margin: 1rem;
}

65
www/css/monokai.css Normal file
View file

@ -0,0 +1,65 @@
.hll { background-color: #49483e }
.c { color: #75715e } /* Comment */
.err { color: #960050; background-color: #1e0010 } /* Error */
.k { color: #66d9ef } /* Keyword */
.l { color: #ae81ff } /* Literal */
.n { color: #f8f8f2 } /* Name */
.o { color: #f92672 } /* Operator */
.p { color: #f8f8f2 } /* Punctuation */
.ch { color: #75715e } /* Comment.Hashbang */
.cm { color: #75715e } /* Comment.Multiline */
.cp { color: #75715e } /* Comment.Preproc */
.cpf { color: #75715e } /* Comment.PreprocFile */
.c1 { color: #75715e } /* Comment.Single */
.cs { color: #75715e } /* Comment.Special */
.gd { color: #f92672 } /* Generic.Deleted */
.ge { font-style: italic } /* Generic.Emph */
.gi { color: #a6e22e } /* Generic.Inserted */
.gs { font-weight: bold } /* Generic.Strong */
.gu { color: #75715e } /* Generic.Subheading */
.kc { color: #66d9ef } /* Keyword.Constant */
.kd { color: #66d9ef } /* Keyword.Declaration */
.kn { color: #f92672 } /* Keyword.Namespace */
.kp { color: #66d9ef } /* Keyword.Pseudo */
.kr { color: #66d9ef } /* Keyword.Reserved */
.kt { color: #66d9ef } /* Keyword.Type */
.ld { color: #e6db74 } /* Literal.Date */
.m { color: #ae81ff } /* Literal.Number */
.s { color: #e6db74 } /* Literal.String */
.na { color: #a6e22e } /* Name.Attribute */
.nb { color: #f8f8f2 } /* Name.Builtin */
.nc { color: #a6e22e } /* Name.Class */
.no { color: #66d9ef } /* Name.Constant */
.nd { color: #a6e22e } /* Name.Decorator */
.ni { color: #f8f8f2 } /* Name.Entity */
.ne { color: #a6e22e } /* Name.Exception */
.nf { color: #a6e22e } /* Name.Function */
.nl { color: #f8f8f2 } /* Name.Label */
.nn { color: #f8f8f2 } /* Name.Namespace */
.nx { color: #a6e22e } /* Name.Other */
.py { color: #f8f8f2 } /* Name.Property */
.nt { color: #f92672 } /* Name.Tag */
.nv { color: #f8f8f2 } /* Name.Variable */
.ow { color: #f92672 } /* Operator.Word */
.w { color: #f8f8f2 } /* Text.Whitespace */
.mb { color: #ae81ff } /* Literal.Number.Bin */
.mf { color: #ae81ff } /* Literal.Number.Float */
.mh { color: #ae81ff } /* Literal.Number.Hex */
.mi { color: #ae81ff } /* Literal.Number.Integer */
.mo { color: #ae81ff } /* Literal.Number.Oct */
.sb { color: #e6db74 } /* Literal.String.Backtick */
.sc { color: #e6db74 } /* Literal.String.Char */
.sd { color: #e6db74 } /* Literal.String.Doc */
.s2 { color: #e6db74 } /* Literal.String.Double */
.se { color: #ae81ff } /* Literal.String.Escape */
.sh { color: #e6db74 } /* Literal.String.Heredoc */
.si { color: #e6db74 } /* Literal.String.Interpol */
.sx { color: #e6db74 } /* Literal.String.Other */
.sr { color: #e6db74 } /* Literal.String.Regex */
.s1 { color: #e6db74 } /* Literal.String.Single */
.ss { color: #e6db74 } /* Literal.String.Symbol */
.bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.vc { color: #f8f8f2 } /* Name.Variable.Class */
.vg { color: #f8f8f2 } /* Name.Variable.Global */
.vi { color: #f8f8f2 } /* Name.Variable.Instance */
.il { color: #ae81ff } /* Literal.Number.Integer.Long */