Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2019-08-17 16:12:08 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-09-26 18:37:07 +0300
commit5d39e36083b5c193d7599c7a6897cd171fc36c19 (patch)
tree4af77df5d04acba39fb2bc152ac9a690e8be31c5 /scss
parent269e5351aa3c17775c1846c76e1f87854e115c16 (diff)
Don't bind validation to form controls
Diffstat (limited to 'scss')
-rw-r--r--scss/mixins/_forms.scss37
1 files changed, 7 insertions, 30 deletions
diff --git a/scss/mixins/_forms.scss b/scss/mixins/_forms.scss
index c185f79739..dac843f2ee 100644
--- a/scss/mixins/_forms.scss
+++ b/scss/mixins/_forms.scss
@@ -63,6 +63,13 @@
@include border-radius($form-feedback-tooltip-border-radius);
}
+ @include form-validation-state-selector($state) {
+ ~ .#{$state}-feedback,
+ ~ .#{$state}-tooltip {
+ display: block;
+ }
+ }
+
.form-control {
@include form-validation-state-selector($state) {
border-color: $color;
@@ -79,11 +86,6 @@
border-color: $color;
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
}
-
- ~ .#{$state}-feedback,
- ~ .#{$state}-tooltip {
- display: block;
- }
}
}
@@ -110,21 +112,6 @@
border-color: $color;
box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
}
-
- ~ .#{$state}-feedback,
- ~ .#{$state}-tooltip {
- display: block;
- }
- }
- }
-
-
- .form-control-file {
- @include form-validation-state-selector($state) {
- ~ .#{$state}-feedback,
- ~ .#{$state}-tooltip {
- display: block;
- }
}
}
@@ -151,11 +138,6 @@
}
}
- ~ .#{$state}-feedback,
- ~ .#{$state}-tooltip {
- display: block;
- }
-
&:checked {
~ .custom-control-label::before {
border-color: lighten($color, 10%);
@@ -182,11 +164,6 @@
border-color: $color;
}
- ~ .#{$state}-feedback,
- ~ .#{$state}-tooltip {
- display: block;
- }
-
&:focus {
~ .custom-file-label {
border-color: $color;