mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-23 21:53:25 +02:00
committed by
XhmikosR
parent
64e22b4284
commit
7327e38b1c
@@ -26,14 +26,16 @@
|
|||||||
@include deprecate("The `form-control-focus()` mixin", "v4.3.2", "v5", $ignore-warning);
|
@include deprecate("The `form-control-focus()` mixin", "v4.3.2", "v5", $ignore-warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This mixin uses an `if()` technique to be compatible with Dart Sass
|
||||||
|
// See https://github.com/sass/sass/issues/1873#issuecomment-152293725 for more details
|
||||||
@mixin form-validation-state-selector($state) {
|
@mixin form-validation-state-selector($state) {
|
||||||
@if ($state == "valid" or $state == "invalid") {
|
@if ($state == "valid" or $state == "invalid") {
|
||||||
.was-validated &:#{$state},
|
.was-validated #{if(&, "&", "")}:#{$state},
|
||||||
&.is-#{$state} {
|
#{if(&, "&", "")}.is-#{$state} {
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
} @else {
|
} @else {
|
||||||
&.is-#{$state} {
|
#{if(&, "&", "")}.is-#{$state} {
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user