daux.io/themes/daux/less/_structure.less

131 lines
2.4 KiB
Plaintext
Raw Normal View History

2014-02-16 12:43:16 +01:00
2016-05-23 20:09:15 +02:00
*, *::after, *::before {
box-sizing: border-box;
2014-02-16 12:28:06 +01:00
}
2016-05-23 20:09:15 +02:00
body {
margin: 0;
padding: 0;
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;
}
2016-05-23 20:09:15 +02:00
.Columns {
&__left {
background-color: @sidebar-background;
2014-02-16 12:43:16 +01:00
}
2016-05-23 20:09:15 +02:00
&__right {
&__content {
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
2016-05-23 20:09:15 +02:00
.Collapsible {
//mobile friendly sub-nav
&__content {
display: none;
}
2014-02-16 12:43:16 +01:00
2016-05-23 20:09:15 +02:00
&__trigger {
2017-02-23 23:15:07 +01:00
margin: 12px;
2016-05-23 20:09:15 +02:00
padding: 7px 10px;
2017-02-23 23:15:07 +01:00
background-color: transparent;
2016-05-23 20:09:15 +02:00
border: none;
2017-02-23 23:15:07 +01:00
float: right;
.kill-background-image;
.kill-box-shadow;
2016-05-23 20:09:15 +02:00
&--bar {
display: block;
width: 18px;
height: 2px;
margin-top: 2px;
margin-bottom: 3px;
2017-02-23 23:15:07 +01:00
background-color: @light;
2016-05-23 20:09:15 +02:00
.kill-box-shadow;
}
&:hover {
2017-02-23 23:15:07 +01:00
background-color: @sidebar-hover;
.kill-box-shadow;
2016-05-23 20:09:15 +02:00
2017-02-23 23:15:07 +01:00
.Collapsible__trigger--bar {
background-color: @dark;
2016-05-23 20:09:15 +02:00
.kill-box-shadow;
}
}
}
}
@media screen and (min-width: 768px) {
body {
//Needed only for floating code blocks
background-color: @light;
}
2016-05-23 20:09:15 +02:00
.Navbar {
position: fixed;
2017-02-23 23:15:07 +01:00
z-index: 1030;
width: 100%;
}
2016-05-23 20:09:15 +02:00
.Collapsible {
2017-02-23 23:15:07 +01:00
&__trigger {
display: none !important;
2016-05-23 20:09:15 +02:00
}
2014-02-16 12:43:16 +01:00
2016-05-23 20:09:15 +02:00
&__content {
display: block !important;
}
}
2016-05-23 20:09:15 +02:00
.Columns {
height: 100%;
2016-05-23 20:09:15 +02:00
&::after,
&::before {
content: " ";
display: table;
}
2016-05-23 20:09:15 +02:00
&::after {
clear: both;
}
2016-05-23 20:09:15 +02:00
&__left, &__right {
position: relative;
min-height: 1px;
float: left;
overflow: auto;
height: 100%;
}
2016-05-23 20:09:15 +02:00
&__left {
width: 25%;
border-right: 1px solid @lines;
overflow-x: hidden;
}
2016-05-23 20:09:15 +02:00
&__right {
width: 75%;
2016-05-23 20:09:15 +02:00
&__content {
2017-02-23 23:15:07 +01:00
padding: 0 20px 20px;
min-height: 100%;
}
}
2014-02-16 12:43:16 +01:00
}
2014-02-16 12:28:06 +01:00
}