0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Firefox fixes for new select style

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

View file

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