/
_variables.scss
257 lines (234 loc) · 10.6 KB
/
_variables.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
// Button
/// The width of the border around the Button.
/// @group button
$kendo-button-border-width: 1px !default;
/// The border radius of the Button.
/// @group button
$kendo-button-border-radius: null !default;
/// The horizontal padding of the Button.
/// @group button
$kendo-button-padding-x: k-map-get( $kendo-spacing, 2 ) !default;
/// The horizontal padding of the small Button.
/// @group button
$kendo-button-sm-padding-x: k-map-get( $kendo-spacing, 2 ) !default;
/// The horizontal padding of the medium Button.
/// @group button
$kendo-button-md-padding-x: k-map-get( $kendo-spacing, 2 ) !default;
/// The horizontal padding of the large Button.
/// @group button
$kendo-button-lg-padding-x: k-map-get( $kendo-spacing, 3 ) !default;
/// The vertical padding of the Button.
/// @group button
$kendo-button-padding-y: k-map-get( $kendo-spacing, 1 ) !default;
/// The vertical padding of the small Button.
/// @group button
$kendo-button-sm-padding-y: k-map-get( $kendo-spacing, 0.5 ) !default;
/// The vertical padding of the medium Button.
/// @group button
$kendo-button-md-padding-y: k-map-get( $kendo-spacing, 1 ) !default;
/// The vertical padding of the large Button.
/// @group button
$kendo-button-lg-padding-y: k-map-get( $kendo-spacing, 2 ) !default;
/// The font family of the Button.
/// @group button
$kendo-button-font-family: $kendo-font-family !default;
/// The font size of the Button.
/// @group button
$kendo-button-font-size: $kendo-font-size-md !default;
/// The font size of the small Button.
/// @group button
$kendo-button-sm-font-size: $kendo-font-size-md !default;
/// The font size of the medium Button.
/// @group button
$kendo-button-md-font-size: $kendo-font-size-md !default;
/// The font size of the large Button.
/// @group button
$kendo-button-lg-font-size: $kendo-font-size-lg !default;
/// The line height used along with the $kendo-font-size variable.
/// @group button
$kendo-button-line-height: $kendo-line-height-md !default;
/// The line height used along with the $kendo-font-size variable of the small Button.
/// @group button
$kendo-button-sm-line-height: $kendo-line-height-md !default;
/// The line height used along with the $kendo-font-size variable of the medium Button.
/// @group button
$kendo-button-md-line-height: $kendo-line-height-md !default;
/// The line height used along with the $kendo-font-size variable of the large Button.
/// @group button
$kendo-button-lg-line-height: $kendo-line-height-lg !default;
/// The calculated height of the Button.
/// @group button
$kendo-button-calc-size: calc( #{$kendo-button-line-height * 1em} + #{$kendo-button-padding-y * 2} + #{$kendo-button-border-width * 2} ) !default;
$kendo-button-sm-calc-size: calc( #{$kendo-button-sm-line-height * 1em} + #{$kendo-button-sm-padding-y * 2} + #{$kendo-button-border-width * 2} ) !default;
$kendo-button-md-calc-size: calc( #{$kendo-button-md-line-height * 1em} + #{$kendo-button-md-padding-y * 2} + #{$kendo-button-border-width * 2} ) !default;
$kendo-button-lg-calc-size: calc( #{$kendo-button-lg-line-height * 1em} + #{$kendo-button-lg-padding-y * 2} + #{$kendo-button-border-width * 2} ) !default;
/// The calculated inner height of the Button excluding the border width.
/// @group button
$kendo-button-inner-calc-size: calc( #{$kendo-button-line-height * 1em} + #{$kendo-button-padding-y * 2} ) !default;
$kendo-button-sm-inner-calc-size: calc( #{$kendo-button-sm-line-height * 1em} + #{$kendo-button-sm-padding-y * 2} ) !default;
$kendo-button-md-inner-calc-size: calc( #{$kendo-button-md-line-height * 1em} + #{$kendo-button-md-padding-y * 2} ) !default;
$kendo-button-lg-inner-calc-size: calc( #{$kendo-button-lg-line-height * 1em} + #{$kendo-button-lg-padding-y * 2} ) !default;
/// The sizes map for the Button.
/// @group button
$kendo-button-sizes: (
sm: (
padding-x: $kendo-button-sm-padding-x,
padding-y: $kendo-button-sm-padding-y,
font-size: $kendo-button-sm-font-size,
line-height: $kendo-button-sm-line-height
),
md: (
padding-x: $kendo-button-md-padding-x,
padding-y: $kendo-button-md-padding-y,
font-size: $kendo-button-md-font-size,
line-height: $kendo-button-md-line-height
),
lg: (
padding-x: $kendo-button-lg-padding-x,
padding-y: $kendo-button-lg-padding-y,
font-size: $kendo-button-lg-font-size,
line-height: $kendo-button-lg-line-height
)
) !default;
/// The theme colors map for the Button.
/// @group button
$kendo-button-theme-colors: k-map-merge(
$kendo-theme-colors,
( "base": $kendo-base-bg )
) !default;
/// The base background of the Button.
/// @group button
$kendo-button-bg: $kendo-base-bg !default;
/// The base text color of the Button.
/// @group button
$kendo-button-text: $kendo-base-text !default;
/// The base border color of the Button.
/// @group button
$kendo-button-border: if($kendo-enable-color-system, k-color( border ), k-try-shade( $kendo-button-bg, 2 )) !default;
/// The base background gradient of the Button.
/// @group button
$kendo-button-gradient: $kendo-base-gradient !default;
/// The base shadow of the Button.
/// @group button
$kendo-button-shadow: null !default;
/// The base background of the hovered Button.
/// @group button
$kendo-button-hover-bg: if($kendo-enable-color-system, k-color( base-hover ), k-try-shade( $kendo-button-bg, 1 )) !default;
/// The base text color of the hovered Button.
/// @group button
$kendo-button-hover-text: null !default;
/// The base border color of the hovered Button.
/// @group button
$kendo-button-hover-border: if($kendo-enable-color-system, k-color( border-alt ), k-try-shade( $kendo-button-bg, 3 )) !default;
/// The base background gradient of the hovered Button.
/// @group button
$kendo-button-hover-gradient: null !default;
/// The base shadow of the hovered Button.
/// @group button
$kendo-button-hover-shadow: null !default;
/// The base background color of the active Button.
/// @group button
$kendo-button-active-bg: if($kendo-enable-color-system, k-color( base-active ), k-try-shade( $kendo-button-bg, 2 )) !default;
/// The base text color of the active Button.
/// @group button
$kendo-button-active-text: null !default;
/// The base border color of the active Button.
/// @group button
$kendo-button-active-border: if($kendo-enable-color-system, k-color( border-alt ), k-try-shade( $kendo-button-bg, 4 )) !default;
/// The base background gradient of the active Button.
/// @group button
$kendo-button-active-gradient: null !default;
/// The base shadow of the active Button.
/// @group button
$kendo-button-active-shadow: null !default;
/// The base background color of the selected Button.
/// @group button
$kendo-button-selected-bg: $kendo-color-primary !default;
/// The text color of the selected Button.
/// @group button
$kendo-button-selected-text: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-button-selected-bg )) !default;
/// The border color of the selected Button.
/// @group button
$kendo-button-selected-border: $kendo-button-selected-bg !default;
/// The background gradient of the selected Button.
/// @group button
$kendo-button-selected-gradient: $kendo-button-active-gradient !default;
/// The base shadow of the selected Button.
/// @group button
$kendo-button-selected-shadow: $kendo-button-active-shadow !default;
/// The base background of the focused Button.
/// @group button
$kendo-button-focus-bg: null !default;
/// The base text color of the focused Button.
/// @group button
$kendo-button-focus-text: null !default;
/// The base border color of the focused Button.
/// @group button
$kendo-button-focus-border: null !default;
/// The base background gradient of the focused Button.
/// @group button
$kendo-button-focus-gradient: null !default;
/// The base shadow of the focused Button.
/// @group button
$kendo-button-focus-shadow: 0 0 4px 0 if($kendo-enable-color-system, rgba( k-color( border, true ), .75), rgba( $kendo-button-border, .75 )) !default;
/// The base background of the disabled Button.
/// @group button
$kendo-button-disabled-bg: null !default;
/// The base text color of the disabled Button.
/// @group button
$kendo-button-disabled-text: null !default;
/// The base border color of the disabled Button.
/// @group button
$kendo-button-disabled-border: null !default;
/// The base background gradient of the disabled Button.
/// @group button
$kendo-button-disabled-gradient: null !default;
/// The base shadow of the disabled Button.
/// @group button
$kendo-button-disabled-shadow: null !default;
// Solid Button
$kendo-solid-button-gradient: $kendo-base-gradient !default;
$kendo-solid-button-shade-function: "k-try-shade" !default;
$kendo-solid-button-shade-text-amount: 0 !default;
$kendo-solid-button-shade-bg-amount: 0 !default;
$kendo-solid-button-shade-border-amount: 2 !default;
$kendo-solid-button-hover-shade-text-amount: null !default;
$kendo-solid-button-hover-shade-bg-amount: 1 !default;
$kendo-solid-button-hover-shade-border-amount: 3 !default;
$kendo-solid-button-active-shade-text-amount: null !default;
$kendo-solid-button-active-shade-bg-amount: 2 !default;
$kendo-solid-button-active-shade-border-amount: 4 !default;
$kendo-solid-button-shadow: true !default;
$kendo-solid-button-shadow-blur: 4px !default;
$kendo-solid-button-shadow-spread: 0px !default;
$kendo-solid-button-shadow-opacity: .75 !default;
// Outline Button
$kendo-outline-button-shadow: true !default;
$kendo-outline-button-shadow-blur: 4px !default;
$kendo-outline-button-shadow-spread: 0px !default;
$kendo-outline-button-shadow-opacity: .75 !default;
// Link Button
$kendo-link-button-shadow: true !default;
$kendo-link-button-shadow-blur: 4px !default;
$kendo-link-button-shadow-spread: 0px !default;
$kendo-link-button-shadow-opacity: .75 !default;
// Clear Button
$kendo-clear-button-focus-opacity: .1 !default;
/// The overlay opacity of the hovered flat Button. Used to create a background for the flat Button.
/// @group button
$kendo-flat-button-hover-opacity: .08 !default;
/// The overlay opacity of the focused flat Button. Used to create a background for the flat Button.
/// @group button
$kendo-flat-button-focus-opacity: .12 !default;
/// The overlay opacity of the active flat Button. Used to create background for the flat Button.
/// @group button
$kendo-flat-button-active-opacity: .16 !default;
/// The overlay opacity of the selected flat Button. Used to create background for the flat Button.
/// @group button
$kendo-flat-button-selected-opacity: .2 !default;
/// The opacity of the flat Button focus ring. Used to create a border for the flat Button.
/// @group button
$kendo-flat-button-focus-ring-opacity: .12 !default;
/// The color transition of the flat Button.
/// @group button
$kendo-button-transition: color .2s ease-in-out !default;