This commit is contained in:
kyodev 2018-03-18 02:07:17 +01:00
parent 3f58b9acf6
commit 36e6917835
2 changed files with 140 additions and 38 deletions

2
.gitignore vendored
View File

@ -6,3 +6,5 @@ scripts/debug_scripts
scripts/dl/ scripts/dl/
scripts/test scripts/test
scripts/gitall scripts/gitall
theme-*
mkdocs-*

View File

@ -4,24 +4,27 @@ body {
background-attachment: fixed; background-attachment: fixed;
background-color: #f8f8f8; background-color: #f8f8f8;
} }
body > .container { body > .container {
min-height: 400px; min-height: 400px;
} }
ul {
padding-left: 20px;
}
ul.nav .main { ul.nav .main {
font-weight: bold; font-weight: bold;
} }
.col-md-3 { .col-md-3 {
padding-left: 0; padding-left: 0;
} }
.col-md-9 { .col-md-9 {
padding-bottom: 10px; padding-bottom: 100px;
} }
.source-links { .source-links {
float: right; float: right;
} }
.col-md-9 img { .col-md-9 img {
max-width: 100%; max-width: 100%;
display: inline-block; display: inline-block;
@ -30,9 +33,9 @@ ul.nav .main {
background-color: #fff; background-color: #fff;
border: 1px solid #ddd; border: 1px solid #ddd;
border-radius: 4px; border-radius: 4px;
/* margin: 20px auto 30px auto; */ margin: 20px auto 30px auto;
margin: auto;
} }
/* /*
* The code below adds some padding to the top of the current anchor target so * The code below adds some padding to the top of the current anchor target so
* that, when navigating to it, the header isn't hidden by the navbar at the * that, when navigating to it, the header isn't hidden by the navbar at the
@ -52,109 +55,114 @@ ul.nav .main {
pointer-events: none; pointer-events: none;
animation: 0s 1s forwards collapse-anchor-padding-1; animation: 0s 1s forwards collapse-anchor-padding-1;
} }
.clicky :target::before { .clicky :target::before {
animation-name: collapse-anchor-padding-2; animation-name: collapse-anchor-padding-2;
} }
@keyframes collapse-anchor-padding-1 { @keyframes collapse-anchor-padding-1 {
to { to {
margin-top: 0; margin-top: 0;
height: 0; height: 0;
} }
} }
@keyframes collapse-anchor-padding-2 { @keyframes collapse-anchor-padding-2 {
to { to {
margin-top: 0; margin-top: 0;
height: 0; height: 0;
} }
} }
h1 { h1 {
color: #444; color: #444;
font-weight: 400; font-weight: 400;
font-size: 42px; font-size: 42px;
margin-top: 10px;
} }
h2, h3, h4, h5, h6 { h2, h3, h4, h5, h6 {
color: #444; color: #444;
font-weight: 300; font-weight: 300;
} }
hr { hr {
border-top: 1px solid #aaa; border-top: 1px solid #aaa;
} }
pre, .rst-content tt { pre, .rst-content tt {
max-width: 100%; max-width: 100%;
background: #fff; background: #fff;
border: solid 1px #e1e4e5; border: solid 1px #e1e4e5;
color: #333; color: #333;
overflow-x: auto; overflow-x: auto;
padding: 0;
} }
code.code-large, .rst-content tt.code-large { code.code-large, .rst-content tt.code-large {
font-size: 90%; font-size: 90%;
} }
code { code {
padding: 2px 4px; padding: 2px 5px;
/* border: solid 1px #e1e4e5; */ background: #fff;
border: solid 1px #e1e4e5;
color: #333; color: #333;
/* white-space: pre-wrap; */ white-space: pre-wrap;
white-space: nowrap; word-wrap: break-word;
/* word-wrap: break-word; */
background: #fff;
} }
pre code { pre code {
background: transparent; background: transparent;
border: none; border: none;
white-space: pre; white-space: pre;
word-wrap: normal; word-wrap: normal;
font-family: monospace; font-family: monospace,serif;
font-size: 12px; font-size: 12px;
padding: 0.33em; /* surchargé par hightlight.css éventuellement*/
display: block;
}
code.hljs {
padding: 0.33em;
background: #fff; /* confirmation */
}
code.text {
background: #f1f1f1; /* pre code text ```text */
} }
a code { a code {
color: #2FA4E7; color: #2FA4E7;
} }
a:hover code, a:focus code { a:hover code, a:focus code {
color: #157AB5; color: #157AB5;
} }
footer.col-md-12 {
margin-top: 10px; footer {
margin-bottom: 0px; margin-top: 30px;
text-align: center; margin-bottom: 10px;
/* font-weight: 200; */ text-align: center;
border-top: hsl(200,80%,25%) 1px solid; font-weight: 200;
padding-top: 10px;
} }
.modal-dialog { .modal-dialog {
margin-top: 60px; margin-top: 60px;
} }
/* /*
* Side navigation * Side navigation
* *
* Scrollspy and affixed enhanced navigation to highlight sections and secondary * Scrollspy and affixed enhanced navigation to highlight sections and secondary
* sections of docs content. * sections of docs content.
*/ */
/* By default it's not affixed in mobile views, so undo that */ /* By default it's not affixed in mobile views, so undo that */
.bs-sidebar.affix { /* csslint allow: adjoining-classes */ .bs-sidebar.affix { /* csslint allow: adjoining-classes */
position: static; position: static;
} }
.bs-sidebar.well { /* csslint allow: adjoining-classes */ .bs-sidebar.well { /* csslint allow: adjoining-classes */
padding: 0; padding: 0;
max-height: 88%; max-height: 90%;
overflow-y: auto; overflow-y: auto;
} }
/* First level of nav */ /* First level of nav */
.bs-sidenav { .bs-sidenav {
padding-top: 0px; padding-top: 10px;
padding-bottom: 0px; padding-bottom: 10px;
border-radius: 5px; border-radius: 5px;
} }
/* All levels of nav */ /* All levels of nav */
.bs-sidebar .nav > li > a { .bs-sidebar .nav > li > a {
display: block; display: block;
@ -164,15 +172,16 @@ footer.col-md-12 {
.bs-sidebar .nav > li > a:hover, .bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus { .bs-sidebar .nav > li > a:focus {
text-decoration: none; text-decoration: none;
border-left: 1px solid; border-right: 1px solid;
} }
.bs-sidebar .nav > .active > a, .bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a, .bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a { .bs-sidebar .nav > .active:focus > a {
font-weight: bold; font-weight: bold;
background-color: transparent; background-color: transparent;
border-left: 1px solid; border-right: 1px solid;
} }
/* Nav: second level (shown on .active) */ /* Nav: second level (shown on .active) */
.bs-sidebar .nav .nav { .bs-sidebar .nav .nav {
display: none; /* Hide by default, but at >768px, show it */ display: none; /* Hide by default, but at >768px, show it */
@ -184,6 +193,7 @@ footer.col-md-12 {
padding-left: 30px; padding-left: 30px;
font-size: 90%; font-size: 90%;
} }
/* Show and affix the side nav when space allows it */ /* Show and affix the side nav when space allows it */
@media (min-width: 992px) { @media (min-width: 992px) {
.bs-sidebar .nav > .active > ul { .bs-sidebar .nav > .active > ul {
@ -196,8 +206,7 @@ footer.col-md-12 {
} }
.bs-sidebar.affix { /* csslint allow: adjoining-classes */ .bs-sidebar.affix { /* csslint allow: adjoining-classes */
position: fixed; /* Undo the static from mobile first approach */ position: fixed; /* Undo the static from mobile first approach */
top: 60px; top: 80px;
z-index: 1;
} }
.bs-sidebar.affix-bottom { /* csslint allow: adjoining-classes */ .bs-sidebar.affix-bottom { /* csslint allow: adjoining-classes */
position: absolute; /* Undo the static from mobile first approach */ position: absolute; /* Undo the static from mobile first approach */
@ -215,6 +224,7 @@ footer.col-md-12 {
width: 263px; width: 263px;
} }
} }
.headerlink { .headerlink {
font-family: FontAwesome; font-family: FontAwesome;
font-size: 14px; font-size: 14px;
@ -229,6 +239,9 @@ h5:hover .headerlink,
h6:hover .headerlink{ h6:hover .headerlink{
display:inline-block; display:inline-block;
} }
.admonition { .admonition {
padding: 15px; padding: 15px;
margin-bottom: 20px; margin-bottom: 20px;
@ -236,38 +249,49 @@ h6:hover .headerlink{
border-radius: 4px; border-radius: 4px;
text-align: left; text-align: left;
} }
.admonition.note { /* csslint allow: adjoining-classes */ .admonition.note { /* csslint allow: adjoining-classes */
color: #3a87ad; color: #3a87ad;
background-color: #d9edf7; background-color: #d9edf7;
border-color: #bce8f1; border-color: #bce8f1;
} }
.admonition.warning { /* csslint allow: adjoining-classes */ .admonition.warning { /* csslint allow: adjoining-classes */
color: #c09853; color: #c09853;
background-color: #fcf8e3; background-color: #fcf8e3;
border-color: #fbeed5; border-color: #fbeed5;
} }
.admonition.danger { /* csslint allow: adjoining-classes */ .admonition.danger { /* csslint allow: adjoining-classes */
color: #b94a48; color: #b94a48;
background-color: #f2dede; background-color: #f2dede;
border-color: #eed3d7; border-color: #eed3d7;
} }
.admonition-title { .admonition-title {
font-weight: bold; font-weight: bold;
text-align: left; text-align: left;
} }
.dropdown-submenu { .dropdown-submenu {
position: relative; position: relative;
} }
.dropdown-submenu>.dropdown-menu { .dropdown-submenu>.dropdown-menu {
top: 0; top: 0;
left: 100%; left: 100%;
margin-top: -6px; margin-top: -6px;
margin-left: -1px; margin-left: -1px;
/* -webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px; */
border-radius: 0 6px 6px 6px; border-radius: 0 6px 6px 6px;
} }
.dropdown-submenu:hover>.dropdown-menu { .dropdown-submenu:hover>.dropdown-menu {
display: block; display: block;
} }
.dropdown-submenu>a:after { .dropdown-submenu>a:after {
display: block; display: block;
content: " "; content: " ";
@ -281,24 +305,38 @@ h6:hover .headerlink{
margin-top: 5px; margin-top: 5px;
margin-right: -10px; margin-right: -10px;
} }
.dropdown-submenu:hover>a:after { .dropdown-submenu:hover>a:after {
border-left-color: #fff; border-left-color: #fff;
} }
.dropdown-submenu.pull-left { /* csslint allow: adjoining-classes */ .dropdown-submenu.pull-left { /* csslint allow: adjoining-classes */
float: none; float: none;
} }
.dropdown-submenu.pull-left>.dropdown-menu { /* csslint allow: adjoining-classes */ .dropdown-submenu.pull-left>.dropdown-menu { /* csslint allow: adjoining-classes */
left: -100%; left: -100%;
margin-left: 10px; margin-left: 10px;
-webkit-border-radius: 6px 0 6px 6px;
-moz-border-radius: 6px 0 6px 6px;
border-radius: 6px 0 6px 6px; border-radius: 6px 0 6px 6px;
} }
/* mods kyopages */ /* mods kyopages */
h1 {
margin-top: 10px;
}
a { a {
color: hsl(200,80%,45%); color: hsl(200,80%,45%);
} }
a:visited { a:visited {
color: hsl(200,80%,25%); color: hsl(200,80%,25%);
} }
ul {
padding-left: 20px;
}
blockquote { blockquote {
padding: 10px; padding: 10px;
border: 3px solid #eee; border: 3px solid #eee;
@ -348,3 +386,65 @@ blockquote p {
.table>tbody>tr>th { .table>tbody>tr>th {
text-align: center; text-align: center;
} }
.col-md-9 {
padding-bottom: 10px;
}
.col-md-9 img {
margin: auto;
}
pre, .rst-content tt {
padding: 0;
}
code {
padding: 2px 4px;
/* border: solid 1px #e1e4e5; */
color: #333;
/* white-space: pre-wrap; */
white-space: nowrap;
/* word-wrap: break-word; */
background: #fff;
}
pre code {
font-family: monospace;
padding: 0.33em; /* surchargé par hightlight.css éventuellement*/
display: block;
}
code.hljs {
padding: 0.33em;
background: #fff; /* confirmation */
}
code.text {
background: #f1f1f1; /* pre code text ```text */
}
footer.col-md-12 {
margin-top: 10px;
margin-bottom: 0px;
text-align: center;
/* font-weight: 200; */
border-top: hsl(200,80%,25%) 1px solid;
padding-top: 10px;
}
.bs-sidebar.well { /* csslint allow: adjoining-classes */
max-height: 88%;
}
.bs-sidenav {
padding-top: 0px;
padding-bottom: 0px;
}
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
border-right: 1px solid;
}
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
border-left: 1px solid;
}
@media (min-width: 992px) {
.bs-sidebar.affix { /* csslint allow: adjoining-classes */
top: 60px;
z-index: 1;
}
}