silverstripe-docsviewer/css/layout.css

843 lines
15 KiB
CSS
Raw Normal View History

html {
2016-12-02 03:31:18 +01:00
background: #fff;
font: 15px/1.5 "proxima-nova", "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #586667;
padding-bottom: 40px;
-webkit-font-smoothing: antialiased;
box-sizing: border-box;
overflow-y: scroll;
}
*, *:before, *:after {
box-sizing: inherit;
}
/*! container */
.wrapper {
2016-12-02 03:31:18 +01:00
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
.introduction {}
2016-12-02 03:31:18 +01:00
.introduction h1 {
margin-bottom: 20px;
}
2016-12-02 03:31:18 +01:00
.introduction p {
font-size: 20px;
margin-bottom: 10px;
max-width: 80%;
}
2014-09-07 10:35:08 +02:00
.no-box {
2016-12-02 03:31:18 +01:00
padding: 15px;
2014-09-07 10:35:08 +02:00
}
/*! main content column */
#content {
2016-12-02 03:31:18 +01:00
float: right;
width: 72%;
}
2016-12-02 03:31:18 +01:00
#content .box {
padding: 30px 5px;
}
/*! sidebar */
#sidebar {
2016-12-02 03:31:18 +01:00
float: left;
padding-top:20px;
}
#sidebar .nav,
#sidebar .minor-nav {
margin: 0;
padding: 0;
list-style: none;
}
#sidebar .nav {
font-size: 16px;
}
#sidebar .nav .top {
width: 100%;
display: block;
line-height: 15px;
color: #808c8d;
padding: 15px 15px 14px;
text-transform: uppercase;
}
#sidebar .nav .current .top {
color: #1389CE;
font-weight: 700;
}
#sidebar .nav a {
display:block;
padding-top:7px;
padding-bottom:7px;
padding-right:12px;
}
/* Sidebar hover states */
#sidebar .nav a:hover,
#sidebar .nav a.top:hover,
#sidebar .nav .section ul li .section:hover,
#sidebar .nav a.current:hover,
/* Sidebar focus states */
#sidebar .nav a:focus,
#sidebar .nav a.top:focus,
#sidebar .nav .section ul li .section:focus,
#sidebar .nav a.current:focus {
background-color: #1389ce;
color: #fff;
text-decoration: none;
-webkit-transition: all 500ms ease;
-moz-transition: all 500ms ease;
transition: all 500ms ease;
}
#sidebar .nav .section .top {
border: none;
color: #1389CE;
}
#sidebar li {
margin: 0;
list-style:none;
}
#sidebar li a.current {
color:#fff;
}
#sidebar .nav > li {}
#sidebar .nav .section ul,
#sidebar .nav .current ul {
border-bottom: 1px solid #eee;
margin: 0;
padding:0;
}
#sidebar .nav .section ul li a,
#sidebar .nav .current ul li a {
padding-left:30px;
}
#sidebar .nav .section ul li a.section {
color: #1389CE;
}
#sidebar .nav .section ul li ul li a,
#sidebar .nav .current ul li ul li a {
padding-left:48px;
font-size:14px;
}
#sidebar .nav a.current {
color: #1389CE;
font-weight: 700;
}
#sidebar .minor-nav a {
color: #181C17;
opacity: 0.4;
filter: alpha(opacity=40);
}
#sidebar .search {}
#sidebar .search fieldset {
border-bottom: 1px solid #eee;
padding: 15px 10px 14px;
}
#sidebar .search label,
#sidebar .search .Actions {
display: none;
}
#sidebar .search input {
width: 100%;
outline: none;
border-radius: 2px;
border: 1px solid #ddd;
padding: 9px;
}
#sidebar .search input:focus {
border-color: #1389ce;
}
#layout {
2016-12-02 03:31:18 +01:00
padding-bottom: 20px;
position:relative;
}
#masthead {
2016-12-02 03:31:18 +01:00
padding: 50px 0;
background:#f6f7f8;
position:relative;
}
2016-12-02 03:31:18 +01:00
#masthead.has_versions {
padding-bottom: 0;
}
2016-12-02 03:31:18 +01:00
#masthead .wrapper {
overflow: hidden;
}
.versions {
2016-12-02 03:31:18 +01:00
float: right;
}
2016-12-02 03:31:18 +01:00
.versions p {
margin: 0 0 5px;
font-size: 12px;
}
2016-12-02 03:31:18 +01:00
.versions ul {
margin: 0;
padding: 0;
}
2016-12-02 03:31:18 +01:00
.versions li {
list-style: none;
display: block;
float: left;
margin: 0 0 0 5px;
}
2016-12-02 03:31:18 +01:00
.versions li a {
padding: 10px 15px;
display: block;
}
2016-12-02 03:31:18 +01:00
.versions .current {
background: #fff;
}
/*! language */
#language {}
2016-12-02 03:31:18 +01:00
#language label {
float: left;
width: 830px;
line-height: 19px;
text-align: right;
font-size: 11px;
color: #999;
}
#language select {
float: right;
width: 120px;
}
#language input.action {
float: right;
margin-top: 4px;
}
/* Header */
#header {
2016-12-02 03:31:18 +01:00
padding: 0 0 14px 0;
overflow: hidden;
}
2016-12-02 03:31:18 +01:00
#header h1 {
margin: 0;
line-height: 38px;
float: left;
}
2016-12-02 03:31:18 +01:00
#header h1 a {
text-decoration: none;
font-size: 22px;
color: #0973A6;
letter-spacing: -1px;
}
2016-12-02 03:31:18 +01:00
#header .logo {
background: #fff url(../../docsviewer/images/logo.jpg) no-repeat bottom left;
height: 36px; width: 140px;
display: inline-block;
}
/* Search Results */
#search-results {}
2016-12-02 03:31:18 +01:00
#search-results li {
list-style: none;
border-bottom: 1px solid #ddd;
padding: 0 0 19px 0;
margin: 0 0 20px 0;
background: none;
}
/* Comments */
#comments {
2016-12-02 03:31:18 +01:00
clear: both;
padding-top: 18px;
}
2016-12-02 03:31:18 +01:00
#comments .notice {
font-size: 14px;
}
/* Footer */
#footer {
2016-12-02 03:31:18 +01:00
margin: 20px auto;
padding: 0 30px;
}
2016-12-02 03:31:18 +01:00
#footer p {
color: #798D85;
}
2016-12-02 03:31:18 +01:00
#footer p a {
color: #798D85;
}
/*! Pagination */
#page-numbers span,
#page-numbers a {
2016-12-02 03:31:18 +01:00
padding: 3px 5px;
}
2014-09-07 10:35:08 +02:00
#page-numbers span {}
2014-09-07 10:35:08 +02:00
2016-12-02 03:31:18 +01:00
#page-numbers a:hover {
color: #FFFFFF;
background-color: #005F99;
}
.pagination {
2016-12-02 03:31:18 +01:00
margin: 27px 0;
}
2016-12-02 03:31:18 +01:00
.pagination li {
display: inline;
background: none;
padding: 0 4px 0 0;
}
2016-12-02 03:31:18 +01:00
.pagination li strong, .pagination li a {
padding: 1px 4px;
}
2016-12-02 03:31:18 +01:00
.pagination li.active strong {
background-color: #c3dbd4;
}
2016-12-02 03:31:18 +01:00
.pagination li a:hover {
background-color: #0973A6;
color: #fff;
text-decoration: none;
}
/* Table of contents */
#table-of-contents {
2016-12-02 03:31:18 +01:00
margin: 0 0 10px 0;
padding: 6px 6px 6px 10px;
background: #f6fbfe;
border: 1px solid #DDE8ED;
border-radius: 4px;
cursor: pointer;
margin-bottom: 21px;
}
#table-of-contents h4 {
font-size: 14px;
margin: 0;
padding: 0;
}
#table-of-contents h4 span.updown {
color: #a2c1d0;
margin-left: 6px;
font-size: 10px;
}
#table-of-contents h4:hover {
opacity: 0.8;
filter: alpha(opacity=80);
}
#table-of-contents ul {
margin: 0;
padding: 0;
}
#table-of-contents li {
line-height: 14px;
padding: 0;
list-style: none;
margin: 0;
line-height: 20px;
}
#table-of-contents li.H2 { padding-left:20px; }
#table-of-contents li.H3 { padding-left:40px; }
#table-of-contents li.H4 { padding-left:60px; }
#table-of-contents li.H5 { padding-left:80px; }
#table-of-contents li.H6 { padding-left:100px; }
#table-of-contents li li {
padding-left: 20px;
}
#table-of-contents a,
#table-of-contents a:visited {
color: #1389ce;
text-decoration: none;
}
#table-of-contents a:hover,
#table-of-contents a:focus {
text-decoration: underline;
color: #1389ce;
}
/*! Messages */
/**
* Example:
* <div class="info">
2016-12-02 03:31:18 +01:00
* <h5>This is a info message</h5>
* <p>Body text</p>
* <a href="#" class="close" title="Close notification">close</a>
* </div>
*/
#content .warningBox h5,
#content .hint h5,
#content .notice h5,
#content .warning h5,
#content .info h5 {
2016-12-02 03:31:18 +01:00
margin-bottom: 0px;
}
.hint a.close,
.notice a.close,
.warning a.close,
.info a.close {
2016-12-02 03:31:18 +01:00
background:url(../../docsviewer/images/ico_close_off.png) no-repeat scroll left top transparent;
display:block;
font-size:0;
height:11px;
position:absolute;
right:3px;
text-indent:-9999px;
top:3px;
width:11px;
}
.hint,
2014-09-26 10:15:53 +02:00
.note,
.notice,
.warning,
2014-09-28 05:58:23 +02:00
.alert,
2014-09-26 10:15:53 +02:00
.info,
.pageSkip,
.warningBox {
2016-12-02 03:31:18 +01:00
border-radius:4px;
padding: 10px 20px;
clear: both;
position: relative;
margin: 20px 0;
}
2016-12-02 03:31:18 +01:00
.typography .note h3,
.typography .hint h3 {
line-height: 27px;
}
2014-09-26 10:15:53 +02:00
2014-09-28 02:34:49 +02:00
.hint p,
.note p,
.notice p,
2014-09-28 05:58:23 +02:00
.alert p,
2014-09-28 02:34:49 +02:00
.warning p,
.info p,
.warningBox p {
2016-12-02 03:31:18 +01:00
margin-bottom: 0;
font-weight:400;
2014-09-28 02:34:49 +02:00
}
.pageSkip {
2016-12-02 03:31:18 +01:00
background-color: #f9fafa;
border: 1px solid #a5b5b0;
text-align: center;
}
2014-09-26 10:15:53 +02:00
2014-09-28 02:34:49 +02:00
.notice,
.note,
.warningBox {
2016-12-02 03:31:18 +01:00
background: #FFFFAD;
}
2014-09-26 10:15:53 +02:00
2014-09-28 05:58:23 +02:00
.warning,
.alert {
2016-12-02 03:31:18 +01:00
background: #FF8480;
color:#fff;
}
.warning a,
.alert a {
2016-12-02 03:31:18 +01:00
color:#fff;
text-decoration:underline;
}
.warning code,
.alert code {
2016-12-02 03:31:18 +01:00
color:#666;
}
2014-09-26 10:15:53 +02:00
2015-06-17 00:59:47 +02:00
.hint {
2016-12-02 03:31:18 +01:00
background: #f4f4f4;
}
.info {
2016-12-02 03:31:18 +01:00
background: #CAF7FF;
2015-06-17 00:59:47 +02:00
}
.warning p {
2016-12-02 03:31:18 +01:00
margin-bottom: 0;
2015-06-17 00:59:47 +02:00
}
.warningBoxTop {
2016-12-02 03:31:18 +01:00
padding: 10px 10px 10px 70px;
background: url(../../docsviewer/images/warning.png) no-repeat 18px 14px;
}
.warningBoxTop h1 {
2016-12-02 03:31:18 +01:00
margin-bottom: 0;
}
.warningBoxTop ul {
2016-12-02 03:31:18 +01:00
margin: 9px 0 18px;
}
.warningBoxTop li {
2016-12-02 03:31:18 +01:00
margin-bottom: 0;
}
.warningBox {
2016-12-02 03:31:18 +01:00
margin-top: 0;
}
.warningBoxBottom {
2016-12-02 03:31:18 +01:00
background-color: #0973A6;
padding: 12px 0 16px;
}
2016-12-02 03:31:18 +01:00
.warningBoxBottom a { color: #fff; }
.warningBoxBottom a:hover { color: #f3fbfe; }
.warningBoxBottom ul { margin: 0 0 0 40px; }
.warningBoxBottom li { background: none; margin-bottom: 0; }
2014-09-07 12:14:10 +02:00
.doc-breadcrumbs {}
2016-12-02 03:31:18 +01:00
.doc-breadcrumbs p {
margin: 0 0 5px 0;
color: #999;
font-size: 38px;
}
2016-12-02 03:31:18 +01:00
.doc-breadcrumbs p a {
color: rgb(3, 91, 136);
text-decoration:none;
font-weight:200;
}
2016-12-02 03:31:18 +01:00
.doc-breadcrumbs p a.current {
color:#696868;
}
.menu-open {
2016-12-02 03:31:18 +01:00
display:none;
}
.well {
2016-12-02 03:31:18 +01:00
min-height: 20px;
padding: 19px;
margin-bottom: 40px;
background-color: #f5f5f5;
border: 1px solid #e3e3e3;
border-radius: 4px;
box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}
2016-12-02 03:31:18 +01:00
.well h4 {
margin-top: 0;
}
.result {}
2016-12-02 03:31:18 +01:00
.result h2 {
margin-bottom: 0;
}
.documentation_children {
2016-12-02 03:31:18 +01:00
overflow: hidden;
padding-bottom: 20px;
}
.documentation_children ul {
margin: 0;
}
.documentation_children h3 {
font-size: 18px;
border-top: 1px solid #ddd;
padding-top: 19px;
margin-top: 0;
margin-bottom: 0 0 1px 0;
}
.documentation_children li {
float: left;
width: 33%;
margin: 0 0 40px;
padding: 0 3% 0 0;
list-style: none;
}
.documentation_children li:nth-child(3n+1) {
clear: both;
}
.documentation_children p {
font-size: 15px;
opacity: 0.9;
filter: alpha(opacity=90);
}
.btn {
2016-12-02 03:31:18 +01:00
background: #eee;
padding: 10px;
border-radius: 4px;
font-weight: 400;
}
.btn:hover {
2016-12-02 03:31:18 +01:00
text-decoration:none;
background:#E7E6E6;
}
.next-prev {
2016-12-02 03:31:18 +01:00
border-top: 1px solid #eee;
margin-top: 20px;
padding-top: 19px;
}
2016-12-02 03:31:18 +01:00
.next-prev a {
color: #798D85;
}
2016-12-02 03:31:18 +01:00
.next-prev p {
margin: 0;
}
2016-12-02 03:31:18 +01:00
.next-prev .prev-link {
float: left;
}
2016-12-02 03:31:18 +01:00
.next-prev .next-link {
float: right;
}
@media (max-width: 767px) {
2016-12-02 03:31:18 +01:00
a.breadcrumb, .introduction p {
font-size:14px;
}
2016-12-02 03:31:18 +01:00
.documentation_children li {
float: none;
width: auto;
}
2016-12-02 03:31:18 +01:00
.next-prev .prev-link,
.next-prev .next-link {
float:none;
margin:20px 0;
}
}
@media (min-width: 768px) {
2016-12-02 03:31:18 +01:00
.wrapper {
width: 750px;
}
2016-12-02 03:31:18 +01:00
.documentation_children li {
width: 50%;
}
}
@media (min-width: 992px) {
2016-12-02 03:31:18 +01:00
.wrapper {
width: 970px;
}
2016-12-02 03:31:18 +01:00
#sidebar {
width: 25%;
}
/* Removes close button on desktop view */
#sidebar .menu-close {
display: none;
}
2016-12-02 03:31:18 +01:00
.documentation_children li {
width:33%;
}
}
@media (min-width: 1200px) {
2016-12-02 03:31:18 +01:00
.wrapper {
width: 1170px;
}
}
/* Sidebar mobile styles (default:hidden) */
@media (max-width: 991px) {
2016-12-02 03:31:18 +01:00
#sidebar {
position: fixed;
background: transparent;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
z-index: -1; /* [-1] Sidebar: hidden, [0] Page, [1] Sidebar: Show */
box-shadow: none;
overflow-x: hidden;
overflow-y: auto;
-webkit-transition: all 300ms ease;
-moz-transition: all 300ms ease;
transition: all 300ms ease;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-moz-box-shadow: none!important;
-webkit-box-shadow: none!important;
box-shadow: none!important;
}
/* Opened sidebar styles */
#sidebar.open {
z-index: 1;
background: #fff;
opacity: 1;
}
/* Fade out sidebar state styles before class is removed */
#sidebar.hide {
z-index: 1;
background: transparent;
color: white;
}
#content {
float:none;
width:auto;
}
#masthead {
padding:20px 0;
}
.doc-breadcrumbs p {
font-size:18px;
}
.introduction p {
font-size:14px;
}
/* Menu button styles */
.wrapper .menu-open {
display: block;
position: relative;
width: 70px;
height: 40px;
margin-left: auto;
margin-bottom: 20px;
padding: 7px 10px;
font-weight: 700;
text-decoration: none;
text-transform: uppercase;
color: #1389ce;
background-color: transparent;
border: 2px solid #1389ce;
border-radius: 5px;
cursor: pointer;
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
}
.wrapper .menu-open:hover {
background-color: #1389ce;
color: #fff;
transition: 300ms 0.1s ease;
}
/* Close button styles */
.menu-close {
display: block;
position: relative;
margin-left: auto;
margin-right: 10px;
padding: 0px 12px;
font-size: 33px;
font-weight: 700;
line-height: 33px;
text-decoration: none;
color: #1389ce;
width: 40px;
height: 40px;
cursor: pointer;
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
}
.menu-close:hover {
text-decoration: none;
}
}
/* Hamburger positioning */
@media (max-width:992px) {
2016-12-02 03:31:18 +01:00
#content {
float: right;
width: 100%;
}
}
#content pre {
display: block;
margin-bottom: 25px;
}
pre .nocode {
background-color: none;
color: #000;
}
ol.linenums {
margin-top: 0;
margin-bottom: 0;
color: #AEAEAE;
}
li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 {
list-style-type: none;
}
li.L1, li.L3, li.L5, li.L7, li.L9 {}