vault/ui/app/styles/components/namespace-picker.scss
claire bontempo 7f03393630
UI: Increase base font size (#23994)
* fix button padding

* rename spacing variables using numerical values

* fix toggle aligment

* remove unused toggle classes

* replace margin and padding with spacing vars

* increase base font size

* remove switch css, use toggle consistently

* remaining margin/padding size vars to spacing pixels

* add deprecated note, rever changes to size vars

* decrease console size

* remove function

* adjust card size for small selectable cards

* fix select to fit to content width

* fix toolbar-scroller height

* add changelog;

* fix checkbox styling
2023-11-13 21:29:39 +00:00

125 lines
2.1 KiB
SCSS

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
.namespace-picker {
position: relative;
color: var(--token-color-palette-neutral-300);
display: flex;
padding: $spacing-4 $spacing-8;
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-4;
}
.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: $spacing-4 $spacing-10;
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: $spacing-8 $spacing-10 $spacing-8 0;
}
.namespace-link.is-current {
margin-top: $spacing-12;
margin-right: -$spacing-8;
svg {
margin-top: 2px;
color: var(--token-color-border-strong);
}
}
.leaf-panel {
padding: $spacing-4 $spacing-10;
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;
}