123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- $c-explorer-bg: #4c4e4d;
- $c-explorer-bg-dark: $nav-grey-1;
- $c-explorer-bg-active: rgba(0, 0, 0, 0.425);
- $c-explorer-secondary: #a5a5a5;
- $c-explorer-easing: cubic-bezier(0.075, 0.82, 0.165, 1);
- $menu-footer-height: 50px;
- @use 'sass:map';
- @import 'ExplorerItem';
- .explorer__wrapper,
- .explorer__wrapper * {
- box-sizing: border-box;
- }
- .explorer__wrapper {
- display: flex;
- flex: 1;
- }
- .explorer {
- width: 100%;
- display: flex;
- flex-direction: column;
- @include media-breakpoint-up(sm) {
- width: 485px;
- height: 100vh;
- position: fixed;
- z-index: 500;
- // Remove once we drop support for Safari 13.
- // stylelint-disable-next-line property-disallowed-list
- left: $menu-width;
- inset-inline-start: $menu-width;
- }
- *:focus {
- @include show-focus-outline-inside;
- }
- }
- .c-explorer {
- flex: 1;
- position: relative;
- overflow: hidden;
- background: $c-explorer-bg;
- @include media-breakpoint-up(sm) {
- box-shadow: 2px 2px 5px $c-explorer-bg-active;
- }
- }
- .c-explorer > .c-transition-group {
- display: flex;
- flex-direction: column;
- height: 100%;
- z-index: 150;
- }
- .c-explorer__close {
- padding: 1em;
- color: $c-explorer-secondary;
- border-bottom: 1px solid rgba(200, 200, 200, 0.1);
- cursor: pointer;
- display: none;
- &:focus {
- background-color: $c-explorer-bg-active;
- color: $color-white;
- }
- // Overrides for default link hover.
- &:hover {
- color: $c-explorer-secondary;
- }
- @include media-breakpoint-down(xs) {
- .explorer-open & {
- display: block;
- }
- }
- }
- .c-explorer__drawer {
- flex: 1;
- overflow-y: auto;
- -webkit-overflow-scrolling: touch;
- }
- .c-explorer__header {
- display: block;
- background-color: $c-explorer-bg-dark;
- border-bottom: 1px solid $c-explorer-bg-dark;
- color: $color-white;
- }
- .c-explorer__header__title {
- color: inherit;
- &:focus {
- background-color: $c-explorer-bg-active;
- color: $color-white;
- }
- // Overrides for default link hover.
- &:hover {
- color: $color-white;
- }
- @include hover {
- background-color: $c-explorer-bg-active;
- }
- }
- .c-explorer__header__title__inner {
- width: 70%;
- float: left;
- padding: 1em 0.75em;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- .icon {
- color: $c-explorer-secondary;
- margin-inline-end: 0.25rem;
- font-size: 1rem;
- }
- .icon--explorer-header {
- width: 1.25em;
- height: 1.25em;
- margin-inline-end: 0.25rem;
- vertical-align: text-top;
- color: $c-explorer-secondary;
- }
- @include media-breakpoint-up(sm) {
- padding: 1em 1.5em;
- }
- }
- .c-explorer__header__select {
- $margin: 10px;
- position: relative;
- > select {
- width: calc(30% - #{$margin * 2});
- height: calc(100% - #{$margin * 2});
- margin-top: $margin;
- margin-inline-end: $margin;
- float: right;
- padding: 0;
- padding-inline-start: 10px;
- background-color: $c-explorer-bg-dark;
- border-radius: 0;
- border-color: #4c4e4d;
- color: $color-white;
- &:disabled {
- border: 0;
- }
- &:hover:enabled {
- cursor: pointer;
- }
- &:hover:disabled {
- color: inherit;
- background-color: inherit;
- cursor: inherit;
- }
- }
- // Add select arrow back on browsers where native ui has been removed
- &-icon {
- position: absolute;
- // Remove once we drop support for Safari 13.
- // stylelint-disable-next-line property-disallowed-list
- right: 1rem;
- inset-inline-end: 1rem;
- top: 1rem;
- width: 1.25rem;
- height: 1.25rem;
- color: $color-grey-3;
- .ie & {
- display: none;
- }
- }
- }
- .c-explorer__placeholder {
- padding: 1em;
- color: $color-white;
- @include media-breakpoint-up(sm) {
- padding: 1em 1.75em;
- }
- }
- .c-explorer__see-more {
- display: block;
- padding: 1em;
- background: rgba(0, 0, 0, 0.3);
- color: $color-white;
- &:focus {
- color: $c-explorer-secondary;
- background: $c-explorer-bg-active;
- }
- // Overrides for default link hover.
- &:hover {
- color: $color-white;
- }
- @include hover {
- background: $c-explorer-bg-active;
- }
- @include media-breakpoint-up(sm) {
- padding: 1em 1.75em;
- height: $menu-footer-height;
- }
- }
|