716f25162a
* add initial Confirm component to secrets list page * use ember-wormholes to render confirmation message * use maybe-in-element instead of ember-wormhole * hide overlay initially * animate confirm overlay left and right on click * hide overlay in the DOM to properly set height * adjust height when showing/hiding confirm-overlay * disable confirmation buttons until trigger has been rendered * adjust height of confirm-wrapper instead of confirm * move Confirm/ to core * only add style attribute when a height property exists * fix indentation * wip - use new Confirm inside status menu * add Confirm to Storybook * ensure confirm links have proper styling in Storybook and outside popup-menu * fix height transition * disable no-inline-styles * add test selector * remove comment * consolidate Message into Trigger to make Confirm easier to use * use new Trigger API in status menu * remove height transition * fix binding inline style warning * rename confirmMessage to message * update Confirm for Storybook * fix indentation * do not pass in onCancel from outer template because it is static * add jsdoc comments to Trigger * wip - add trigger and confirm to storybook * fix status menu styling * fix styling of confirm stories * use new Confirm on secrets engine list * use bulma speed variable * fix indentation * re-renable eslint no-inline-styles * showConfirm when rendered trigger matches id * fix background color on namespace picker * do not expose onTrigger * Revert "re-renable eslint no-inline-styles" This reverts commit c7b2a9097f177a2876afaaec6020f73b07bad3c7. * rename Confirm Trigger to Message * add tests * update JSDocs * focus trigger after cancelling the confirm message * update Confirm JSDocs * differentiate between ConfirmAction and Confirm * add Message to Storybook * re-enable eslint import/extensions * update confirmButtonText to Revoke token * remove linebreak and extra whitespace * fix typo * add loading to empty button * fix more typos * only show Message contents when showConfirm is true * no need to disable the confirm buttons since they only render in the DOM when showConfirm is true * use Confirm to delete aws roles * use Confirm to delete pki roles * use Confirm to delete ssh roles * add Confirm to entity alias page * fix confirm button text on Revoke token in status menu * ensure you can use tab to revoke a token from status menu * reset the open trigger after the confirm has been confirmed * use Confirm on identity list pages * fix Disable engine confirmation text * use <PopupMenu /> angle brack syntax * use Confirm on policies list page * use Confirm for namespaces * use Confirm for kmip scopes * use Confirm for deleting kmip roles * use Confirm for revoking KMIP credentials * fix Revoke token triggerText
142 lines
2.5 KiB
SCSS
142 lines
2.5 KiB
SCSS
.namespace-picker {
|
|
position: relative;
|
|
color: $white;
|
|
display: flex;
|
|
fill: $white;
|
|
padding: $spacing-xxs $spacing-xs;
|
|
width: 100%;
|
|
|
|
@include from($mobile) {
|
|
margin-left: -$spacing-xs;
|
|
padding: $spacing-xxs 0 $spacing-xxs $spacing-s;
|
|
width: auto;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
.namespace-name {
|
|
display: inline-block;
|
|
flex: 1 1 auto;
|
|
font-size: 1rem;
|
|
margin: 0 $spacing-xs;
|
|
|
|
@include from($mobile) {
|
|
margin-left: $size-10;
|
|
}
|
|
}
|
|
.namespace-picker-content {
|
|
width: $drawer-width - ($spacing-xs * 2);
|
|
max-height: 300px;
|
|
overflow: auto;
|
|
border-radius: $radius;
|
|
box-shadow: $box-shadow, $box-shadow-high;
|
|
|
|
&.ember-basic-dropdown-content {
|
|
background: $white;
|
|
}
|
|
|
|
@include from($mobile) {
|
|
width: $drawer-width;
|
|
}
|
|
}
|
|
.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(-$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;
|
|
}
|