fleet/frontend/components/forms/FormField/_styles.scss

46 lines
862 B
SCSS

.form-field {
margin-bottom: $pad-large;
&__label {
font-size: $x-small;
font-weight: $bold;
color: $core-fleet-black;
display: block;
margin-bottom: $pad-xsmall;
&--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-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;
}
}
&--checkbox {
margin-bottom: $pad-medium;
}
&--slider {
margin-bottom: 0;
}
}