Skip to content
This repository was archived by the owner on Mar 25, 2019. It is now read-only.

Commit c6a2c9f

Browse files
committed
Firefox select styling fixes
1 parent 8aa18a5 commit c6a2c9f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

source/sass/interactive/_selects.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ select {
1212
font-family: $font-family-input;
1313
font-weight: $font-weight-normal;
1414

15+
text-rendering: optimizeLegibility;
16+
-webkit-font-smoothing: antialiased;
17+
-moz-osx-font-smoothing: grayscale;
18+
1519
color: $select-foreground-color;
1620
background-color: $select-background-color;
1721
border-color: $select-border-color;
@@ -39,3 +43,15 @@ select {
3943

4044
&[multiple] { background-image: none; }
4145
}
46+
47+
48+
// Firefox fixes/hacks
49+
50+
@-moz-document url-prefix() {
51+
select {
52+
-moz-appearance: none;
53+
text-indent: 0.01px;
54+
text-overflow: '';
55+
background-image: url("data:image/svg+xml;utf8, <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\"><path d=\"M8 12l8 8 8-8z\" /></svg>");
56+
}
57+
}

0 commit comments

Comments
 (0)