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:
authorysds <ysds.code@gmail.com>2018-05-11 07:35:28 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-05-23 01:43:53 +0300
commit2ea0a9bba9880d50b9a898dd148cbe66b694e52d (patch)
treefde8613595fc8e398e7b3357d62b0aaa1f692916 /scss
parent4dd65f0b38b1bf6286e112c2ca8f91253f2e75ea (diff)
Add disabled bg color to disabled custom file
Diffstat (limited to 'scss')
-rw-r--r--scss/_custom-forms.scss4
-rw-r--r--scss/_variables.scss1
2 files changed, 5 insertions, 0 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss
index de592a3ddc..5b75fcbf90 100644
--- a/scss/_custom-forms.scss
+++ b/scss/_custom-forms.scss
@@ -257,6 +257,10 @@
}
}
+ &:disabled ~ .custom-file-label {
+ background-color: $custom-file-disabled-bg;
+ }
+
@each $lang, $value in $custom-file-text {
&:lang(#{$lang}) ~ .custom-file-label::after {
content: $value;
diff --git a/scss/_variables.scss b/scss/_variables.scss
index be578ad8d2..a3b2eb0494 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -531,6 +531,7 @@ $custom-file-height: $input-height !default;
$custom-file-height-inner: $input-height-inner !default;
$custom-file-focus-border-color: $input-focus-border-color !default;
$custom-file-focus-box-shadow: $input-btn-focus-box-shadow !default;
+$custom-file-disabled-bg: $input-disabled-bg !default;
$custom-file-padding-y: $input-btn-padding-y !default;
$custom-file-padding-x: $input-btn-padding-x !default;