hubl/src/styles_old/components/sidebar.scss

124 lines
2.0 KiB
SCSS
Raw Normal View History

2019-05-14 15:32:42 +00:00
.no-sidebar {
flex: 1;
margin-top: 50px;
@include breakpoint(lg) {
margin-top: 0;
}
2020-05-27 06:44:54 +00:00
&.with-padding {
padding: 1.3rem;
2020-09-28 12:47:37 +00:00
@include breakpoint(lg) {
padding: 2.5rem;
}
2020-05-27 06:44:54 +00:00
}
2019-05-14 15:32:42 +00:00
}
.with-sidebar {
flex-grow: 1;
display: flex;
2019-05-14 16:19:30 +00:00
flex-direction: row;
2019-05-14 15:32:42 +00:00
align-items: stretch;
margin-top: 50px;
overflow: hidden;
2019-05-14 15:32:42 +00:00
@include breakpoint(lg) {
margin-top: 0;
}
2019-05-14 15:32:42 +00:00
.views-container {
flex: 1 0 0;
/*-webkit-backface-visibility: hidden;*/
2019-05-14 16:19:30 +00:00
&.sidebar-is-closed {
@include breakpoint(lg) {
2020-11-26 10:25:58 +00:00
margin-left: -18.5rem;
transform: translate(18.5rem);
}
2019-05-14 16:19:30 +00:00
}
2019-05-14 15:32:42 +00:00
}
>div {
transition: all 0.5s;
}
nav {
2020-11-26 10:25:58 +00:00
background: #F1F1F1;
2019-05-14 15:32:42 +00:00
transition: all 0.5s;
width: 25rem;
2019-05-14 15:32:42 +00:00
2020-06-18 18:02:54 +00:00
>solid-router {
2019-05-14 15:32:42 +00:00
flex: 0 0 auto;
>ul {
cursor: pointer;
2019-11-05 18:58:40 +00:00
display: flex;
flex-direction: column;
2019-05-14 15:32:42 +00:00
list-style: none;
margin: 0;
padding-left: 0;
li {
2020-11-26 10:25:58 +00:00
border-bottom: 1px solid #D6CECE;
&>a {
vertical-align: super;
2019-05-14 15:32:42 +00:00
}
}
2020-11-26 11:01:00 +00:00
&>li:first-child>a {
vertical-align: middle;
}
2019-05-14 15:32:42 +00:00
2020-06-18 18:02:54 +00:00
>solid-route {
2019-05-14 15:32:42 +00:00
2020-04-13 17:02:51 +00:00
&[active] {
2020-11-26 10:25:58 +00:00
background-color: var(--color-heading);
color: white;
2020-04-13 17:02:51 +00:00
}
2020-11-26 10:25:58 +00:00
&:hover:not([active]) {
background: #E4E4E4;
}
2019-05-14 15:32:42 +00:00
}
}
}
&.jsRightMenu {
display: none;
@include breakpoint(lg) {
display: block;
}
}
&.jsRightMenu:not([open]) {
2020-11-26 10:25:58 +00:00
transform: translate(18.5rem);
2019-05-14 15:32:42 +00:00
& .jsOffsiteToggle::before {
transform: rotate(180deg);
}
}
2020-01-19 12:19:25 +00:00
&.jsRightMenu[open] {
2020-01-19 12:19:25 +00:00
@include breakpoint(md) {
display: block;
2020-05-11 18:20:13 +00:00
background: var(--color-right-menu-background);
2020-01-19 12:19:25 +00:00
bottom: 0;
box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.12);
min-width: 60%;
position: fixed;
right: 0;
top: 50px;
2020-01-19 12:19:25 +00:00
z-index: 1;
}
@include breakpoint(lg) {
top: 83px;
}
2020-01-19 12:19:25 +00:00
}
2019-05-14 15:32:42 +00:00
}
2020-05-11 18:20:13 +00:00
}