docs: missing file and tweaks

This commit is contained in:
jean-emmanuel 2019-03-28 09:38:32 +01:00
parent a78bfdc365
commit e8f2fbbfa3
5 changed files with 476 additions and 6 deletions

View file

@ -0,0 +1,57 @@
div.admonition {
font-size: 0.9em;
border: 1px solid #cccccc;
background-color: #fafafa;
padding: 0;
border-radius: 3px;
margin: 0 0 1.2rem;
}
div.admonition p {
margin: 0.5em 1em 0.5em 1em;
padding: 0;
}
div.admonition li p {
margin-left: 0;
}
div.admonition pre, div.warning pre {
margin: 0;
}
div.admonition p.admonition-title {
margin: 0;
padding: 0.5em;
color: white;
font-weight: bold;
background-color: #165e83;
}
div.danger { border: 1px solid $error-color;}
div.error { border: 1px solid $error-color;}
div.warning { border: 1px solid $warning-color;}
div.caution { border: 1px solid $warning-color;}
div.attention { border: 1px solid $warning-color;}
div.important { border: 1px solid #f8b862;}
div.note { border: 1px solid #f8b862;}
div.hint { border: 1px solid #7ebea5;}
div.tip { border: 1px solid #7ebea5;}
div.danger p.admonition-title, div.error p.admonition-title {
background-color: $error-color;
}
div.caution p.admonition-title,
div.warning p.admonition-title,
div.attention p.admonition-title {
background-color: $warning-color;
}
div.note p.admonition-title, div.important p.admonition-title {
background-color: #f8b862;
}
div.hint p.admonition-title, div.tip p.admonition-title {
background-color: #7ebea5;
}

View file

@ -0,0 +1,316 @@
/* https://raw.githubusercontent.com/simonsmith/syntax.css */
.codehilite {
background: #ffffff;
border-radius: 3px;
}
.codehilite .c {
color: #999988;
font-style: italic
}
/* Comment */
.codehilite .err {
color: #a61717;
background-color: #e3d2d2
}
/* Error */
.codehilite .k {
font-weight: bold
}
/* Keyword */
.codehilite .o {
font-weight: bold
}
/* Operator */
.codehilite .cm {
color: #999988;
font-style: italic
}
/* Comment.Multiline */
.codehilite .cp {
color: #999999;
font-weight: bold
}
/* Comment.Preproc */
.codehilite .c1 {
color: #999988;
font-style: italic
}
/* Comment.Single */
.codehilite .cs {
color: #999999;
font-weight: bold;
font-style: italic
}
/* Comment.Special */
.codehilite .gd {
color: #000000;
background-color: #ffdddd
}
/* Generic.Deleted */
.codehilite .gd .x {
color: #000000;
background-color: #ffaaaa
}
/* Generic.Deleted.Specific */
.codehilite .ge {
font-style: italic
}
/* Generic.Emph */
.codehilite .gr {
color: #aa0000
}
/* Generic.Error */
.codehilite .gh {
color: #999999
}
/* Generic.Heading */
.codehilite .gi {
color: #000000;
background-color: #ddffdd
}
/* Generic.Inserted */
.codehilite .gi .x {
color: #000000;
background-color: #aaffaa
}
/* Generic.Inserted.Specific */
.codehilite .go {
color: #888888
}
/* Generic.Output */
.codehilite .gp {
color: #555555
}
/* Generic.Prompt */
.codehilite .gs {
font-weight: bold
}
/* Generic.Strong */
.codehilite .gu {
color: #aaaaaa
}
/* Generic.Subheading */
.codehilite .gt {
color: #aa0000
}
/* Generic.Traceback */
.codehilite .kc {
font-weight: bold
}
/* Keyword.Constant */
.codehilite .kd {
font-weight: bold;
}
/* Keyword.Declaration */
.codehilite .kp {
font-weight: bold
}
/* Keyword.Pseudo */
.codehilite .kr {
font-weight: bold
}
/* Keyword.Reserved */
.codehilite .kt {
color: #445588;
font-weight: bold
}
/* Keyword.Type */
.codehilite .m {
color: #009999
}
/* Literal.Number */
.codehilite .s {
color: #d14
}
/* Literal.String */
.codehilite .na {
color: #008080
}
/* Name.Attribute */
.codehilite .nb {
color: #0086B3
}
/* Name.Builtin */
.codehilite .nc {
color: #445588;
font-weight: bold
}
/* Name.Class */
.codehilite .no {
color: #008080
}
/* Name.Constant */
.codehilite .ni {
color: #800080
}
/* Name.Entity */
.codehilite .ne {
color: #990000;
font-weight: bold
}
/* Name.Exception */
.codehilite .nf {
color: #990000;
font-weight: bold
}
/* Name.Function */
.codehilite .nn {
color: #555555
}
/* Name.Namespace */
.codehilite .nt {
color: #000080
}
/* Name.Tag */
.codehilite .nv {
color: #008080
}
/* Name.Variable */
.codehilite .ow {
font-weight: bold
}
/* Operator.Word */
.codehilite .w {
color: #bbbbbb
}
/* Text.Whitespace */
.codehilite .mf {
color: #009999
}
/* Literal.Number.Float */
.codehilite .mh {
color: #009999
}
/* Literal.Number.Hex */
.codehilite .mi {
color: #009999
}
/* Literal.Number.Integer */
.codehilite .mo {
color: #009999
}
/* Literal.Number.Oct */
.codehilite .sb {
color: #d14
}
/* Literal.String.Backtick */
.codehilite .sc {
color: #d14
}
/* Literal.String.Char */
.codehilite .sd {
color: #d14
}
/* Literal.String.Doc */
.codehilite .s2 {
color: #d14
}
/* Literal.String.Double */
.codehilite .se {
color: #d14
}
/* Literal.String.Escape */
.codehilite .sh {
color: #d14
}
/* Literal.String.Heredoc */
.codehilite .si {
color: #d14
}
/* Literal.String.Interpol */
.codehilite .sx {
color: #d14
}
/* Literal.String.Other */
.codehilite .sr {
color: #009926
}
/* Literal.String.Regex */
.codehilite .s1 {
color: #d14
}
/* Literal.String.Single */
.codehilite .ss {
color: #990073
}
/* Literal.String.Symbol */
.codehilite .bp {
color: #999999
}
/* Name.Builtin.Pseudo */
.codehilite .vc {
color: #008080
}
/* Name.Variable.Class */
.codehilite .vg {
color: #008080
}
/* Name.Variable.Global */
.codehilite .vi {
color: #008080
}
/* Name.Variable.Instance */
.codehilite .il {
color: #009999
}

View file

@ -0,0 +1,94 @@
.wrap {
max-width: 1110px;
}
@media (max-width: 570px){
.wrap, .full-width {
min-width: 0;
}
}
.wrap {
margin-right: auto;
margin-left: auto;
padding: 0 8px;
}
.d-header>.wrap {
width: calc(100% - 16px);
height: 100%;
padding: 0;
}
.d-header {
left: 0;
height: 4em;
margin-bottom: 15px;
font-family: Helvetica,Arial,sans-serif;
font-size: 15px;
line-height: 1.4;
}
.d-header {
display: flex;
align-items: center;
width: 100%;
position: fixed;
top: 0;
z-index: 1000;
background-color: #3c4c68;
box-shadow: 0 2px 4px -1px rgba(0,0,0,0.25);
}
.d-header>.wrap .contents {
display: flex;
align-items: center;
height: 100%;
}
.wrap .contents {
position: relative;
}
.d-header .title {
display: flex;
align-items: center;
height: 100%;
}
.d-header .title img {
height: 2.57em;
vertical-align: middle;
}
.d-header .header-buttons-panel {
position: relative;
display: flex;
flex: 0 0 auto;
margin-left: auto;
align-items: center;
}
.d-header .header-buttons {
display: flex;
align-items: center;
margin-top: 0.2em;
}
.d-header .header-buttons a {
padding: 6px 10px;
color: #fff;
font-size: 1.1487em;
}
.d-header .header-buttons a {
opacity: 0.5;
transition: opacity .25s;
text-decoration: none;
}
.d-header .header-buttons a:hover {
opacity: 0.75;
}
.d-header .header-buttons a.active {
opacity: 1;
}

View file

@ -1,4 +1,5 @@
$primary-color: rgb(75, 143, 210);
$font-size: 0.6rem;
@import "node_modules/spectre.css/src/spectre";
@import "admonition";
@ -8,14 +9,16 @@ $primary-color: rgb(75, 143, 210);
body {
color: #333;
font-family: Helvetica,Arial,sans-serif;
font-size: 13px;
line-height: 1.4;
font-family: $body-font-family;// Helvetica,Arial,sans-serif;
background-color: #fff;
overflow-y: scroll;
direction: ltr;
}
pre, code {
font-size: 0.7rem;
font-family: $mono-font-family;
}
#jumbotron {
text-align: center;
@ -50,7 +53,7 @@ body {
#main {
padding-top: 5.8572em;
padding-top: 6.5em;
padding-bottom: 4em;
display: flex;
}
@ -60,7 +63,7 @@ body {
flex-shrink: 0;
}
.col-left > ul {
top: 5.8572em;
top: 6.5em;
width: 230px;
position: fixed;
overflow-y: auto;