|
@@ -1,323 +0,0 @@
|
|
|
-$c-explorer-bg: #4C4E4D;
|
|
|
-$c-explorer-secondary: #cacaca;
|
|
|
-$c-explorer-easing: cubic-bezier(0.075, 0.820, 0.165, 1.000);
|
|
|
-
|
|
|
-.c-explorer, .c-explorer * {
|
|
|
- box-sizing: border-box;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer {
|
|
|
- width: 100%;
|
|
|
- height: 500px;
|
|
|
- background: $c-explorer-bg;
|
|
|
- position: absolute;
|
|
|
- overflow: hidden;
|
|
|
-}
|
|
|
-
|
|
|
- .c-explorer--sidebar {
|
|
|
- height: 100vh;
|
|
|
- box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
|
|
|
- z-index: 150;
|
|
|
- }
|
|
|
-
|
|
|
-.c-explorer__header {
|
|
|
- border-bottom: solid 1px #676767;
|
|
|
- overflow: hidden;
|
|
|
- color: $c-explorer-secondary;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__trigger {
|
|
|
- display: block;
|
|
|
- padding: .5rem 1rem;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
- width: 100%;
|
|
|
- background: none;
|
|
|
- border: none;
|
|
|
- text-align: left;
|
|
|
- color: $c-explorer-secondary;
|
|
|
- line-height: inherit;
|
|
|
- font: inherit;
|
|
|
- cursor: default;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__trigger--enabled {
|
|
|
- cursor: pointer;
|
|
|
- &:hover, &:focus {
|
|
|
- color: $color-white;
|
|
|
- background: rgba(0,0,0,0.2);
|
|
|
- outline: none;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__back {
|
|
|
- margin-right: .25rem;
|
|
|
- float: left;
|
|
|
- margin-top: -1px;
|
|
|
-
|
|
|
- &:hover {
|
|
|
- color: $color-white;
|
|
|
- }
|
|
|
-
|
|
|
- .icon {
|
|
|
- line-height: 1;
|
|
|
- display: inline-block;
|
|
|
- font-size: 16px;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__title {
|
|
|
- margin: 0;
|
|
|
- color: $color-white;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__loading {
|
|
|
- color: $color-white;
|
|
|
- padding: 1rem;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__placeholder {
|
|
|
- padding: 1rem;
|
|
|
- color: $color-white;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__meta {
|
|
|
- font-size: 12px;
|
|
|
- color: $c-explorer-secondary;
|
|
|
- margin-bottom: 0;
|
|
|
-}
|
|
|
-
|
|
|
- // TODO Could be a utility class
|
|
|
- .c-explorer__meta__type {
|
|
|
- text-transform: capitalize;
|
|
|
- }
|
|
|
-
|
|
|
-.c-explorer__item {
|
|
|
- display: block;
|
|
|
- position: relative;
|
|
|
- border-bottom: solid 1px #676767;
|
|
|
- &:last-child {
|
|
|
- border-bottom: 0;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__item__link {
|
|
|
- display: block;
|
|
|
- padding: 1rem;
|
|
|
- cursor: pointer;
|
|
|
-
|
|
|
- &:hover, &:focus {
|
|
|
- background: rgba(0, 0, 0, 0.25);
|
|
|
- color: $color-white;
|
|
|
- outline: none;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__item__children {
|
|
|
- display: inline-block;
|
|
|
- color: $color-white;
|
|
|
- line-height: 1;
|
|
|
- padding: .7em .3em .7em .7em;
|
|
|
- cursor: pointer;
|
|
|
- display: inline-block;
|
|
|
- position: absolute;
|
|
|
- right: 0;
|
|
|
- top: 0;
|
|
|
- bottom: 0;
|
|
|
- font-size: 2em;
|
|
|
- background: transparent;
|
|
|
- border: 0;
|
|
|
- &:hover, &:focus {
|
|
|
- background: rgba(0,0,0,0.5);
|
|
|
- color: $color-white;
|
|
|
- outline: none;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__see-more {
|
|
|
- padding: 1rem;
|
|
|
- background: rgba(0,0,0,0.2);
|
|
|
- color: $c-explorer-secondary;
|
|
|
- display: block;
|
|
|
-
|
|
|
- &:hover, &:focus {
|
|
|
- color: $c-explorer-secondary;
|
|
|
- background: rgba(0,0,0,0.4);
|
|
|
- outline: none;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__see-more__title {
|
|
|
- color: $color-white;
|
|
|
-}
|
|
|
-
|
|
|
-.c-status {
|
|
|
- background: $color-grey-1;
|
|
|
- color: $c-explorer-secondary;
|
|
|
- text-transform: uppercase;
|
|
|
- letter-spacing: .03rem;
|
|
|
- font-size: 10px;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__drawer {
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- top: 36px;
|
|
|
- width: 100%;
|
|
|
- overflow-y: auto;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__overflow {
|
|
|
- max-width: 12rem;
|
|
|
- display: block;
|
|
|
- text-transform: uppercase;
|
|
|
- float: left;
|
|
|
- width: 100%;
|
|
|
- overflow: hidden;
|
|
|
- white-space: nowrap;
|
|
|
- text-overflow: ellipsis;
|
|
|
-}
|
|
|
-
|
|
|
-// =============================================================================
|
|
|
-// TODO: move to their own component..
|
|
|
-// =============================================================================
|
|
|
-
|
|
|
-.o-pill {
|
|
|
- display: inline-block;
|
|
|
- padding: 0 .5em;
|
|
|
- border-radius: .25em;
|
|
|
- line-height: 1;
|
|
|
- vertical-align: middle;
|
|
|
- line-height: 1.5;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__rel {
|
|
|
- position: relative;
|
|
|
- display: block;
|
|
|
- height: 19px;
|
|
|
- width: 100%;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__parent-name {
|
|
|
- position: absolute;
|
|
|
- width: 100%;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- overflow: hidden;
|
|
|
-}
|
|
|
-
|
|
|
-.c-explorer__spinner:after {
|
|
|
- display: inline-block;
|
|
|
- animation: spin 0.5s infinite linear;
|
|
|
- line-height: 1;
|
|
|
-}
|
|
|
-
|
|
|
-// =============================================================================
|
|
|
-// Transitions
|
|
|
-// =============================================================================
|
|
|
-
|
|
|
-$out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
|
|
|
-$in-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
|
|
|
-$c-explorer-duration: 200ms;
|
|
|
-
|
|
|
-.c-explorer__transition-group {
|
|
|
- position: absolute;
|
|
|
- width: 100%;
|
|
|
- top: 0;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-push-enter {
|
|
|
- transform: translateX(100%);
|
|
|
- transition: transform $c-explorer-duration $out-circ, opacity $c-explorer-duration linear;
|
|
|
- opacity: 0;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-push-enter-active {
|
|
|
- transform: translateX(0);
|
|
|
- opacity: 1;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-push-leave {
|
|
|
- transform: translateX(0);
|
|
|
- transition: transform $c-explorer-duration $in-circ, opacity $c-explorer-duration linear;
|
|
|
- opacity: 1;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-push-leave-active {
|
|
|
- transform: translateX(-100%);
|
|
|
- opacity: 0;
|
|
|
-}
|
|
|
-
|
|
|
-// =============================================================================
|
|
|
-// Pop transition
|
|
|
-// =============================================================================
|
|
|
-
|
|
|
-.explorer-pop-enter {
|
|
|
- transform: translateX(-100%);
|
|
|
- transition: transform $c-explorer-duration $out-circ, opacity $c-explorer-duration linear;
|
|
|
- opacity: 0;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-pop-enter-active {
|
|
|
- transform: translateX(0);
|
|
|
- opacity: 1;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-pop-leave {
|
|
|
- transform: translateX(0);
|
|
|
- transition: transform $c-explorer-duration $in-circ, opacity $c-explorer-duration linear;
|
|
|
- opacity: 1;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-pop-leave-active {
|
|
|
- transform: translateX(100%);
|
|
|
- opacity: 0;
|
|
|
-}
|
|
|
-
|
|
|
-// =============================================================================
|
|
|
-// Toggle transition
|
|
|
-// =============================================================================
|
|
|
-
|
|
|
-.explorer-toggle-enter {
|
|
|
- opacity: 0;
|
|
|
- transition: all $c-explorer-duration;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-toggle-enter-active {
|
|
|
- opacity: 1;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-toggle-leave {
|
|
|
- opacity: 1;
|
|
|
- transition: all $c-explorer-duration;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-toggle-leave-active {
|
|
|
- opacity: 0;
|
|
|
-}
|
|
|
-
|
|
|
-// =============================================================================
|
|
|
-// Fade transition
|
|
|
-// =============================================================================
|
|
|
-
|
|
|
-.explorer-fade-enter {
|
|
|
- position: absolute;
|
|
|
- width: 100%;
|
|
|
- opacity: 0;
|
|
|
- transition: opacity .2s ease .1s;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-fade-enter-active {
|
|
|
- opacity: 1;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-fade-leave {
|
|
|
- position: absolute;
|
|
|
- width: 100%;
|
|
|
- opacity: 1;
|
|
|
- transition: opacity .1s ease;
|
|
|
-}
|
|
|
-
|
|
|
-.explorer-fade-leave-active {
|
|
|
- opacity: 0;
|
|
|
-}
|