Summary Files Commits Branches @commit @diff @stats
path: root / src / _forms.scss
diff options
context:
space:
mode:
1 files changed, 19 insertions, 2 deletions
-rw-r--r--src/_forms.scss21
diff --git a/src/_forms.scss b/src/_forms.scss
index cd3fc5e..8b53df9 100644
--- a/src/_forms.scss
+++ b/src/_forms.scss
@@ -193,7 +193,7 @@ textarea.form-input {
.form-checkbox,
.form-radio,
.form-switch {
- display: inline-block;
+ display: block;
line-height: $line-height;
margin: ($control-size - $control-size-sm) / 2 0;
min-height: 1.2rem;
@@ -462,6 +462,18 @@ textarea.form-input {
}
}
+.form-checkbox {
+ .has-error &,
+ &.is-error {
+ input {
+ &:indeterminate + .form-icon {
+ background: $error-color;
+ border-color: $error-color;
+ }
+ }
+ }
+}
+
// validation based on :placeholder-shown (Edge doesn't support it yet)
.form-input {
&:not(:placeholder-shown) {
@@ -517,7 +529,7 @@ input {
}
}
-// Form Horizontal
+// Form horizontal
.form-horizontal {
padding: $layout-spacing 0;
@@ -526,3 +538,8 @@ input {
flex-wrap: wrap;
}
}
+
+// Form inline
+.form-inline {
+ display: inline-block;
+} \ No newline at end of file