UNPKG

2.57 kBSCSSView Raw
1@import "../../themes/ionic.globals.wp";
2
3// Windows Select
4// --------------------------------------------------
5
6/// @prop - Padding top and bottom of the select
7$select-wp-padding-vertical: 0 !default;
8
9/// @prop - Padding start/end of the select
10$select-wp-padding-horizontal: ($item-wp-padding-end / 2) !default;
11
12/// @prop - Margin top of the select
13$select-wp-margin-top: $item-wp-padding-top !default;
14
15// deprecated
16$select-wp-margin-right: ($item-wp-padding-end / 2) !default;
17/// @prop - Margin end of the select
18$select-wp-margin-end: $select-wp-margin-right !default;
19
20/// @prop - Margin bottom of the select
21$select-wp-margin-bottom: $item-wp-padding-bottom !default;
22
23// deprecated
24$select-wp-margin-left: ($item-wp-padding-start / 2) !default;
25/// @prop - Margin start of the select
26$select-wp-margin-start: $select-wp-margin-left !default;
27
28/// @prop - Border width of the select
29$select-wp-border-width: 2px !default;
30
31/// @prop - Border color of the select
32$select-wp-border-color: $input-wp-border-color !default;
33
34/// @prop - Width of the select icon
35$select-wp-icon-width: 18px !default;
36
37/// @prop - Width of the select icon arrow
38$select-wp-icon-arrow-width: 2px !default;
39
40/// @prop - Color of the select icon
41$select-wp-icon-color: $select-wp-border-color !default;
42
43/// @prop - Color of the select placeholder
44$select-wp-placeholder-color: $select-wp-icon-color !default;
45
46
47.select-wp {
48 @include margin($select-wp-margin-top, $select-wp-margin-end, $select-wp-margin-bottom, $select-wp-margin-start);
49 @include padding($select-wp-padding-vertical, $select-wp-padding-horizontal);
50
51 flex: 1;
52
53 max-width: 100%;
54
55 border: $select-wp-border-width solid $select-wp-border-color;
56 line-height: 3rem;
57}
58
59.select-wp .select-placeholder {
60 color: $select-wp-placeholder-color;
61}
62
63.item-wp.item-select ion-label {
64 @include margin-horizontal(0, null);
65}
66
67.select-wp .select-icon {
68 position: relative;
69
70 align-self: center;
71
72 width: $select-wp-icon-width;
73 height: $select-wp-icon-width;
74}
75
76.select-wp .select-icon .select-icon-inner {
77 @include position(3px, null, null, 5px);
78
79 position: absolute;
80
81 display: block;
82
83 width: ($select-wp-icon-width / 2);
84 height: ($select-wp-icon-width / 2);
85
86 border-top: $select-wp-icon-arrow-width solid $select-wp-icon-color;
87 border-right: $select-wp-icon-arrow-width solid $select-wp-icon-color;
88
89 transform: rotate(135deg);
90
91 pointer-events: none;
92}
93
94.select-wp .select-text {
95 min-height: 3rem;
96}