Просмотр исходного кода

fix(ux): fixed select box appearance in firefox, fixes #4168

Torkel Ödegaard 9 лет назад
Родитель
Сommit
352cdc137d
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      public/sass/components/_gf-form.scss

+ 6 - 0
public/sass/components/_gf-form.scss

@@ -82,6 +82,7 @@ $gf-form-label-margin: 0.25rem;
   &::-ms-expand {
     background-color: transparent;
     border: 0;
+    display: none;
   }
 
   // Customize the `:focus` state to imitate native WebKit styles.
@@ -109,15 +110,20 @@ $gf-form-label-margin: 0.25rem;
 
 .gf-form-select-wrapper {
   position: relative;
+  background-color: $input-bg;
 
   select.gf-form-input {
+    text-indent: .01px;
+    text-overflow: '';
     padding-right: $input-padding-x*2;
     -webkit-appearance: none;
     -moz-appearance: menulist-text; // was set to "window" and caused odd display on windos and linux.
     appearance: none;
 
     &:-moz-focusring {
+      outline: none;
       color: transparent;
+      text-shadow: 0 0 0 $text-color;
     }
   }