open-vault/ui/app/styles/components/namespace-picker.scss

125 lines
2.1 KiB
SCSS

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
.namespace-picker {
position: relative;
color: var(--token-color-palette-neutral-300);
display: flex;
padding: $spacing-xxs $spacing-xs;
width: 100%;
}
.namespace-picker.no-namespaces {
border: none;
padding-right: 0;
}
.namespace-picker-trigger {
align-items: center;
display: flex;
flex: 1 1 auto;
height: 2rem;
justify-content: space-between;
margin-right: $spacing-xxs;
}
.namespace-picker-content {
width: 250px;
max-height: 300px;
overflow: auto;
border-radius: $radius;
box-shadow: $box-shadow, $box-shadow-high;
&.ember-basic-dropdown-content {
background: $white;
}
}
.namespace-picker-content .level-left {
max-width: 210px;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
}
.namespace-header-bar {
padding: $size-11 $size-9;
border-bottom: 1px solid rgba($black, 0.1);
font-weight: $font-weight-semibold;
min-height: 32px;
}
.namespace-manage-link {
border-top: 1px solid rgba($black, 0.1);
.level-left {
font-weight: $font-weight-bold;
font-size: 14px;
}
.level-right {
margin-right: 10px;
}
}
.namespace-list {
position: relative;
overflow: hidden;
}
.namespace-link {
color: $black;
text-decoration: none;
font-weight: $font-weight-semibold;
padding: $size-10 $size-9 $size-10 0;
}
.namespace-link.is-current {
margin-top: $size-8;
margin-right: -$size-10;
svg {
margin-top: 2px;
color: var(--token-color-border-strong);
}
}
.leaf-panel {
padding: $size-11 $size-9;
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 {
transform: translateX(-$drawer-width);
}
.leaf-panel-adding,
.leaf-panel-current {
position: relative;
& .namespace-link:last-child {
margin-bottom: 4px;
}
}
.animated-list {
.leaf-panel-exiting,
.leaf-panel-adding {
transform: translateX($drawer-width);
z-index: 20;
}
}
.leaf-panel-adding {
z-index: 100;
}