-
Notifications
You must be signed in to change notification settings - Fork 66
/
_layout.scss
105 lines (86 loc) · 2.66 KB
/
_layout.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
@include exports("dropdownlist/layout") {
.k-dropdown {
width: $input-default-width;
border-width: 0;
outline: 0;
background: none;
box-sizing: border-box;
font-family: $input-font-family;
font-size: $input-font-size;
line-height: $input-line-height;
text-align: left;
white-space: nowrap;
display: inline-flex;
vertical-align: middle;
position: relative;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: $rgba-transparent;
.k-dropdown-wrap {
@include border-radius( $input-border-radius );
padding: 0;
width: 100%;
display: flex;
flex-flow: row nowrap;
border-width: 1px;
border-style: solid;
box-sizing: border-box;
position: relative;
transition: all .1s ease; // sass-lint:disable-line no-transition-all
cursor: pointer;
outline: 0;
// Input
.k-input {}
// Select
.k-select {
@include border-right-radius-only( $input-border-radius );
padding: $picker-select-padding-y $picker-select-padding-x;
width: if( $use-picker-select-width, $button-inner-calc-size, null );
border-width: 0;
box-sizing: border-box;
border-style: solid;
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
text-align: center;
cursor: pointer;
}
}
}
// RTL
.k-dropdown.k-rtl,
.k-dropdown[dir="rtl"],
.k-rtl .k-dropdown,
[dir="rtl"] .k-dropdown {
text-align: right;
.k-select {
@include border-left-radius-only( $input-border-radius );
}
}
// Dropdown operator
.k-dropdown-operator {
width: auto;
.k-dropdown-wrap {
.k-input {
display: none;
}
.k-select {
width: $button-inner-calc-size;
height: $button-inner-calc-size;
}
}
}
// Native select
select.k-dropdown {
@include border-radius( $input-border-radius );
padding: $input-padding-y $input-padding-x;
border-width: 1px;
border-style: solid;
box-sizing: border-box;
outline: 0;
overflow: hidden;
text-overflow: ellipsis;
transition: all .1s ease; // sass-lint:disable-block no-transition-all
cursor: pointer;
}
}