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

96 lines
1.7 KiB
SCSS

.namespace-picker {
border-right: 1px solid rgba($black, 0.5);
margin-right: $size-10;
position: relative;
padding: 0.5rem;
color: $white;
fill: $white;
}
.namespace-picker.no-namespaces {
border: none;
padding-right: 0;
}
.namespace-picker-trigger {
display: flex;
align-items: center;
}
.namespace-name {
display: inline-block;
margin-left: $size-10;
font-size: 1rem;
}
.namespace-picker-content {
width: 300px;
max-height: 300px;
overflow: auto;
border-radius: $radius;
box-shadow: $box-shadow, $box-shadow-high;
}
.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 {
padding: $size-11 $size-10;
box-shadow: $box-shadow;
font-weight: $font-weight-semibold;
min-height: 32px;
.namespace-manage-link {
text-decoration: none;
}
}
.current-namespace {
border-bottom: 1px solid rgba($black, 0.1);
}
.namespace-list {
position: relative;
overflow: hidden;
}
.namespace-link {
color: $black;
text-decoration: none;
font-weight: $font-weight-semibold;
padding: $size-10 $size-9;
}
.leaf-panel {
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(-300px);
}
.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(300px);
z-index: 20;
}
}
.leaf-panel-adding {
z-index: 100;
}