1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/theme/mkdocs/css/base.css

758 lines
15 KiB
CSS
Raw Normal View History

html,
body {
margin: 0;
font-size: 14px;
background-color: #F0F0F0;
height: 100%;
width: 100%;
font-family: "Cabin", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
font-family: "Cabin", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 500;
line-height: 1.1;
color: #0e6b8d;
}
/* Content rendering styles */
#content {
font-size: 1.2em;
line-height: 1.8em;
}
#content h1 {
padding: 0.5em 0em 0em 0em;
}
#content h2 {
padding: 0.5em 0em 0.3em 0em;
/* Desktop click-to-scroll margin/padding fixes */
padding-top: 2em !important;
margin-top: -2em !important;
pointer-events:none;
}
#content h3 {
padding: 0.7em 0em 0.3em 0em;
}
#content ul {
margin: 1em 0em 1.2em 0.3em;
}
#content li {
margin: 0.5em 0em 0.3em 0em;
}
#content p {
margin-bottom: 1.2em;
}
#content pre {
margin: 2em 0em;
padding: 1em 2em !important;
line-height: 1.8em;
font-size: 1em;
}
#content blockquote {
background: #f2f2f2;
border-left-color: #ccc;
}
#content blockquote p {
line-height: 1.6em;
margin-bottom: 0em !important;
}
#content .search_input {
height: 30px;
color: #5992a3;
font-weight: bold;
padding: 10px 5px;
border: 1px solid #71afc0;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background: #fff;
}
#content .search_input:focus {
background: #fff;
outline: none;
border-color: #71afc0;
}
#content .search_input::-webkit-input-placeholder {
color: #71afc0;
}
/* Content rendering END */
/* Fix bootstrap madding (//padding) issue(s) */
.row {
margin-left: 0;
margin-right: 0;
}
[class^="col-"] > [class^="col-"]:first-child,
[class^="col-"] > [class*=" col-"]:first-child
[class*=" col-"] > [class^="col-"]:first-child,
[class*=" col-"]> [class*=" col-"]:first-child,
.row > [class^="col-"]:first-child,
.row > [class*=" col-"]:first-child{
padding-left: 0px;
}
[class^="col-"] > [class^="col-"]:last-child,
[class^="col-"] > [class*=" col-"]:last-child
[class*=" col-"] > [class^="col-"]:last-child,
[class*=" col-"]> [class*=" col-"]:last-child,
.row > [class^="col-"]:last-child,
.row > [class*=" col-"]:last-child{
padding-right: 0px;
}
.navbar {
border: none;
}
/* Previous & Next floating navigation */
#nav_prev_next {
position: fixed;
bottom: 0; right: 1em;
background: #fff !important;
border: 1px solid #ccc;
border-bottom: none;
list-style: none;
-webkit-border-radius: 7px 7px 0px 0px;
-moz-border-radius: 7px 7px 0px 0px;
border-radius: 7px 7px 0px 0px;
}
#nav_prev_next > li:hover > a {
background: none;
}
#nav_prev_next > li:hover > a > span {
color: #8fb0ba;
}
#nav_prev_next > li.prev {
text-align: right;
}
#nav_prev_next > li.next {
text-align: left;
}
#nav_prev_next > li > a {
padding: 0.5em 0.7em !important;
}
#nav_prev_next > li > a > span {
display: block;
color: #a4c9d4;
}
/* Scroll to top button */
#scroll_to_top {
position: fixed;
bottom: 0; left: 1em;
background: #fff !important;
border: 1px solid #ccc;
border-bottom: none;
list-style: none;
-webkit-border-radius: 7px 7px 0px 0px;
-moz-border-radius: 7px 7px 0px 0px;
border-radius: 7px 7px 0px 0px;
font-weight: bold;
}
#scroll_to_top > li:hover > a {
background: none;
}
#scroll_to_top > li:hover > a > span {
color: #8fb0ba;
}
#scroll_to_top > li.prev {
text-align: right;
}
#scroll_to_top > li.next {
text-align: left;
}
#scroll_to_top > li > a {
padding: 0.5em 0.7em !important;
}
#scroll_to_top > li > a > span {
display: block;
color: #a4c9d4;
min-width: 75px;
}
/* Top navigation from Docker IO */
#header {
margin-bottom: 0;
width: 100%;
height: 70px;
z-index: 10;
background-color: #f2f2f2;
}
#header .brand > img {
height: 70px;
}
#header ul li a {
padding: 25px 15px 25px 15px;
color: #777777;
}
#header .navbar-nav {
float: right;
}
#header .navbar-inner {
padding-right: 0px;
padding-left: 0px;
}
#header ul li.active {
color: #555555;
background-color: #d8d8d8;
}
#header ul li.active a:hover {
background-color: #d8d8d8;
}
/* Horizontal Thin Sticky Menu */
#horizontal_thin_menu {
width: 100%;
background-color: #5992a3;
height: 30px;
color: white;
text-align: right;
padding: 5px 10px;
}
#horizontal_thin_menu a {
display: inline-block;
color: white;
padding: 0px 10px;
}
/* Submenu (dropdown) styling */
.dd_menu {
cursor: pointer;
}
.dd_menu .dd_submenu {
display: none;
position: absolute;
top: 50px;
list-style: none;
margin: 0px;
margin-left: -15px;
font-size: 18px;
overflow-y: auto;
background: #fff;
border: 1px solid #ccc;
border-top: none;
border-bottom: 3px solid #ccc;
-webkit-border-radius: 0px 0px 4px 4px;
-moz-border-radius: 0px 0px 4px 4px;
border-radius: 0px 0px 4px 4px;
padding: 0px;
}
.dd_menu.dd_on_hover .dd_submenu {
display: block;
}
.dd_menu.dd_on_hover .dd_submenu > li:first-child {
border: none;
}
.dd_menu.dd_on_hover .dd_submenu > li {
border-top: 1px solid #ddd;
}
.dd_menu.dd_on_hover .dd_submenu > li.active > a {
border-color: #b1d5df;
color: #FF8100 !important;
}
.dd_menu.dd_on_hover .dd_submenu > li:hover {
background: #eee;
}
.dd_menu.dd_on_hover .dd_submenu > li > a {
padding: 0.6em 0.8em 0.4em 0.8em;
width: 100%;
display: block;
}
/* Main Docs navigaton menu (horizontal) */
#nav_menu {
position: relative;
width: 100%;
background-color: #71afc0;
padding: 0px 10px;
color: white;
}
#nav_menu > #docsnav > #nav_search_toggle {
display: none;
margin-top: 10px;
}
#nav_menu > #docsnav > #nav_search {
margin-top: 10px;
}
.search_input {
height: 30px;
color: #5992a3;
font-weight: bold;
padding: 10px 5px;
background: #b1d5df;
border: 1px solid #71afc0;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.search_input:focus {
background: #fff;
outline: none;
}
.search_input::-webkit-input-placeholder {
color: #71afc0;
}
#nav_menu > #docsnav > #mobile_menu_button {
display: none;
float: left;
height: 50px;
font-size: 1.2em;
padding: 0em 14px;
padding-top: 12px;
}
#nav_menu > #docsnav > .arrow {
display: none;
}
#nav_menu > #docsnav > #main-nav {
height: 50px;
margin: 0px;
padding: 0em;
}
#nav_menu > #docsnav > #main-nav > li {
display: block;
padding: 0em 14px;
height: 100%;
padding-top: 12px;
color: #fff;
font-size: 1.2em;
}
#nav_menu > #docsnav > #main-nav > li.active {
background: #5992a3;
}
#nav_menu > #docsnav > #main-nav > li.dd_on_hover {
background: #b1d5df;
color: #5992a3;
}
#nav_menu > #docsnav > #main-nav > li > span > b {
border-top-color: #b1d5df !important;
}
#nav_menu > #docsnav > #main-nav > li.dd_on_hover > span > b {
border-top-color: #71afc0 !important;
}
#nav_menu > #docsnav > #main-nav > li form {
margin-top: -12px;
}
#nav_menu > #docsnav > #main-nav > li.home > a {
color: #fff;
}
#nav_menu > #docsnav > #main-nav > li.home:hover {
background: #b1d5df;
}
#nav_menu > #docsnav > #main-nav > li.home:hover > a {
color: #5992a3;
}
/* TOC (Left) */
#toc_table {
margin-right: 1em;
}
#toc_table > h2 {
margin: 0px;
font-size: 1.7em;
font-weight: bold;
color: #0e6b8d;
}
#toc_table > h2 > a > b {
display: none;
border-top-color: #0e6b8d !important;
}
#toc_table > h3 {
font-size: 1em;
color: #0e6b8d;
}
#toc_table > #toc_navigation {
display: block;
margin-top: 1.5em !important;
background: #fff;
border-bottom: 3px solid #ddd;
border: 1px solid #eee;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
#toc_table > #toc_navigation > li {
font-size: 1.2em;
padding-bottom: 0px;
padding: 0.2em 0.5em;
border-bottom: 1px solid #ddd;
text-align: left;
}
#toc_table > #toc_navigation > li > a {
padding: 0.4em 0.5em 0.4em 0em;
}
#toc_table > #toc_navigation > li > a:hover {
color: #71afc0;
background: none;
text-decoration: underline;
}
#toc_table > #toc_navigation > li > a > .active_icon {
display: none;
text-decoration: none;
width: 1.5em;
margin-top: 0.2em;
}
#toc_table > #toc_navigation > li.active > a > .active_icon {
display: block;
float: left;
}
#toc_table > #toc_navigation > li > a > .passive_icon {
text-decoration: none;
margin-right: 0.3em;
margin-top: 0.2em;
}
#toc_table > #toc_navigation > li.active > a > .passive_icon {
display: none;
float: left;
}
#toc_table > #toc_navigation > li.active > a {
color: #FF8100;
}
#toc_table .bs-sidenav {
margin: 0;
}
/* Main content area */
#content {
margin-left: -15px;
min-height: 500px;
}
ol.breadcrumb {
margin-left: -15px;
background: #fff;
border-bottom: 3px solid #ccc;
}
ol.breadcrumb > li + li:before {
content: "\3E";
}
ol.breadcrumb > li:last-child > a {
font-weight: bold;
}
ol.breadcrumb > li.edit-on-github:before {
content: none;
}
ol.breadcrumb > li.edit-on-github a {
color: #FF8100;
}
ol.breadcrumb > li.edit-on-github span {
margin-right: 0.25em;
}
#content h1 {
margin-top: 0px;
}
/* Footer from original CSSs */
@media (min-width: 960px) {
#footer {
height: 450px;
}
#footer .container {
max-width: 952px;
}
footer,
.footer {
margin-top: 160px;
}
footer .ligaturesymbols,
.footer .ligaturesymbols {
font-size: 30px;
color: black;
}
footer .ligaturesymbols a,
.footer .ligaturesymbols a {
color: black;
}
footer .footerlist,
.footer .footerlist {
float: left;
margin: 3px;
margin-right: 30px;
}
footer .footer-items-right,
.footer .footer-items-right {
text-align: right;
margin-top: -6px;
float: right;
}
footer .footer-licence,
.footer .footer-licence {
line-height: 2em;
}
footer form,
.footer form {
margin-bottom: 0px;
}
.footer-landscape-image {
bottom: 0;
width: 100%;
margin-bottom: 0;
background-image: url('../img/website-footer_clean.svg');
background-repeat: repeat-x;
height: 450px;
position: relative;
clear: both
}
.social {
margin-left: 0px;
margin-top: 15px;
}
.social .twitter,
.social .github,
.social .googleplus,
.social .facebook,
.social .slideshare,
.social .linkedin,
.social .flickr,
.social .youtube,
.social .reddit {
background: url("../img/social/docker_social_logos.png") no-repeat transparent;
display: inline-block;
height: 32px;
overflow: hidden;
text-indent: 9999px;
width: 32px;
margin-right: 5px;
}
.social :hover {
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-10deg);
-o-transform: rotate(-10deg);
-ms-transform: rotate(-10deg);
transform: rotate(-10deg);
}
.social .twitter {
background-position: -160px 0px;
}
.social .reddit {
background-position: -256px 0px;
}
.social .github {
background-position: -64px 0px;
}
.social .googleplus {
background-position: -96px 0px;
}
.social .facebook {
background-position: 0px 0px;
}
.social .slideshare {
background-position: -128px 0px;
}
.social .youtube {
background-position: -192px 0px;
}
.social .flickr {
background-position: -32px 0px;
}
.social .linkedin {
background-position: -224px 0px;
}
ul.unstyled,
ol.unstyled {
margin-left: -40px;
list-style: none;
}
}
/*****************************
* Mobile CSS Adjustments *
*****************************/
/* Horizontal nav. (menu & thin menu) convenience fix for Tablets */
@media (min-width: 768px) and (max-width: 952px) {
#docsnav, #horizontal_thin_menu {
width: 100% !important;
}
}
@media (max-width: 767px) {
/* TOC Table (Left) */
#toc_table {
padding: 1em;
margin: 0em -15px 15px 0em;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
cursor: pointer;
background: #fff;
border-bottom: 3px solid #ccc;
}
#toc_table > h2 {
margin-bottom: 0.3em;
font-size: 2em;
}
#toc_table > h2 > a > b {
display: inline-block;
}
#toc_table > h3 {
display: block;
margin: 0;
}
#toc_table > #toc_navigation {
display: none;
margin-top: 1em !important;
border: none;
background: #f2f2f2;
}
#toc_table > #toc_navigation > li > a > .passive_icon {
display: block;
display: inline-block;
}
#toc_table > #toc_navigation > li > a > .active_icon {
display: none;
}
}
/* Container responsiveness fixes to maximise realestate expenditure */
.container {
width: 100% !important;
}
.container-standard-sized {
max-width: 1050px;
}
.container-better {
max-width: 1050px;
}
@media (max-width: 900px) {
#nav_menu {
padding-left: 0px !important;
padding-right: 0px !important;
}
/* Dropdown Submenu adjust */
.dd_menu .dd_submenu > li > a {
padding: 1em 0.8em 0.7em 0.8em !important;
min-width: 10em;
}
/* Disable breadcrumbs */
ol.breadcrumb {
display: none;
}
/* Shrink main navigation menu to one item (i.e., form breadcrumbs) */
#nav_menu > #docsnav > #main-nav > li {
display: none;
}
#nav_menu > #docsnav > #main-nav > .dd_menu.active {
display: block;
background: #71afc0;
}
#nav_menu > #docsnav > #main-nav > .dd_menu.active:hover {
background: #b1d5df;
}
#nav_menu > #docsnav > #mobile_menu_button {
display: block;
}
#nav_menu > #docsnav > #mobile_menu_button:hover {
background: #b1d5df;
}
#nav_menu > #docsnav > #mobile_menu_button > b {
border-top-color: #b1d5df !important;
}
#nav_menu > #docsnav > #mobile_menu_button:hover > b {
border-top-color: #71afc0 !important;
}
#nav_menu > #docsnav > .arrow {
display: block;
}
/* Prev Next for Mobile */
#nav_prev_next {
background: #f2f2f2;
border-bottom: none;
list-style: none;
-webkit-border-radius: 7px 0px 0px 7px;
-moz-border-radius: 7px 0px 0px 7px;
border-radius: 7px 0px 0px 7px;
border: 1px solid #ccc;
font-weight: bold !important;
}
#nav_prev_next > li > a {
padding: 0.5em 0.7em !important;
}
#nav_prev_next > li > a > span, i {
display: none;
}
/* Scroll up */
#scroll_to_top {
background: #f2f2f2;
border-bottom: none;
list-style: none;
-webkit-border-radius: 0px 7px 7px 0px;
-moz-border-radius: 0px 7px 7px 0px;
border-radius: 0px 7px 7px 0px;
border: 1px solid #ccc;
}
#scroll_to_top > li > a {
padding: 0.5em 0.7em !important;
}
#scroll_to_top > li > a > span, i {
display: none;
}
/* Main Content Clip */
#content {
max-width: 100%;
}
/* Thin menu (login - signup) */
#horizontal_thin_menu { display: none; }
#header #nav_docker_io {
display: none;
}
#header #condensed_docker_io_nav {
display: block;
}
}
@media (min-width: 999px) {
/* Hide in-content search box for desktop */
#content .search_input {
display: none;
}
}
@media (max-width: 1025px) {
/* Search on mobile */
#nav_menu > #docsnav > #nav_search {
display: none;
}
#nav_menu > #docsnav > #nav_search_toggle {
display: block;
margin-top: 10px;
margin-right: 0.5em;
}
/* Show in-content search box for desktop */
#content .search_input {
display: block;
}
#nav_menu > #docsnav {
padding-left: 0px !important;
padding-right: 0px !important;
}
}