Skip to content

Commit 5b5c636

Browse files
Merge pull request #55 from CastleCSS/develop
Develop
2 parents 6f4fcf5 + 8574c89 commit 5b5c636

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "castlecss-forms",
3-
"version": "1.0.12",
3+
"version": "1.0.13",
44
"description": "Easy to use forms for CastleCSS",
55
"main": "index.js",
66
"scripts": {

sass/component/select.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// Customselect styling
2-
31
.select {
42
position: relative;
53
display: inline-block;
@@ -27,7 +25,8 @@
2725

2826
~ .select-arrow {
2927
&:after {
30-
transform: rotate(90deg) scaleX(-1);
28+
margin-left: -3px;
29+
transform: rotate(-90deg);
3130
}
3231
}
3332
}
@@ -49,18 +48,20 @@
4948
}
5049

5150
.select-arrow {
52-
position: absolute; top: 0; right: 0;
51+
position: absolute; top: 50%; right: 0;
5352
width: $input-height; height: $input-height;
53+
transform: translateY(-50%);
5454
transition: $input-transition;
55-
line-height: $input-height;
56-
text-align: center;
5755
pointer-events: none;
5856

5957
&:after {
6058
content: $select-arrow;
59+
box-sizing: border-box;
6160
display: block;
6261
width: $input-height; height: $input-height;
63-
transform: rotate(90deg) scaleX(1);
62+
line-height: $input-height;
63+
text-align: center;
64+
transform: rotate(90deg);
6465
transform-origin: center;
6566
}
6667
}

0 commit comments

Comments
 (0)