2014-07-29 21:48:31 +04:00
|
|
|
//
|
|
|
|
// Global Container
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
#container {
|
2014-08-26 14:56:02 +04:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2014-07-29 21:48:31 +04:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2014-07-29 13:10:20 +04:00
|
|
|
//
|
|
|
|
// Main Layout
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// The <main> content wrapper
|
|
|
|
.viewport {
|
2014-08-26 14:56:02 +04:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2014-07-29 13:10:20 +04:00
|
|
|
overflow: hidden;
|
2014-07-29 18:35:03 +04:00
|
|
|
z-index: 500; // Above the .global-nav when collapsed
|
2014-09-02 20:35:23 +04:00
|
|
|
transition: transform $side-outlet-transition-duration cubic-bezier(0.1, 0.7, 0.1, 1);
|
2014-07-29 13:10:20 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (max-width: 900px) {
|
2014-08-26 14:56:02 +04:00
|
|
|
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
|
2014-07-29 21:48:31 +04:00
|
|
|
}
|
|
|
|
|
2014-09-01 20:45:06 +04:00
|
|
|
body.global-nav-expanded & {
|
2014-08-26 14:56:02 +04:00
|
|
|
transform: translate3d(260px, 0px, 0px);
|
2014-07-29 13:10:20 +04:00
|
|
|
}
|
2014-09-02 20:35:23 +04:00
|
|
|
|
2014-09-04 17:56:07 +04:00
|
|
|
body.right-outlet-expanded & {
|
2014-09-02 20:35:23 +04:00
|
|
|
@media (max-width: 350px) {
|
|
|
|
transform: translate3d(-100%, 0px, 0px);
|
|
|
|
}
|
|
|
|
@media (min-width: 351px) {
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 1000;
|
|
|
|
width: 1px;
|
|
|
|
background: #EDECE4;
|
|
|
|
}
|
|
|
|
transform: translate3d(-350px, 0px, 0px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.right-outlet {
|
|
|
|
background: $lightestgrey;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 350px;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2014-09-27 13:55:17 +04:00
|
|
|
overflow: hidden;
|
2014-09-02 20:35:23 +04:00
|
|
|
transition: transform $side-outlet-transition-duration cubic-bezier(0.1, 0.7, 0.1, 1);
|
|
|
|
transform: translate3d(60px, 0px, 0px);
|
2014-09-04 17:56:07 +04:00
|
|
|
body.right-outlet-expanded & {
|
2014-09-02 20:35:23 +04:00
|
|
|
transform: translate3d(0, 0px, 0px);
|
|
|
|
}
|
|
|
|
.outlet-pane {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
transform: translate3d(0, 0px, 0px);
|
|
|
|
opacity: 1;
|
|
|
|
|
2014-09-27 13:55:17 +04:00
|
|
|
overflow: auto;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
2014-09-27 02:19:18 +04:00
|
|
|
@media (min-width: 901px) {
|
|
|
|
transition: transform $side-outlet-transition-duration cubic-bezier(0.1, 0.7, 0.1, 1);
|
|
|
|
}
|
2014-09-02 20:35:23 +04:00
|
|
|
|
|
|
|
&.outlet-pane-out-left {
|
|
|
|
transform: translate3d(-100%, 0px, 0px);
|
|
|
|
}
|
|
|
|
&.outlet-pane-out-right {
|
|
|
|
transform: translate3d(100%, 0px, 0px);
|
|
|
|
}
|
|
|
|
&.outlet-pane-in {
|
|
|
|
transform: translate3d(0, 0px, 0px);
|
|
|
|
}
|
|
|
|
}
|
2014-07-29 13:10:20 +04:00
|
|
|
}
|
|
|
|
|
2014-07-29 17:19:46 +04:00
|
|
|
//
|
2014-08-16 20:39:52 +04:00
|
|
|
// The header bar - visible below 900px
|
2014-07-29 17:19:46 +04:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-07-29 13:10:20 +04:00
|
|
|
.page-header {
|
|
|
|
position: relative;
|
|
|
|
height: 44px;
|
|
|
|
line-height: 44px;
|
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
|
|
|
background: $darkgrey;
|
|
|
|
overflow: hidden;
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (min-width: 900px) {
|
2014-07-29 13:10:20 +04:00
|
|
|
height: 60px;
|
|
|
|
line-height: 60px;
|
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
}
|
2014-07-29 13:10:20 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
// Centered page heading
|
|
|
|
.page-title {
|
|
|
|
display: block;
|
|
|
|
height: 44px;
|
|
|
|
line-height: 44px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 15%;
|
|
|
|
color: #fff;
|
|
|
|
font-size: 1.8rem;
|
|
|
|
font-weight: normal;
|
|
|
|
letter-spacing: 0;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
@media (min-width: 900px) {
|
|
|
|
height: 60px;
|
|
|
|
line-height: 60px;
|
|
|
|
}
|
2014-07-29 13:10:20 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// The burger to expand .global-nav menu
|
|
|
|
.menu-button {
|
2014-09-21 23:35:33 +04:00
|
|
|
@include icon($i-menu, 18px) {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 22px;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
}
|
2014-07-29 13:10:20 +04:00
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 44px;
|
|
|
|
height: 44px;
|
|
|
|
color: #fff;
|
2014-07-29 17:19:46 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// The panel which wraps the main content area
|
|
|
|
// --------------------------------------------------
|
|
|
|
// We can't use position:fixed on .page-header because it would
|
|
|
|
// break the mobile menu. So we create an overflow-auto content
|
|
|
|
// area which scrolls just underneath the header, making it look
|
|
|
|
// like the header is position:fixed.
|
|
|
|
|
|
|
|
.page-content {
|
2014-08-26 14:56:02 +04:00
|
|
|
position: absolute;
|
|
|
|
top: 60px;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2014-07-29 17:19:46 +04:00
|
|
|
background: #fff;
|
|
|
|
overflow-y: auto;
|
2014-09-10 19:48:33 +04:00
|
|
|
overflow-x: hidden;
|
2014-07-29 17:19:46 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (max-width: 900px) {
|
2014-07-29 17:19:46 +04:00
|
|
|
top: 44px;
|
|
|
|
}
|
2014-07-29 13:10:20 +04:00
|
|
|
}
|