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

47 lines
877 B
SCSS
Raw Normal View History

2016-12-16 15:54:49 +00:00
.form-field {
margin-bottom: $pad-large;
2016-12-16 15:54:49 +00:00
&__label {
font-size: $small;
font-weight: $bold;
color: $core-fleet-black;
2016-12-16 15:54:49 +00:00
display: block;
margin-bottom: $pad-small;
min-height: $form-field-label-height;
2016-12-16 15:54:49 +00:00
&--error {
font-weight: $bold;
color: $core-vibrant-red;
2016-12-16 15:54:49 +00:00
}
// so tooltips won't be triggered with whitespace
&[data-has-tooltip="true"] {
margin-bottom: $pad-small;
display: inline-flex;
}
2016-12-16 15:54:49 +00:00
}
&__hint {
font-size: $x-small;
font-weight: $regular;
line-height: 20px;
display: inline-block;
margin-top: $pad-small;
2016-12-16 15:54:49 +00:00
code {
color: $core-vibrant-blue;
background-color: $ui-light-grey;
padding: $pad-xxsmall;
font-family: "SourceCodePro", $monospace;
2016-12-16 15:54:49 +00:00
}
}
&--checkbox {
margin-bottom: $pad-medium;
}
&--slider {
margin-bottom: 0;
}
2016-12-16 15:54:49 +00:00
}