mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
* Allow sort by more than one key * created custom tooltip component * remove unused code * fixed style for more layouts * added tooltip to query side panel * tooltips added to setting form * finished settings form * added tooltip for perf impact table headers * tooltip for pack table and user form * tooltip on manage policies page * tooltip for manage schedules * tooltip for automations; spacing for form input * tooltip for automations modal * user form; fixed input with icon component * more user form tooltips * tooltip for homepage; style fixes * replaced many more tooltips with new version * added story for tooltip * added position prop * fixed tests * re-work how we click react-select dropdowns * forcing the update button click * trying a blur * fixed typo * trying blur on another element * temp check-in * replaced tooltip from host details software * more consolidation of tooltip use for software * fixed settings flow test Co-authored-by: Tomas Touceda <chiiph@gmail.com>
103 lines
1.9 KiB
SCSS
103 lines
1.9 KiB
SCSS
.input-icon-field {
|
|
margin-top: $pad-medium;
|
|
position: relative;
|
|
width: 100%;
|
|
|
|
&__icon {
|
|
position: absolute;
|
|
right: 6px;
|
|
top: 28px;
|
|
font-size: 18px;
|
|
color: $core-fleet-blue;
|
|
|
|
&--active {
|
|
color: $core-vibrant-blue;
|
|
}
|
|
|
|
&--error {
|
|
border: 1px solid $core-vibrant-red;
|
|
box-sizing: border-box;
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
&__input {
|
|
border: 1px solid $ui-fleet-blue-15;
|
|
background-color: $ui-light-grey;
|
|
border-radius: $border-radius;
|
|
padding: 9px 30px 9px $pad-medium;
|
|
font-size: $small;
|
|
text-indent: 1px;
|
|
position: relative;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
color: $core-fleet-black;
|
|
font-weight: $regular;
|
|
|
|
::placeholder {
|
|
color: $core-fleet-blue;
|
|
}
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&:disabled {
|
|
color: $ui-fleet-black-50;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
&--error {
|
|
color: $core-vibrant-red;
|
|
border: 1px solid $core-vibrant-red;
|
|
box-sizing: border-box;
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
&__label {
|
|
display: block;
|
|
font-size: $x-small;
|
|
font-weight: $bold;
|
|
margin-bottom: $pad-xsmall;
|
|
|
|
&[data-has-tooltip="true"] {
|
|
margin-bottom: $pad-small;
|
|
}
|
|
}
|
|
|
|
&__errors {
|
|
font-size: $x-small;
|
|
font-weight: $bold;
|
|
color: $core-vibrant-red;
|
|
}
|
|
|
|
&__hint {
|
|
font-size: $x-small;
|
|
font-style: italic;
|
|
font-weight: $regular;
|
|
line-height: 20px;
|
|
display: inline-block;
|
|
margin-top: $pad-small;
|
|
|
|
code {
|
|
color: $core-vibrant-blue;
|
|
background-color: $ui-light-grey;
|
|
padding: $pad-xxsmall;
|
|
font-family: "SourceCodePro", $monospace;
|
|
}
|
|
}
|
|
|
|
// overwrite icon position and input padding
|
|
&--icon-start {
|
|
input {
|
|
padding: 9px 1rem 9px 3rem;
|
|
}
|
|
.fleeticon {
|
|
right: auto;
|
|
left: 16px;
|
|
top: 39px;
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|