Deployed 2a5fdd8 with MkDocs version: 0.15.3

This commit is contained in:
Vinta
2016-03-13 22:21:31 +08:00
parent 0d6f3d9b08
commit d45c12312f
18 changed files with 584 additions and 204 deletions

View File

@ -2,11 +2,42 @@ body {
padding-top: 70px;
}
h1[id]:before, h2[id]:before, h3[id]:before, h4[id]:before, h5[id]:before, h6[id]:before {
/*
* 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 {
content: "";
display: block;
margin-top: -75px;
height: 75px;
pointer-events: none;
animation: 0s 1s forwards collapse-anchor-padding-1;
}
body.clicky :target::before {
animation-name: collapse-anchor-padding-2;
}
@keyframes collapse-anchor-padding-1 {
to {
margin-top: 0;
height: 0;
}
}
@keyframes collapse-anchor-padding-2 {
to {
margin-top: 0;
height: 0;
}
}
ul.nav li.main {
@ -25,6 +56,26 @@ div.source-links {
float: right;
}
div.col-md-9 img {
max-width: 100%;
}
code {
padding: 1px 3px;
background: #ecf0f1;
border: solid 1px #ccc;
color: #7b8a8b;
}
pre code {
background: transparent;
border: none;
}
a > code {
color: #18bc9c;
}
/*
* Side navigation
*
@ -111,3 +162,53 @@ div.source-links {
width: 263px;
}
}
.headerlink {
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;
}
/* display submenu relative to parent*/
.dropdown-submenu {
position: relative;
}
/* sub menu stlye */
.dropdown-submenu>.dropdown-menu {
top: 0;
left: 100%;
margin-top: 0px;
margin-left: -1px;
-webkit-border-radius: 0 4px 4px 4px;
-moz-border-radius: 0 4px 4px;
border-radius: 0 4px 4px 4px;
}
/* display sub menu on hover*/
.dropdown-submenu:hover>.dropdown-menu {
display: block;
}
/* little arrow */
.dropdown-submenu>a:after {
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;
}
/* little arrow of parent menu */
.dropdown-submenu:hover>a:after {
border-left-color: #404040;
}