Skip to content

Commit 454644c

Browse files
author
Pascal Alferink
committed
castlecss-forms issue 45, ie10 position of arrow in selectbox
1 parent 99f959f commit 454644c

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

sass/component/select.scss

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727

2828
~ .select-arrow {
2929
&:after {
30-
margin-left: -3px;
31-
transform: rotate(-90deg);
30+
transform: rotate(90deg) scaleX(-1);
3231
}
3332
}
3433
}
@@ -50,20 +49,18 @@
5049
}
5150

5251
.select-arrow {
53-
position: absolute; top: 50%; right: 0;
52+
position: absolute; top: 0; right: 0;
5453
width: $input-height; height: $input-height;
55-
transform: translateY(-50%);
5654
transition: $input-transition;
55+
line-height: $input-height;
56+
text-align: center;
5757
pointer-events: none;
5858

5959
&:after {
6060
content: $select-arrow;
61-
box-sizing: border-box;
6261
display: block;
6362
width: $input-height; height: $input-height;
64-
line-height: $input-height;
65-
text-align: center;
66-
transform: rotate(90deg);
63+
transform: rotate(90deg) scaleX(1);
6764
transform-origin: center;
6865
}
6966
}

0 commit comments

Comments
 (0)