daux.io/themes/daux/scss/_structure.scss

146 lines
2.7 KiB
SCSS
Raw Normal View History

2019-05-28 22:12:50 +02:00
*,
*:after,
*:before {
2016-05-23 20:09:15 +02:00
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
}
/* ============================================================================
2014-02-16 12:28:06 +01:00
Docs Body & Page Structure
============================================================================ */
2014-02-16 12:28:06 +01:00
2018-02-26 22:46:36 +01:00
html {
font-size: 14px;
@media (--viewport-large) {
font-size: 16px;
}
}
2019-05-28 22:12:50 +02:00
html,
body {
2014-02-16 12:28:06 +01:00
height: 100%;
background-color: #fff;
color: var(--text);
2014-02-16 12:28:06 +01:00
}
2016-05-23 20:09:15 +02:00
.Columns {
&__left {
background-color: var(--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
@media (max-width: 768px) {
// mobile friendly sub-nav
/* stylelint-disable-next-line selector-class-pattern */
html:not(.no-js) .Collapsible__content {
height: 0;
overflow: hidden;
transition: height 400ms ease-in-out;
}
}
.Collapsible__trigger {
margin: 12px;
padding: 7px 10px;
background-color: transparent;
border: none;
float: right;
@include kill-background-image;
@include kill-box-shadow;
&__bar {
display: block;
width: 18px;
height: 2px;
margin-top: 2px;
margin-bottom: 3px;
background-color: var(--sidebar-collapsible--hamburger-color);
2016-05-23 20:09:15 +02:00
}
2014-02-16 12:43:16 +01:00
&:hover {
2019-05-28 22:12:50 +02:00
background-color: var(
--sidebar-collapsible--hamburger-hover-background
);
@include kill-box-shadow;
.Collapsible__trigger__bar {
background-color: var(--sidebar-collapsible--hamburger-hover-color);
2016-05-23 20:09:15 +02:00
}
}
}
@media screen and (min-width: 769px) {
body {
//Needed only for floating code blocks
background-color: var(--content-floating-blocks-background);
}
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%;
&:after,
&:before {
2016-05-23 20:09:15 +02:00
content: " ";
display: table;
}
&:after {
2016-05-23 20:09:15 +02:00
clear: both;
}
2019-05-28 22:12:50 +02:00
&__left,
&__right {
2016-05-23 20:09:15 +02:00
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 var(--sidebar-border);
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
}