123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445 |
- @import "globals";
- .sidebar {
- position: fixed;
- width: $sidebar-width;
- top: 0;
- left: 0;
- bottom: 0;
- z-index: 4;
- background-color: $sidebar-background-color;
- color: $sidebar-text-color;
- transition: background-color $transitions-duration;
- padding-bottom: 32px;
- @include for-mobile {
- min-width: 280px;
- max-width: 360px;
- width: 80%;
- padding-bottom: 0;
- transform: translate3d(-100%, 0, 0);
- transition: transform $transitions-duration;
- }
- &.sidebar-opened {
- @include for-mobile {
- transform: none;
- box-shadow: 0 0 30px 10px rgba(0, 0, 0, 0.2);
- }
- }
- &-header {
- display: none;
- background-color: $sidebar-background-color;
- color: $sidebar-text-color;
- height: $sidebar-header-height;
- line-height: $sidebar-header-height;
- position: fixed;
- top: 0;
- right: 0;
- left: 0;
- z-index: 3;
- transition: background-color $transitions-duration, transform $transitions-duration;
- @include for-mobile {
- display: block;
- body.scroll-to-bottom & {
- transform: translate3d(0, -100%, 0);
- }
- }
- &-menu {
- &, &:visited, &:hover {
- display: inline-block;
- font-size: 14px;
- text-transform: uppercase;
- color: $sidebar-link-color;
- line-height: $sidebar-header-height;
- padding: 0 16px;
- border-right: 1px solid $sidebar-contrast-background-color;
- }
- &-icon {
- font-size: 16px;
- vertical-align: middle;
- }
- }
- }
- &-close {
- display: none;
- float: right;
- padding: 4px;
- margin: 12px 18px 0 12px;
- background: $sidebar-contrast-background-color;
- border-radius: 5px;
- z-index: 1;
- @include for-mobile {
- display: inline-block;
- }
- &.popup {
- background-color: $sidebar-popup-search-input-background-color;
- }
- &-icon {
- color: $sidebar-action-color;
- font-size: 28px;
- font-weight: bold;
- vertical-align: middle;
- }
- &.popup &-icon {
- color: $sidebar-popup-search-input-text-color;
- }
- }
- &-wrapper {
- height: 100%;
- overflow-y: auto;
- -webkit-overflow-scrolling: touch;
- }
- &-section {
- padding: 20px 0;
- border-bottom: 1px solid $sidebar-contrast-background-color;
- transition: border-bottom-color 0.3s;
- @include for-mobile {
- padding: 10px 0;
- }
- &:last-child {
- border-bottom: 0;
- }
- }
- &-title {
- display: block;
- color: $sidebar-text-color;
- text-transform: uppercase;
- font-size: 11px;
- font-weight: bold;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- padding: 0 14px 0 24px;
- margin-bottom: 10px;
- transition: color $transitions-duration;
- @include for-mobile {
- padding: 12px 18px 12px 30px;
- margin-bottom: 0;
- html.touchevents & {
- padding-left: 20px;
- }
- }
- &-link {
- &, &:visited, &:hover {
- color: $sidebar-text-color;
- font-weight: bold;
- transition: color $transitions-duration;
- }
- &:hover {
- color: $sidebar-hover-title-action-item-color;
- }
- }
- }
- &-link {
- &, &:visited, &:hover {
- display: block;
- color: $sidebar-link-color;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- padding: 8px 12px 8px 24px;
- vertical-align: middle;
- transition: color $transitions-duration, background-color $transitions-duration;
- position: relative;
- @include for-mobile {
- padding: 12px 18px 12px 30px;
- html.touchevents & {
- padding-left: 20px;
- }
- }
- &.icon {
- font-size: 11px;
- text-transform: uppercase;
- }
- }
- &:hover, &.selected {
- color: $sidebar-hover-link-color;
- background-color: $sidebar-hover-background-color;
- }
- &-icon {
- font-size: 18px;
- vertical-align: middle;
- margin-right: 6px;
- color: $sidebar-icon-color;
- transition: color $transitions-duration;
- }
- &-label {
- vertical-align: middle;
- }
- }
- &-center-link {
- &, &:visited, &:hover {
- display: block;
- color: $sidebar-action-color;
- font-size: 11px;
- text-align: center;
- padding: 8px 0;
- text-transform: uppercase;
- transition: color $transitions-duration, background-color $transitions-duration;
- @include for-mobile {
- padding: 12px 20px;
- }
- }
- &:hover {
- color: $sidebar-hover-action-color;
- background-color: $sidebar-hover-background-color;
- }
- }
- &-left {
- position: absolute;
- left: 4px;
- @include for-mobile {
- left: 8px;
- }
- &.collapsible {
- display: none;
- }
- &-pin, &-unpin {
- &, &:visited, &:hover {
- position: absolute;
- top: 1px;
- font-size: 14px;
- color: $sidebar-action-color;
- transition: color $transitions-duration;
- html.touchevents & {
- display: none;
- }
- }
- &:hover {
- color: $sidebar-hover-action-color;
- }
- }
- .apps-list-pinned &-pin {
- display: none;
- }
- .apps-list &-unpin {
- display: none;
- }
- }
- &-link:hover &-left.collapsible {
- display: inline-block;
- }
- &-right {
- float: right;
- margin-left: 10px;
- &.collapsible {
- display: none;
- html.touchevents & {
- display: inline;
- }
- }
- &-plus {
- font-size: 14px;
- outline: 0;
- }
- &-arrow {
- color: $sidebar-arrow-color;
- font-size: 16px;
- font-weight: bold !important;
- transition: color $transitions-duration;
- }
- &-remove {
- &, &:visited, &:hover {
- position: relative;
- color: $sidebar-action-color;
- transition: color $transitions-duration;
- }
- &:hover {
- color: $sidebar-hover-action-color;
- }
- }
- }
- &-link:hover &-right.collapsible {
- display: inline-block;
- }
- &-link:hover &-right-arrow {
- color: $sidebar-hover-arrow-color;
- }
- .clone {
- display: none;
- }
- .apps-hide {
- &-label {
- display: none;
- }
- &.apps-visible .apps-hide-label.apps-visible {
- display: inline;
- }
- &.apps-hidden .apps-hide-label.apps-hidden {
- display: inline;
- }
- }
- &-copyright {
- background-color: $sidebar-contrast-background-color;
- color: $sidebar-contrast-text-color;
- height: 32px;
- line-height: 32px;
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- text-align: center;
- font-size: 11px;
- font-weight: bold;
- transition: background-color $transitions-duration, color $transitions-duration;
- @include for-mobile {
- display: none;
- }
- }
- &-popup {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- width: $sidebar-width;
- color: $sidebar-popup-text-color;
- background-color: $sidebar-popup-background-color;
- overflow-y: auto;
- @include for-mobile {
- min-width: 280px;
- max-width: 360px;
- width: 80%;
- }
- &-container {
- display: none;
- background-color: transparentize($sidebar-popup-overlay-color, 0.5);
- position: fixed;
- top: 0;
- left: $sidebar-width;
- bottom: 0;
- right: 0;
- z-index: 5;
- @include for-mobile {
- left: 0;
- }
- }
- &-section {
- display: none;
- }
- &-title {
- font-size: 12px;
- font-weight: bold;
- text-transform: uppercase;
- padding: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- @include for-mobile {
- padding: 24px 20px;
- margin-bottom: 0;
- font-size: 14px;
- }
- }
- &-search {
- background-color: $sidebar-popup-search-input-background-color;
- color: $sidebar-popup-search-input-text-color;
- width: 100%;
- height: 32px;
- text-indent: 20px;
- border: 0;
- font-size: 13px;
- outline: 0;
- padding: 0;
- margin: 0 0 12px 0;
- border-radius: 0;
- //noinspection CssInvalidPseudoSelector
- &::placeholder {
- color: $sidebar-popup-search-input-placeholder-color;
- }
- @include for-mobile {
- font-size: 14px;
- height: 40px;
- }
- }
- &-list {
- margin: 0;
- padding: 0;
- list-style: none;
- &-item {
- a, a:visited, a:hover {
- color: $sidebar-popup-link-text-color;
- padding: 8px 20px;
- display: block;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- @include for-mobile {
- padding: 12px 20px;
- }
- }
- &.selected a {
- background-color: $sidebar-popup-hover-link-background-color;
- color: $sidebar-popup-hover-link-color;
- }
- }
- }
- }
- }
|