8
0
daux.io/themes/daux/less/structure.less

345 Zeilen
6.6 KiB
Plaintext

2014-02-16 12:28:06 +01:00
/* ===========================================================================================
Base CSS
============================================================================================== */
//Fonts
.roboto-slab {
2014-02-16 12:43:16 +01:00
&.light {
font-family: 'Roboto Slab', @font-family-sans-serif;
2014-02-16 12:43:16 +01:00
font-weight: 100;
}
&.book {
font-family: 'Roboto Slab', @font-family-sans-serif;
2014-02-16 12:43:16 +01:00
font-weight: 300;
}
&.regular {
font-family: 'Roboto Slab', @font-family-sans-serif;
2014-02-16 12:43:16 +01:00
font-weight: 400;
}
&.bold {
font-family: 'Roboto Slab', @font-family-sans-serif;
2014-02-16 12:43:16 +01:00
font-weight: 700;
}
2014-02-16 12:28:06 +01:00
}
//Typography
h1, h2, h3, h4, h5, h6 {
2014-02-16 12:43:16 +01:00
.roboto-slab.book;
2014-02-16 12:28:06 +01:00
}
h1 i {
font-size:26px;
}
2014-02-16 12:28:06 +01:00
pre {
2014-02-16 12:43:16 +01:00
padding: 0;
2014-02-16 12:28:06 +01:00
}
/* ===========================================================================================
Homepage
============================================================================================== */
.homepage-hero {
padding-top: 60px !important;
2014-02-16 12:43:16 +01:00
background-color: @light;
.kill-box-shadow;
border-radius: 0px;
border: none;
color: @dark;
overflow: hidden;
2014-02-16 14:21:13 +01:00
padding-bottom: 0;
margin-bottom: 0;
2014-02-16 12:43:16 +01:00
.text-center {
.roboto-slab.bold;
margin: 10px 0px;
}
h2 {
margin: 20px 0px;
}
2014-02-16 12:28:06 +01:00
}
2014-02-16 12:43:16 +01:00
2014-02-16 12:28:06 +01:00
.hero-buttons.container-fluid {
2014-02-16 12:43:16 +01:00
padding: 20px 0px;
background-color: @sidebar-hover;
.btn-hero.btn {
.roboto-slab.bold;
padding: 20px 30px;
.kill-background-image;
.kill-box-shadow;
border-radius: 0px;
text-shadow: none;
border: none;
.opacity(0.80);
margin: 0px 10px;
text-transform: uppercase;
border: 5px solid @dark;
@media (max-width: 767px) {
display: block; margin-bottom: 10px;
}
&:hover {
.opacity(1.0);
}
&.btn-secondary {
background-color: @sidebar-hover;
color: @dark;
}
&.btn-primary {
background-color: @dark;
color: @sidebar-background;
}
}
2014-02-16 12:28:06 +01:00
}
.homepage-content.container-fluid {
2014-02-16 12:43:16 +01:00
// color: white;
// background-color: @text;
background-color: white;
padding: 40px 0px;
.lead {
.roboto-slab.regular;
}
ul, ol {
padding: 20px 0px;
margin: 0 0 10px 0px;
li {
list-style: none;
padding-bottom: 5px;
&:before {
content: '';
width: 0px;
height: 0px;
border: 3px solid transparent;
border-left: 3px solid @light;
float: left;
display: block;
margin: 6px;
}
}
}
@media (max-width: 767px) {
padding: 40px 20px;
}
2014-02-16 12:28:06 +01:00
}
.homepage-footer.container-fluid {
2014-02-16 12:43:16 +01:00
background-color: @dark;
.kill-box-shadow;
border-radius: 0px;
color: light;
border: none;
@media (max-width: 767px) {
padding: 0 20px;
}
.footer-nav {
&:extend(.list-unstyled all);
2014-02-16 12:43:16 +01:00
margin: 40px 0px;
li {
a {
.roboto-slab.bold;
font-size: 16px;
line-height: 32px;
&:hover {
color: @light;
text-decoration: underline;
}
}
}
}
.twitter {
margin-top: 20px;
&:first-child {
2014-02-16 12:43:16 +01:00
margin-top: 40px;
}
}
2014-02-16 12:28:06 +01:00
}
/* ===========================================================================================
Docs Body & Page Structure
============================================================================================== */
html, body {
height: 100%;
background-color: #fff;
2014-02-16 12:28:06 +01:00
color: @text;
}
.columns {
.left-column {
background-color:@sidebar-background;
2014-02-16 12:43:16 +01:00
}
.right-column {
.content-page {
padding: 10px;
background-color:#fff;
2014-02-16 12:43:16 +01:00
}
}
2014-02-16 12:28:06 +01:00
}
2014-02-16 12:43:16 +01:00
.container-fluid .navbar-static-top {
margin-left:-15px;
margin-right:-15px;
2014-02-16 12:28:06 +01:00
}
//mobile friendly sub-nav
.responsive-collapse {
2014-02-16 12:43:16 +01:00
padding: 10px 15px;
display: block;
2014-02-16 12:43:16 +01:00
background-color: @lines;
border-bottom: 1px solid @lines;
2014-02-16 12:28:06 +01:00
}
2014-02-16 12:43:16 +01:00
2014-02-16 12:28:06 +01:00
.sub-nav-collapse {
display: none;
}
.content-area,
.article-tree {
padding: 0px;
}
@media screen and (min-width: 767px) {
body {
//Needed only for floating code blocks
background-color:@light;
}
.navbar-static-top {
position:fixed;
z-index: @zindex-navbar-fixed;
width:100%;
}
.responsive-collapse {
2014-02-16 12:43:16 +01:00
display: none;
}
.sub-nav-collapse {
display: block !important;
}
//100% Height Columns
.container-fluid {
&.fluid-height {
height:100%;
}
}
.content-area,
.article-tree {
overflow: auto;
height: 100%;
}
.columns {
height:100%;
padding-top:@navbar-height;
.left-column {
border-right:1px solid @lines;
overflow-x:hidden;
}
.right-column {
.content-page {
padding:20px;
min-height:100%;
}
}
2014-02-16 12:43:16 +01:00
}
2014-02-16 12:28:06 +01:00
}
//CSS For Fluid Tables
@media only screen and (max-width: 800px) {
2014-02-16 12:43:16 +01:00
/* Force table to not be like tables anymore */
table,
thead,
tbody,
th,
td,
tr {
display: block;
border: none;
}
/* Hide table headers (but not display: none;, for accessibility) */
thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
tr {
margin-bottom: 10px;
border-bottom: 2px solid #ccc;
td, th {
border: 1px solid #ccc;
border-bottom: none;
}
}
td {
/* Behave like a "row" */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50% !important;
white-space: normal;
text-align: left;
}
td:before {
/* Now like a table header */
position: absolute;
/* Top/left values mimic padding */
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
text-align: left;
font-weight: bold;
}
/* Label the data */
td:before {
content: attr(data-title);
}
2014-02-16 12:28:06 +01:00
}
@media print {
.content-area {
width:100% !important;
}
h1 a[href]:after {
font-size:50%;
}
}