2023-03-15 16:00:52 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2018-08-16 17:48:24 +00:00
|
|
|
.namespace-picker {
|
|
|
|
position: relative;
|
|
|
|
color: $white;
|
2018-10-21 19:19:34 +00:00
|
|
|
display: flex;
|
2018-08-16 17:48:24 +00:00
|
|
|
fill: $white;
|
2018-10-21 19:19:34 +00:00
|
|
|
padding: $spacing-xxs $spacing-xs;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
@include from($mobile) {
|
|
|
|
margin-left: -$spacing-xs;
|
|
|
|
padding: $spacing-xxs 0 $spacing-xxs $spacing-s;
|
|
|
|
width: auto;
|
|
|
|
}
|
2018-08-16 17:48:24 +00:00
|
|
|
}
|
2018-10-21 19:19:34 +00:00
|
|
|
|
2018-08-16 17:48:24 +00:00
|
|
|
.namespace-picker.no-namespaces {
|
|
|
|
border: none;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
.namespace-picker-trigger {
|
|
|
|
align-items: center;
|
2018-10-21 19:19:34 +00:00
|
|
|
display: flex;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
height: 2rem;
|
|
|
|
justify-content: space-between;
|
|
|
|
padding: 0;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
@include from($mobile) {
|
|
|
|
height: auto;
|
|
|
|
padding: $spacing-xs $spacing-m;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-status-chevron {
|
|
|
|
transform: rotate(-90deg);
|
|
|
|
|
|
|
|
@include from($mobile) {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.ember-basic-dropdown-trigger--below .is-status-chevron {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
|
|
|
|
@include from($mobile) {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
}
|
2018-08-16 17:48:24 +00:00
|
|
|
}
|
|
|
|
.namespace-name {
|
|
|
|
display: inline-block;
|
2018-10-21 19:19:34 +00:00
|
|
|
flex: 1 1 auto;
|
2018-08-16 17:48:24 +00:00
|
|
|
font-size: 1rem;
|
2018-10-21 19:19:34 +00:00
|
|
|
margin: 0 $spacing-xs;
|
|
|
|
|
|
|
|
@include from($mobile) {
|
|
|
|
margin-left: $size-10;
|
|
|
|
}
|
2018-08-16 17:48:24 +00:00
|
|
|
}
|
|
|
|
.namespace-picker-content {
|
2018-10-21 19:19:34 +00:00
|
|
|
width: $drawer-width - ($spacing-xs * 2);
|
2018-08-16 17:48:24 +00:00
|
|
|
max-height: 300px;
|
|
|
|
overflow: auto;
|
|
|
|
border-radius: $radius;
|
|
|
|
box-shadow: $box-shadow, $box-shadow-high;
|
2018-10-21 19:19:34 +00:00
|
|
|
|
2019-08-27 22:50:53 +00:00
|
|
|
&.ember-basic-dropdown-content {
|
|
|
|
background: $white;
|
|
|
|
}
|
|
|
|
|
2018-10-21 19:19:34 +00:00
|
|
|
@include from($mobile) {
|
|
|
|
width: $drawer-width;
|
|
|
|
}
|
2018-08-16 17:48:24 +00:00
|
|
|
}
|
|
|
|
.namespace-picker-content .level-left {
|
|
|
|
max-width: 210px;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
word-wrap: break-word;
|
|
|
|
-ms-word-break: break-all;
|
|
|
|
word-break: break-all;
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.namespace-header-bar {
|
2020-03-05 22:12:20 +00:00
|
|
|
padding: $size-11 $size-9;
|
|
|
|
border-bottom: 1px solid rgba($black, 0.1);
|
2018-08-16 17:48:24 +00:00
|
|
|
font-weight: $font-weight-semibold;
|
|
|
|
min-height: 32px;
|
|
|
|
}
|
|
|
|
|
2020-03-05 22:12:20 +00:00
|
|
|
.namespace-manage-link {
|
|
|
|
border-top: 1px solid rgba($black, 0.1);
|
2018-08-16 17:48:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.namespace-list {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.namespace-link {
|
|
|
|
color: $black;
|
|
|
|
text-decoration: none;
|
|
|
|
font-weight: $font-weight-semibold;
|
2020-03-05 22:12:20 +00:00
|
|
|
padding: $size-10 $size-9 $size-10 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.namespace-link.is-current {
|
|
|
|
margin-top: $size-8;
|
|
|
|
margin-right: -$size-10;
|
2018-08-16 17:48:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.leaf-panel {
|
2020-03-05 22:12:20 +00:00
|
|
|
padding: $size-11 $size-9;
|
2018-08-16 17:48:24 +00:00
|
|
|
transition: transform ease-in-out 250ms;
|
|
|
|
will-change: transform;
|
|
|
|
transform: translateX(0);
|
|
|
|
background: $white;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
.leaf-panel-left {
|
2018-10-21 19:19:34 +00:00
|
|
|
transform: translateX(-$drawer-width);
|
2018-08-16 17:48:24 +00:00
|
|
|
}
|
|
|
|
.leaf-panel-adding,
|
|
|
|
.leaf-panel-current {
|
|
|
|
position: relative;
|
|
|
|
& .namespace-link:last-child {
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.animated-list {
|
|
|
|
.leaf-panel-exiting,
|
|
|
|
.leaf-panel-adding {
|
2018-10-21 19:19:34 +00:00
|
|
|
transform: translateX($drawer-width);
|
2018-08-16 17:48:24 +00:00
|
|
|
z-index: 20;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.leaf-panel-adding {
|
|
|
|
z-index: 100;
|
|
|
|
}
|