mirror of
https://github.com/fleetdm/fleet
synced 2026-05-14 20:48:35 +00:00
## Addresses #14882 - Add help text - Align heading of Advanced section - Add `help-text` mixin for improved modularity/reusability - Fix responsive styles on LabelFilterSelect <img width="721" alt="Screenshot 2023-11-21 at 9 52 45 AM" src="https://github.com/fleetdm/fleet/assets/61553566/216112f8-de9d-4ee3-acb5-376e6ccd3b4e"> - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
50 lines
1,023 B
SCSS
50 lines
1,023 B
SCSS
.form-field {
|
|
margin-bottom: $pad-large;
|
|
|
|
&__label {
|
|
font-size: $small;
|
|
font-weight: $bold;
|
|
color: $core-fleet-black;
|
|
display: block;
|
|
margin-bottom: $pad-small;
|
|
min-height: $form-field-label-height;
|
|
|
|
&--error {
|
|
font-weight: $bold;
|
|
color: $core-vibrant-red;
|
|
}
|
|
|
|
// so tooltips won't be triggered with whitespace
|
|
&[data-has-tooltip="true"] {
|
|
margin-bottom: $pad-small;
|
|
display: inline-flex;
|
|
}
|
|
}
|
|
|
|
&__hint {
|
|
font-size: $x-small;
|
|
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;
|
|
}
|
|
}
|
|
|
|
&--checkbox {
|
|
// flex properties only have an effect when checkbox help text is present
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: $pad-small;
|
|
margin-bottom: $pad-medium;
|
|
}
|
|
|
|
&--slider {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|