meshviewer/scss/modules/_sidebar.scss

143 lines
2.4 KiB
SCSS
Raw Permalink Normal View History

.sidebar {
box-sizing: border-box;
left: 0;
position: absolute;
transition: left .5s;
2016-06-19 11:14:13 +00:00
width: $sidebar-width;
2016-12-28 03:21:55 +00:00
z-index: 1005;
&.hidden {
2016-06-19 11:14:13 +00:00
left: -$sidebar-width - $button-distance;
.sidebarhandle {
2016-06-19 11:14:13 +00:00
left: $button-distance;
transform: scale(-1, 1);
2017-10-21 00:06:42 +00:00
// sass-lint:disable-block nesting-depth
&[aria-label] {
&::after {
transform: scale(-1, 1) translate(105px, 52px) !important; // sass-lint:disable-line no-important
}
}
}
@media screen and (max-width: map-get($grid-breakpoints, lg) - 1) {
width: auto;
}
}
.tab {
padding-bottom: 15px;
}
2017-02-04 02:01:17 +00:00
.node-list,
2018-01-04 23:18:50 +00:00
.node-links,
.link-list {
2017-02-04 02:01:17 +00:00
th,
td {
&:first-child {
width: 25px;
}
&:nth-child(2) {
overflow: hidden;
text-align: left;
text-overflow: ellipsis;
white-space: nowrap;
width: 50%;
}
}
}
2018-01-04 23:18:50 +00:00
.link-list {
2017-02-04 02:01:17 +00:00
th,
td {
2018-01-04 23:18:50 +00:00
&:nth-child(2) {
width: 60%;
}
}
}
2018-01-04 23:18:50 +00:00
.node-links {
padding-bottom: 15px;
2017-02-04 02:01:17 +00:00
th,
td {
2018-01-04 23:18:50 +00:00
&:first-child {
width: 35px;
}
}
}
2017-02-04 02:01:17 +00:00
.container {
2016-06-01 19:21:21 +00:00
background: transparentize($color-white, .03);
2017-10-26 19:40:55 +00:00
border-right: 1px solid darken($color-white, 10%);
min-height: 100vh;
overflow-y: visible;
&.hidden {
display: none;
}
}
@media screen and (max-width: map-get($grid-breakpoints, xl) - 1) {
background: $color-white;
font-size: .8em;
margin: 0;
2016-06-19 11:14:13 +00:00
width: $sidebar-width-small;
.sidebarhandle {
2016-06-19 11:14:13 +00:00
left: $sidebar-width-small + $button-distance;
}
2017-02-04 02:01:17 +00:00
.container,
.infobox {
border-radius: 0;
margin: 0;
}
}
@media screen and (max-width: map-get($grid-breakpoints, lg) - 1) {
height: auto;
min-height: 0;
position: static;
width: auto;
.sidebarhandle {
display: none;
}
.content {
height: 60vh;
position: relative;
width: auto;
}
}
}
.sidebarhandle {
2016-06-19 11:14:13 +00:00
left: $sidebar-width + 2 * $button-distance;
position: fixed;
2016-06-19 11:14:13 +00:00
top: $button-distance;
2017-10-26 19:40:55 +00:00
transition: left .5s, color .5s, transform .5s;
2016-12-28 03:21:55 +00:00
z-index: 1010;
2017-10-21 00:06:42 +00:00
&::before {
content: '\f124';
padding-right: .125em;
}
2017-10-21 00:06:42 +00:00
&[aria-label] {
&::after {
transform: translate(-45px, 52px) !important; // sass-lint:disable-line no-important
}
}
}
.online {
color: $color-new;
}
.offline {
color: $color-offline;
}