kyopages/theme/mkdocs/css/base.css

451 lines
8.6 KiB
CSS
Raw Normal View History

2017-06-01 11:21:03 +02:00
body {
2017-06-01 23:17:54 +02:00
padding-top: 70px;
2017-06-04 01:09:12 +02:00
/* background: url(../img/grid.png) repeat-x; */
2017-06-01 23:17:54 +02:00
background-attachment: fixed;
background-color: #f8f8f8;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
body > .container {
2017-06-01 23:17:54 +02:00
min-height: 400px;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
ul.nav .main {
2017-06-01 23:17:54 +02:00
font-weight: bold;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.col-md-3 {
2017-06-01 23:17:54 +02:00
padding-left: 0;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.col-md-9 {
2018-03-18 02:07:17 +01:00
padding-bottom: 100px;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.source-links {
2017-06-01 23:17:54 +02:00
float: right;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.col-md-9 img {
2017-06-01 23:17:54 +02:00
max-width: 100%;
display: inline-block;
padding: 4px;
line-height: 1.428571429;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
2018-03-18 02:07:17 +01:00
margin: 20px auto 30px auto;
2017-06-01 23:17:54 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
/*
* 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
* top. This is especially complicated because we want to *remove* the padding
* after navigation so that hovering over the header shows the permalink icon
* correctly. Thus, we create a CSS animation to remove the extra padding after
* a second. We have two animations so that navigating to an anchor within the
* page always restarts the animation.
*
* See <https://github.com/mkdocs/mkdocs/issues/843> for more details.
*/
:target::before {
2017-06-01 23:17:54 +02:00
content: "";
display: block;
margin-top: -75px;
height: 75px;
pointer-events: none;
animation: 0s 1s forwards collapse-anchor-padding-1;
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.clicky :target::before {
animation-name: collapse-anchor-padding-2;
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
@keyframes collapse-anchor-padding-1 {
2017-06-01 23:17:54 +02:00
to {
margin-top: 0;
height: 0;
}
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
@keyframes collapse-anchor-padding-2 {
2017-06-01 23:17:54 +02:00
to {
margin-top: 0;
height: 0;
}
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
h1 {
2017-06-01 23:17:54 +02:00
color: #444;
font-weight: 400;
font-size: 42px;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
h2, h3, h4, h5, h6 {
2017-06-01 23:17:54 +02:00
color: #444;
font-weight: 300;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
hr {
2017-06-01 23:17:54 +02:00
border-top: 1px solid #aaa;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
pre, .rst-content tt {
2017-06-01 23:17:54 +02:00
max-width: 100%;
background: #fff;
border: solid 1px #e1e4e5;
color: #333;
overflow-x: auto;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
code.code-large, .rst-content tt.code-large {
2017-06-01 23:17:54 +02:00
font-size: 90%;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
code {
2018-03-18 02:07:17 +01:00
padding: 2px 5px;
background: #fff;
border: solid 1px #e1e4e5;
2017-06-01 23:17:54 +02:00
color: #333;
2018-03-18 02:07:17 +01:00
white-space: pre-wrap;
word-wrap: break-word;
2017-06-01 23:17:54 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
pre code {
2017-06-01 23:17:54 +02:00
background: transparent;
border: none;
white-space: pre;
word-wrap: normal;
2018-03-18 02:07:17 +01:00
font-family: monospace,serif;
2017-06-01 23:17:54 +02:00
font-size: 12px;
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
a code {
2017-06-01 23:17:54 +02:00
color: #2FA4E7;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
a:hover code, a:focus code {
2017-06-01 23:17:54 +02:00
color: #157AB5;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
footer {
margin-top: 30px;
margin-bottom: 10px;
text-align: center;
font-weight: 200;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.modal-dialog {
2017-06-01 23:17:54 +02:00
margin-top: 60px;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
/*
* Side navigation
*
* Scrollspy and affixed enhanced navigation to highlight sections and secondary
* sections of docs content.
*/
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
/* By default it's not affixed in mobile views, so undo that */
.bs-sidebar.affix { /* csslint allow: adjoining-classes */
2017-06-01 23:17:54 +02:00
position: static;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.bs-sidebar.well { /* csslint allow: adjoining-classes */
2017-06-01 23:17:54 +02:00
padding: 0;
2018-03-18 02:07:17 +01:00
max-height: 90%;
2017-06-01 23:17:54 +02:00
overflow-y: auto;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
/* First level of nav */
.bs-sidenav {
2018-03-18 02:07:17 +01:00
padding-top: 10px;
padding-bottom: 10px;
2017-06-01 23:17:54 +02:00
border-radius: 5px;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
/* All levels of nav */
.bs-sidebar .nav > li > a {
2017-06-01 23:17:54 +02:00
display: block;
padding: 5px 20px;
z-index: 1;
2017-06-01 11:21:03 +02:00
}
.bs-sidebar .nav > li > a:hover,
.bs-sidebar .nav > li > a:focus {
2017-06-01 23:17:54 +02:00
text-decoration: none;
2018-03-18 02:07:17 +01:00
border-right: 1px solid;
2017-06-01 11:21:03 +02:00
}
.bs-sidebar .nav > .active > a,
.bs-sidebar .nav > .active:hover > a,
.bs-sidebar .nav > .active:focus > a {
2017-06-01 23:17:54 +02:00
font-weight: bold;
background-color: transparent;
2018-03-18 02:07:17 +01:00
border-right: 1px solid;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
/* Nav: second level (shown on .active) */
.bs-sidebar .nav .nav {
2017-06-01 23:17:54 +02:00
display: none; /* Hide by default, but at >768px, show it */
margin-bottom: 8px;
2017-06-01 11:21:03 +02:00
}
.bs-sidebar .nav .nav > li > a {
2017-06-01 23:17:54 +02:00
padding-top: 3px;
padding-bottom: 3px;
padding-left: 30px;
font-size: 90%;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
/* Show and affix the side nav when space allows it */
@media (min-width: 992px) {
2017-06-01 23:17:54 +02:00
.bs-sidebar .nav > .active > ul {
display: block;
}
/* Widen the fixed sidebar */
.bs-sidebar.affix, /* csslint allow: adjoining-classes */
.bs-sidebar.affix-bottom { /* csslint allow: adjoining-classes */
width: 213px;
}
.bs-sidebar.affix { /* csslint allow: adjoining-classes */
position: fixed; /* Undo the static from mobile first approach */
2018-03-18 02:07:17 +01:00
top: 80px;
2017-06-01 23:17:54 +02:00
}
.bs-sidebar.affix-bottom { /* csslint allow: adjoining-classes */
position: absolute; /* Undo the static from mobile first approach */
}
.bs-sidebar.affix-bottom .bs-sidenav, /* csslint allow: adjoining-classes */
.bs-sidebar.affix .bs-sidenav { /* csslint allow: adjoining-classes */
margin-top: 0;
margin-bottom: 0;
}
2017-06-01 11:21:03 +02:00
}
@media (min-width: 1200px) {
2017-06-01 23:17:54 +02:00
/* Widen the fixed sidebar again */
.bs-sidebar.affix-bottom, /* csslint allow: adjoining-classes */
.bs-sidebar.affix { /* csslint allow: adjoining-classes */
width: 263px;
}
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.headerlink {
2017-06-01 23:17:54 +02:00
font-family: FontAwesome;
font-size: 14px;
display: none;
padding-left: .5em;
}
h1:hover .headerlink,
h2:hover .headerlink,
h3:hover .headerlink,
h4:hover .headerlink,
h5:hover .headerlink,
h6:hover .headerlink{
display:inline-block;
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.admonition {
2017-06-01 23:17:54 +02:00
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
text-align: left;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.admonition.note { /* csslint allow: adjoining-classes */
2017-06-01 23:17:54 +02:00
color: #3a87ad;
background-color: #d9edf7;
border-color: #bce8f1;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.admonition.warning { /* csslint allow: adjoining-classes */
2017-06-01 23:17:54 +02:00
color: #c09853;
background-color: #fcf8e3;
border-color: #fbeed5;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.admonition.danger { /* csslint allow: adjoining-classes */
2017-06-01 23:17:54 +02:00
color: #b94a48;
background-color: #f2dede;
border-color: #eed3d7;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.admonition-title {
2017-06-01 23:17:54 +02:00
font-weight: bold;
text-align: left;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.dropdown-submenu {
2017-06-01 23:17:54 +02:00
position: relative;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.dropdown-submenu>.dropdown-menu {
2017-06-01 23:17:54 +02:00
top: 0;
left: 100%;
margin-top: -6px;
margin-left: -1px;
2018-03-18 02:07:17 +01:00
/* -webkit-border-radius: 0 6px 6px 6px;
-moz-border-radius: 0 6px 6px; */
2017-06-01 23:17:54 +02:00
border-radius: 0 6px 6px 6px;
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.dropdown-submenu:hover>.dropdown-menu {
2017-06-01 23:17:54 +02:00
display: block;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.dropdown-submenu>a:after {
2017-06-01 23:17:54 +02:00
display: block;
content: " ";
float: right;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-width: 5px 0 5px 5px;
border-left-color: #ccc;
margin-top: 5px;
margin-right: -10px;
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.dropdown-submenu:hover>a:after {
2017-06-01 23:17:54 +02:00
border-left-color: #fff;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.dropdown-submenu.pull-left { /* csslint allow: adjoining-classes */
2017-06-01 23:17:54 +02:00
float: none;
2017-06-01 11:21:03 +02:00
}
2018-03-18 02:07:17 +01:00
2017-06-01 11:21:03 +02:00
.dropdown-submenu.pull-left>.dropdown-menu { /* csslint allow: adjoining-classes */
2017-06-01 23:17:54 +02:00
left: -100%;
margin-left: 10px;
2018-03-18 02:07:17 +01:00
-webkit-border-radius: 6px 0 6px 6px;
-moz-border-radius: 6px 0 6px 6px;
2017-06-01 23:17:54 +02:00
border-radius: 6px 0 6px 6px;
}
2018-03-18 02:07:17 +01:00
2017-06-01 23:17:54 +02:00
/* mods kyopages */
2018-03-18 02:07:17 +01:00
h1 {
margin-top: 10px;
}
2017-07-08 20:51:48 +02:00
a {
color: hsl(200,80%,45%);
}
a:visited {
color: hsl(200,80%,25%);
}
2018-03-18 02:07:17 +01:00
ul {
padding-left: 20px;
}
2017-09-25 09:10:17 +02:00
blockquote {
padding: 10px;
border: 3px solid #eee;
background-color: #fafafa;
}
2017-07-08 20:51:48 +02:00
blockquote p {
font-size: 14px;
font-weight: unset;
line-height: 1.35;
}
2017-06-01 23:17:54 +02:00
.navbar-default {
2017-09-25 09:10:17 +02:00
background-image: linear-gradient( hsl(200,80%,45%), hsl(200,80%,25%) );
2017-06-01 23:17:54 +02:00
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #fff;
background-color: #178acc;
background-color: hsl(200,80%,35%);
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
color: #fff;
background-color: #178acc;
background-color: hsl(200,80%,45%);
}
2017-06-04 00:19:01 +02:00
.well {
min-height: 0px;
}
2017-06-14 03:32:46 +02:00
.table {
margin-bottom: 14px;
border-top: 1px solid #ccc;
}
.table>thead>tr>th,
.table>thead>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>th,
.table>tbody>tr>td,
.table>tfoot>tr>td {
padding: 5px;
/* line-height: 1.428571429; */
line-height: 1;
border: 1px solid #ccc;
2017-06-14 04:07:25 +02:00
vertical-align: middle;
}
.table>thead>tr>th,
.table>tbody>tr>th {
text-align: center;
2017-06-14 03:32:46 +02:00
}
2018-03-18 02:07:17 +01:00
.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;
}
}