vault/ui/app/styles/core/control.scss
claire bontempo d7b8dddd2e
UI: HDS adoption replace <Button> in lib/core (2) (#24122)
* first four buttons

* swap button in object list input and update styling

* swap search select buttons

* string list input

* update text file

* toggle button

* add comment

* swap eye-con

* revert toggle button, add deprecation note

* cleanup css for object list input

* fix test

* revert toggle changes

* add margin
2023-11-15 19:58:41 +00:00

66 lines
1022 B
SCSS

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
// This file defines the style for .control
.control.has-icons-left .icon,
.control.has-icons-right .icon {
height: 2.5rem;
}
.control.has-icons-right .input {
padding-right: 2.25em;
}
.control {
font-size: 1rem;
max-width: 100%;
position: relative;
text-align: left;
// Modifiers
&.has-icons-left,
&.has-icons-right {
.input,
.select select {
padding-left: 2rem;
&:focus,
&:active,
&.is-active {
& ~ .icon {
color: currentColor;
}
}
}
}
&.has-checkbox-right {
label.checkbox {
display: inline-flex;
height: 2.5em;
position: absolute;
top: 0;
right: 0;
justify-content: flex-end;
margin-left: auto;
}
.input,
.select select {
padding-right: 10em;
}
}
}
.control {
&.is-expanded {
flex-grow: 1;
flex-shrink: 1;
}
&.is-narrow {
flex: none;
width: 6%;
}
}