124 lines
2.0 KiB
SCSS
124 lines
2.0 KiB
SCSS
.no-sidebar {
|
|
flex: 1;
|
|
margin-top: 50px;
|
|
|
|
@include breakpoint(lg) {
|
|
margin-top: 0;
|
|
}
|
|
|
|
&.with-padding {
|
|
padding: 1.3rem;
|
|
|
|
@include breakpoint(lg) {
|
|
padding: 2.5rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
.with-sidebar {
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
margin-top: 50px;
|
|
overflow: hidden;
|
|
|
|
@include breakpoint(lg) {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.views-container {
|
|
flex: 1 0 0;
|
|
/*-webkit-backface-visibility: hidden;*/
|
|
|
|
&.sidebar-is-closed {
|
|
|
|
@include breakpoint(lg) {
|
|
margin-left: -18.5rem;
|
|
transform: translate(18.5rem);
|
|
}
|
|
}
|
|
}
|
|
|
|
>div {
|
|
transition: all 0.5s;
|
|
}
|
|
|
|
nav {
|
|
background: #F1F1F1;
|
|
transition: all 0.5s;
|
|
width: 25rem;
|
|
|
|
>solid-router {
|
|
flex: 0 0 auto;
|
|
|
|
>ul {
|
|
cursor: pointer;
|
|
display: flex;
|
|
flex-direction: column;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding-left: 0;
|
|
|
|
li {
|
|
border-bottom: 1px solid #D6CECE;
|
|
&>a {
|
|
vertical-align: super;
|
|
}
|
|
}
|
|
|
|
&>li:first-child>a {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
>solid-route {
|
|
|
|
&[active] {
|
|
background-color: var(--color-heading);
|
|
color: white;
|
|
}
|
|
|
|
&:hover:not([active]) {
|
|
background: #E4E4E4;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.jsRightMenu {
|
|
display: none;
|
|
|
|
@include breakpoint(lg) {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
&.jsRightMenu:not([open]) {
|
|
transform: translate(18.5rem);
|
|
|
|
& .jsOffsiteToggle::before {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
|
|
&.jsRightMenu[open] {
|
|
|
|
@include breakpoint(md) {
|
|
display: block;
|
|
background: var(--color-right-menu-background);
|
|
bottom: 0;
|
|
box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.12);
|
|
min-width: 60%;
|
|
position: fixed;
|
|
right: 0;
|
|
top: 50px;
|
|
z-index: 1;
|
|
}
|
|
|
|
@include breakpoint(lg) {
|
|
top: 83px;
|
|
}
|
|
}
|
|
}
|
|
}
|