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
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2019-10-04 11:08:44 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-10-14 12:12:05 +0300
commit6c9640c2454cb66f6bf5cfe02904e16e08e38bbf (patch)
treec117b551759d407bfb1740bfa94e67e39f7db1f7
parent1260b4fb3f855f0270e47b7e9c90c7490d90c4b5 (diff)
Backport #29445
Remove outline from select box in Firefox
-rw-r--r--scss/_custom-forms.scss6
-rw-r--r--scss/_forms.scss6
2 files changed, 12 insertions, 0 deletions
diff --git a/scss/_custom-forms.scss b/scss/_custom-forms.scss
index 48f292bdfb..8b3a74bc0b 100644
--- a/scss/_custom-forms.scss
+++ b/scss/_custom-forms.scss
@@ -268,6 +268,12 @@
&::-ms-expand {
display: none;
}
+
+ // Remove outline from select box in FF
+ &:-moz-focusring {
+ color: transparent;
+ text-shadow: 0 0 0 $custom-select-color;
+ }
}
.custom-select-sm {
diff --git a/scss/_forms.scss b/scss/_forms.scss
index a290270d74..7a9a653e45 100644
--- a/scss/_forms.scss
+++ b/scss/_forms.scss
@@ -30,6 +30,12 @@
border: 0;
}
+ // Remove select outline from select box in FF
+ &:-moz-focusring {
+ color: transparent;
+ text-shadow: 0 0 0 $input-color;
+ }
+
// Customize the `:focus` state to imitate native WebKit styles.
@include form-control-focus($ignore-warning: true);