Firefox fixes for new select style

This commit is contained in:
Paul Adam Davis 2014-07-17 09:54:54 +01:00
parent e219fb121e
commit 77cc6c3b72
2 changed files with 16 additions and 11 deletions

View File

@ -158,6 +158,7 @@ legend {
#{$all-text-inputs},
textarea,
.gh-select,
select {
display: block;
padding: 8px 10px;
@ -165,7 +166,7 @@ select {
border: 1px solid #E0DFD7;
border-radius: $rounded;
font-size: 1.1em;
font-size: 1.1rem;
font-weight: normal;
color: $darkgrey;
@ -185,13 +186,6 @@ textarea {
min-height: 6.5em;
}
// 'vanilla' CSS hack to specifically target Firefox
@-moz-document url-prefix() {
select {
height: auto;
}
}
input[type="number"] {
&::-webkit-inner-spin-button,
&::-webkit-outer-spin-button {
@ -381,10 +375,11 @@ input[type='radio'] {
overflow: hidden;
width: 100%;
max-width: 100%;
padding: 0;
border-width: 0;
@include icon-after($i-chevron-down, 0.85em, $midbrown) {
@include position(absolute, 50% 0.8em null null);
position: absolute;
margin-top: -0.5em;
pointer-events: none;
};
@ -419,4 +414,14 @@ input[type='radio'] {
text-shadow: 0 0 0 #000;
}
} // select
} // .gh-select
} // .gh-select
// Firefox-specific size fixes
@-moz-document url-prefix() {
.gh-select {
border-width: 1px;
select {
padding: 7px 10px 7px 8px;
}
}
} // @-moz-document

File diff suppressed because one or more lines are too long