@progress/kendo-theme-classic 4.43.1-dev.5 → 4.43.1-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.css +1012 -390
- package/dist/all.scss +397 -416
- package/modules/@progress/kendo-theme-default/package.json +2 -2
- package/modules/@progress/kendo-theme-default/scss/button/_layout.scss +54 -91
- package/modules/@progress/kendo-theme-default/scss/button/_theme.scss +177 -112
- package/modules/@progress/kendo-theme-default/scss/button/_variables.scss +74 -11
- package/modules/@progress/kendo-theme-default/scss/chat/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/colorgradient/_layout.scss +0 -4
- package/modules/@progress/kendo-theme-default/scss/common/_loading.scss +1 -13
- package/modules/@progress/kendo-theme-default/scss/grid/_layout.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/grid/_theme.scss +0 -6
- package/modules/@progress/kendo-theme-default/scss/listbox/_layout.scss +9 -0
- package/modules/@progress/kendo-theme-default/scss/mediaplayer/_layout.scss +8 -1
- package/modules/@progress/kendo-theme-default/scss/multiselect/_layout.scss +2 -2
- package/modules/@progress/kendo-theme-default/scss/slider/_layout.scss +35 -143
- package/modules/@progress/kendo-theme-default/scss/slider/_theme.scss +0 -6
- package/modules/@progress/kendo-theme-default/scss/spreadsheet/_layout.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/tabstrip/_layout.scss +5 -1
- package/modules/@progress/kendo-theme-default/scss/textarea/_layout.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/toolbar/_layout.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/treelist/_layout.scss +4 -0
- package/modules/@progress/kendo-theme-default/scss/treeview/_layout.scss +12 -18
- package/modules/@progress/kendo-theme-default/scss/window/_layout.scss +2 -2
- package/package.json +3 -3
- package/scss/button/_variables.scss +78 -15
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-theme-default",
|
|
3
3
|
"description": "SASS resources for the default Kendo UI theme",
|
|
4
|
-
"version": "4.43.1-dev.
|
|
4
|
+
"version": "4.43.1-dev.6",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"dart:flat": "gulp dart:flat",
|
|
48
48
|
"prepublishOnly": "echo 'no prebublish for default theme'"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "2362d5beb5c65e7d4b4bc9c8a06b589bc065be8d"
|
|
51
51
|
}
|
|
@@ -130,50 +130,51 @@
|
|
|
130
130
|
-webkit-touch-callout: none;
|
|
131
131
|
-webkit-tap-highlight-color: $rgba-transparent;
|
|
132
132
|
|
|
133
|
-
.k-button {
|
|
134
|
-
@include border-radius( 0 );
|
|
135
|
-
}
|
|
136
|
-
.k-button ~ .k-button {
|
|
133
|
+
> .k-button + .k-button {
|
|
137
134
|
margin-inline-start: if( $button-border-width == 0, null, -$button-border-width );
|
|
138
135
|
}
|
|
139
136
|
|
|
140
|
-
.k-button:hover,
|
|
141
|
-
.k-button.k-state-hover,
|
|
142
|
-
.k-button:
|
|
143
|
-
.k-button.k-state-
|
|
144
|
-
.k-button
|
|
145
|
-
.k-button
|
|
146
|
-
.k-button.k-state-
|
|
137
|
+
> .k-button:hover,
|
|
138
|
+
> .k-button.k-state-hover,
|
|
139
|
+
> .k-button:focus,
|
|
140
|
+
> .k-button.k-state-focus,
|
|
141
|
+
> .k-button:active,
|
|
142
|
+
> .k-button.k-state-active,
|
|
143
|
+
> .k-button.k-state-selected {
|
|
147
144
|
z-index: 2;
|
|
148
145
|
}
|
|
149
146
|
|
|
150
|
-
.k-
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
.k-button:not(:first-child):not(:last-child) {
|
|
148
|
+
border-start-end-radius: 0;
|
|
149
|
+
border-end-end-radius: 0;
|
|
150
|
+
border-start-start-radius: 0;
|
|
151
|
+
border-end-start-radius: 0;
|
|
153
152
|
}
|
|
154
|
-
.k-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
> .k-button:first-child:not(:only-child) {
|
|
154
|
+
border-start-end-radius: 0;
|
|
155
|
+
border-end-end-radius: 0;
|
|
157
156
|
}
|
|
158
|
-
.k-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
> .k-button:last-child:not(:only-child) {
|
|
158
|
+
border-start-start-radius: 0;
|
|
159
|
+
border-end-start-radius: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&:disabled,
|
|
163
|
+
&[disabled],
|
|
164
|
+
&.k-disabled,
|
|
165
|
+
&.k-state-disabled {
|
|
166
|
+
opacity: 1;
|
|
167
|
+
filter: none;
|
|
161
168
|
}
|
|
162
169
|
|
|
163
170
|
}
|
|
164
171
|
|
|
165
172
|
.k-button-group-stretched {
|
|
166
|
-
|
|
173
|
+
width: 100%;
|
|
167
174
|
|
|
168
|
-
|
|
169
|
-
display: inline-block;
|
|
175
|
+
> * {
|
|
170
176
|
flex: 1 0 0%;
|
|
171
177
|
overflow: hidden;
|
|
172
|
-
text-overflow: ellipsis;
|
|
173
|
-
|
|
174
|
-
> .k-icon {
|
|
175
|
-
vertical-align: text-bottom;
|
|
176
|
-
}
|
|
177
178
|
}
|
|
178
179
|
}
|
|
179
180
|
|
|
@@ -187,32 +188,13 @@
|
|
|
187
188
|
flex-flow: row nowrap;
|
|
188
189
|
vertical-align: middle;
|
|
189
190
|
|
|
190
|
-
.k-button {
|
|
191
|
-
@include border-radius( 0 );
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// .k-button
|
|
195
|
-
> .k-button:first-child {
|
|
196
|
-
@include border-left-radius( $button-border-radius );
|
|
197
|
-
}
|
|
198
|
-
> .k-split-button-arrow,
|
|
199
|
-
> .k-button:last-child {
|
|
200
|
-
@include border-right-radius( $button-border-radius );
|
|
201
|
-
margin-inline-start: if( $button-border-width == 0, null, -$button-border-width );
|
|
191
|
+
.k-split-button-arrow {
|
|
202
192
|
padding: $button-padding-y;
|
|
203
193
|
width: auto;
|
|
204
194
|
flex: none;
|
|
205
|
-
}
|
|
206
195
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
> .k-button:first-child {
|
|
210
|
-
@include border-left-radius( 0 );
|
|
211
|
-
@include border-right-radius( $button-border-radius );
|
|
212
|
-
}
|
|
213
|
-
> .k-button:last-child {
|
|
214
|
-
@include border-right-radius( 0 );
|
|
215
|
-
@include border-left-radius( $button-border-radius );
|
|
196
|
+
.k-button-icon {
|
|
197
|
+
min-width: 0;
|
|
216
198
|
}
|
|
217
199
|
}
|
|
218
200
|
}
|
|
@@ -256,13 +238,29 @@
|
|
|
256
238
|
.k-button-outline {
|
|
257
239
|
@include box-shadow( none );
|
|
258
240
|
color: inherit;
|
|
259
|
-
background:
|
|
241
|
+
background-color: transparent;
|
|
242
|
+
background-image: none !important; // sass-lint:disable-line no-important
|
|
260
243
|
}
|
|
261
244
|
.k-button.k-outline {
|
|
262
245
|
@extend .k-button-outline;
|
|
263
246
|
}
|
|
264
247
|
|
|
265
248
|
|
|
249
|
+
// Link button
|
|
250
|
+
.k-button-link {
|
|
251
|
+
@include box-shadow( none );
|
|
252
|
+
border-color: transparent !important; // sass-lint:disable-line no-important
|
|
253
|
+
color: inherit;
|
|
254
|
+
background-color: transparent !important; // sass-lint:disable-line no-important
|
|
255
|
+
background-image: none !important; // sass-lint:disable-line no-important
|
|
256
|
+
text-decoration: none;
|
|
257
|
+
}
|
|
258
|
+
.k-button-link:hover,
|
|
259
|
+
.k-button-link.k-state-hover {
|
|
260
|
+
text-decoration: underline;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
|
|
266
264
|
// Clear button
|
|
267
265
|
.k-button-clear {
|
|
268
266
|
border-color: transparent !important; // sass-lint:disable-line no-important
|
|
@@ -272,46 +270,11 @@
|
|
|
272
270
|
}
|
|
273
271
|
|
|
274
272
|
|
|
275
|
-
//
|
|
276
|
-
.k-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
.k-button {
|
|
282
|
-
@include border-radius( 0 );
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.k-group-start,
|
|
286
|
-
.k-button:first-child {
|
|
287
|
-
@include border-right-radius( $button-border-radius );
|
|
288
|
-
}
|
|
289
|
-
.k-group-end,
|
|
290
|
-
.k-button:last-child {
|
|
291
|
-
@include border-left-radius( $button-border-radius );
|
|
292
|
-
}
|
|
293
|
-
.k-group-start.k-group-end,
|
|
294
|
-
.k-button:first-child:last-child {
|
|
295
|
-
@include border-radius( $button-border-radius );
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
// Split button
|
|
301
|
-
.k-split-button {
|
|
302
|
-
|
|
303
|
-
.k-button {
|
|
304
|
-
@include border-radius( 0 );
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
// k-button
|
|
308
|
-
> .k-button:first-child {
|
|
309
|
-
@include border-right-radius( $button-border-radius );
|
|
310
|
-
}
|
|
311
|
-
> .k-split-button-arrow,
|
|
312
|
-
> .k-button:last-child {
|
|
313
|
-
@include border-left-radius( $button-border-radius );
|
|
314
|
-
}
|
|
273
|
+
// IE
|
|
274
|
+
.k-ie .k-button-group,
|
|
275
|
+
.k-ie .k-split-button {
|
|
276
|
+
.k-button {
|
|
277
|
+
@include border-radius( 0 );
|
|
315
278
|
}
|
|
316
279
|
}
|
|
317
280
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
@include exports( "button/theme" ) {
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
.k-button
|
|
5
|
-
.k-button-secondary {
|
|
3
|
+
// Solid button
|
|
4
|
+
.k-button {
|
|
6
5
|
@include fill(
|
|
7
6
|
$button-text,
|
|
8
7
|
$button-bg,
|
|
@@ -66,75 +65,70 @@
|
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
}
|
|
68
|
+
.k-button.k-primary {
|
|
69
|
+
@extend .k-button-solid-primary !optional;
|
|
70
|
+
}
|
|
69
71
|
|
|
72
|
+
$_shade-fn: get-function( $solid-button-shade-function );
|
|
70
73
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
$primary-button-bg,
|
|
76
|
-
$primary-button-border,
|
|
77
|
-
$primary-button-gradient
|
|
78
|
-
);
|
|
79
|
-
@include box-shadow( $primary-button-shadow );
|
|
74
|
+
@each $name, $color in $button-theme-colors {
|
|
75
|
+
$_button-text: contrast-wcag( $color );
|
|
76
|
+
$_button-bg: if( $solid-button-shade-bg-amount, call( $_shade-fn, $color, $solid-button-shade-bg-amount ), null );
|
|
77
|
+
$_button-border: if( $solid-button-shade-border-amount, call( $_shade-fn, $color, $solid-button-shade-border-amount ), null );
|
|
80
78
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
@include fill(
|
|
85
|
-
$primary-button-hovered-text,
|
|
86
|
-
$primary-button-hovered-bg,
|
|
87
|
-
$primary-button-hovered-border,
|
|
88
|
-
$primary-button-hovered-gradient
|
|
89
|
-
);
|
|
90
|
-
@include box-shadow( $primary-button-hovered-shadow );
|
|
91
|
-
}
|
|
79
|
+
$_button-hover-text: null;
|
|
80
|
+
$_button-hover-bg: if( $solid-button-hover-shade-bg-amount, call( $_shade-fn, $color, $solid-button-hover-shade-bg-amount ), null );
|
|
81
|
+
$_button-hover-border: if( $solid-button-hover-shade-border-amount, call( $_shade-fn, $color, $solid-button-hover-shade-border-amount ), null );
|
|
92
82
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
&.k-state-focused {
|
|
97
|
-
@include box-shadow( $primary-button-focused-shadow );
|
|
98
|
-
}
|
|
83
|
+
$_button-active-text: null;
|
|
84
|
+
$_button-active-bg: if( $solid-button-active-shade-bg-amount, call( $_shade-fn, $color, $solid-button-active-shade-bg-amount ), null );
|
|
85
|
+
$_button-active-border: if( $solid-button-active-shade-border-amount, call( $_shade-fn, $color, $solid-button-active-shade-border-amount ), null );
|
|
99
86
|
|
|
100
|
-
|
|
101
|
-
&:active,
|
|
102
|
-
&.k-state-active {
|
|
87
|
+
.k-button-solid.k-button-solid-#{$name} {
|
|
103
88
|
@include fill(
|
|
104
|
-
$
|
|
105
|
-
$
|
|
106
|
-
$
|
|
107
|
-
$
|
|
89
|
+
$_button-text,
|
|
90
|
+
$_button-bg,
|
|
91
|
+
$_button-border,
|
|
92
|
+
$solid-button-gradient
|
|
108
93
|
);
|
|
109
|
-
@include box-shadow( $primary-button-active-shadow );
|
|
110
|
-
}
|
|
111
94
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
95
|
+
// Hover state
|
|
96
|
+
&:hover,
|
|
97
|
+
&.k-state-hover {
|
|
98
|
+
@include fill(
|
|
99
|
+
$_button-hover-text,
|
|
100
|
+
$_button-hover-bg,
|
|
101
|
+
$_button-hover-border
|
|
102
|
+
);
|
|
103
|
+
}
|
|
122
104
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
$button-disabled-gradient
|
|
131
|
-
);
|
|
132
|
-
@include box-shadow( $button-disabled-shadow );
|
|
133
|
-
}
|
|
105
|
+
// Focus state
|
|
106
|
+
&:focus,
|
|
107
|
+
&.k-state-focus {
|
|
108
|
+
@if ( $solid-button-shadow ) {
|
|
109
|
+
box-shadow: 0 0 $solid-button-shadow-blur $solid-button-shadow-spread rgba( $_button-border, $solid-button-shadow-opacity );
|
|
110
|
+
}
|
|
111
|
+
}
|
|
134
112
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
113
|
+
// Active state
|
|
114
|
+
&:active,
|
|
115
|
+
&.k-state-active {
|
|
116
|
+
@include fill(
|
|
117
|
+
$_button-active-text,
|
|
118
|
+
$_button-active-bg,
|
|
119
|
+
$_button-active-border
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Selected
|
|
124
|
+
&.k-state-selected {
|
|
125
|
+
@include fill(
|
|
126
|
+
$_button-active-text,
|
|
127
|
+
$_button-active-bg,
|
|
128
|
+
$_button-active-border
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
138
132
|
}
|
|
139
133
|
|
|
140
134
|
|
|
@@ -143,18 +137,7 @@
|
|
|
143
137
|
|
|
144
138
|
|
|
145
139
|
// Button group
|
|
146
|
-
.k-button-group {
|
|
147
|
-
|
|
148
|
-
.k-button:focus,
|
|
149
|
-
.k-button.k-state-focus,
|
|
150
|
-
.k-button.k-state-focused,
|
|
151
|
-
.k-button-outline:focus,
|
|
152
|
-
.k-button-outline.k-state-focus,
|
|
153
|
-
.k-button-outline.k-state-focused {
|
|
154
|
-
@include box-shadow( $button-group-focus-shadow );
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
}
|
|
140
|
+
.k-button-group {}
|
|
158
141
|
|
|
159
142
|
|
|
160
143
|
// Split button
|
|
@@ -176,62 +159,96 @@
|
|
|
176
159
|
@include box-shadow( none );
|
|
177
160
|
border-color: currentColor;
|
|
178
161
|
color: $button-text;
|
|
179
|
-
background:
|
|
162
|
+
background-color: transparent;
|
|
180
163
|
|
|
181
164
|
// Hover state
|
|
182
165
|
&:hover,
|
|
183
166
|
&.k-state-hover {
|
|
184
|
-
@include fill(
|
|
167
|
+
@include fill(
|
|
168
|
+
contrast-wcag( $button-text ),
|
|
169
|
+
$button-text,
|
|
170
|
+
$button-text
|
|
171
|
+
);
|
|
185
172
|
}
|
|
186
173
|
|
|
187
174
|
// Focused state
|
|
188
175
|
&:focus,
|
|
189
176
|
&.k-state-focus,
|
|
190
177
|
&.k-state-focused {
|
|
191
|
-
|
|
178
|
+
@if ($outline-button-shadow) {
|
|
179
|
+
box-shadow: 0 0 $outline-button-shadow-blur $outline-button-shadow-spread rgba( $button-text, $outline-button-shadow-opacity );
|
|
180
|
+
}
|
|
192
181
|
}
|
|
193
182
|
|
|
194
183
|
// Active state
|
|
195
184
|
&:active,
|
|
196
185
|
&.k-state-active {
|
|
197
|
-
@include fill(
|
|
186
|
+
@include fill(
|
|
187
|
+
contrast-wcag( $button-text ),
|
|
188
|
+
$button-text,
|
|
189
|
+
$button-text
|
|
190
|
+
);
|
|
198
191
|
}
|
|
199
192
|
|
|
200
193
|
// Selected state
|
|
201
194
|
&.k-state-selected {
|
|
202
|
-
@include fill(
|
|
195
|
+
@include fill(
|
|
196
|
+
contrast-wcag( $button-text ),
|
|
197
|
+
$button-text,
|
|
198
|
+
$button-text
|
|
199
|
+
);
|
|
203
200
|
}
|
|
204
201
|
}
|
|
205
202
|
.k-button-outline.k-primary {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
background: none;
|
|
209
|
-
box-shadow: none;
|
|
203
|
+
@extend .k-button-outline-primary !optional;
|
|
204
|
+
}
|
|
210
205
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
206
|
+
@each $name, $color in $button-theme-colors {
|
|
207
|
+
.k-button-outline.k-button-outline-#{$name} {
|
|
208
|
+
@include box-shadow( none );
|
|
209
|
+
border-color: currentColor;
|
|
210
|
+
color: $color;
|
|
211
|
+
background-color: transparent;
|
|
212
|
+
|
|
213
|
+
// Hover state
|
|
214
|
+
&:hover,
|
|
215
|
+
&.k-state-hover {
|
|
216
|
+
@include fill(
|
|
217
|
+
contrast-wcag( $color ),
|
|
218
|
+
$color,
|
|
219
|
+
$color
|
|
220
|
+
);
|
|
221
|
+
}
|
|
216
222
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
+
// Focused state
|
|
224
|
+
&:focus,
|
|
225
|
+
&.k-state-focus,
|
|
226
|
+
&.k-state-focused {
|
|
227
|
+
@if ($outline-button-shadow) {
|
|
228
|
+
box-shadow: 0 0 $outline-button-shadow-blur $outline-button-shadow-spread rgba( $color, $outline-button-shadow-opacity );
|
|
229
|
+
}
|
|
230
|
+
}
|
|
223
231
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
232
|
+
// Active state
|
|
233
|
+
&:active,
|
|
234
|
+
&.k-state-active {
|
|
235
|
+
@include fill(
|
|
236
|
+
contrast-wcag( $color ),
|
|
237
|
+
$color,
|
|
238
|
+
$color
|
|
239
|
+
);
|
|
240
|
+
box-shadow: none;
|
|
241
|
+
}
|
|
230
242
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
243
|
+
// Selected state
|
|
244
|
+
&.k-state-selected {
|
|
245
|
+
@include fill(
|
|
246
|
+
contrast-wcag( $color ),
|
|
247
|
+
$color,
|
|
248
|
+
$color
|
|
249
|
+
);
|
|
250
|
+
box-shadow: none;
|
|
251
|
+
}
|
|
235
252
|
}
|
|
236
253
|
}
|
|
237
254
|
|
|
@@ -254,17 +271,65 @@
|
|
|
254
271
|
&.k-state-focus {
|
|
255
272
|
color: inherit;
|
|
256
273
|
}
|
|
274
|
+
|
|
275
|
+
// Disabled state
|
|
276
|
+
&:disabled,
|
|
277
|
+
&.k-state-disabled {
|
|
278
|
+
color: $button-disabled-text;
|
|
279
|
+
}
|
|
257
280
|
}
|
|
258
281
|
.k-button-flat.k-primary {
|
|
282
|
+
@extend .k-button-flat-primary !optional;
|
|
283
|
+
}
|
|
259
284
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
285
|
+
@each $name, $color in $button-theme-colors {
|
|
286
|
+
.k-button-flat.k-button-flat-#{$name} {
|
|
287
|
+
|
|
288
|
+
&,
|
|
289
|
+
&:hover,
|
|
290
|
+
&.k-state-hover,
|
|
291
|
+
&:active,
|
|
292
|
+
&.k-state-active,
|
|
293
|
+
&:focus,
|
|
294
|
+
&.k-state-focus {
|
|
295
|
+
color: $color;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// Disabled state
|
|
299
|
+
&:disabled,
|
|
300
|
+
&.k-state-disabled {
|
|
301
|
+
color: $button-disabled-text;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
@include exports( "link-button/theme" ) {
|
|
312
|
+
|
|
313
|
+
@each $name, $color in map-merge( $button-theme-colors, ( "base": $base-text ) ) {
|
|
314
|
+
.k-button-link.k-button-link-#{$name} {
|
|
315
|
+
@include box-shadow( none );
|
|
316
|
+
color: $color;
|
|
317
|
+
|
|
318
|
+
&:hover,
|
|
319
|
+
&.k-state-hover {
|
|
320
|
+
color: try-shade( $color, 2 );
|
|
321
|
+
}
|
|
322
|
+
&:focus,
|
|
323
|
+
&.k-state-focus {
|
|
324
|
+
@if ($link-button-shadow) {
|
|
325
|
+
box-shadow: 0 0 $link-button-shadow-blur $link-button-shadow-spread rgba( $color, $link-button-shadow-opacity );
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
&:active,
|
|
329
|
+
&.k-state-active,
|
|
330
|
+
&.k-state-selected {
|
|
331
|
+
color: try-shade( $color, 2 );
|
|
332
|
+
}
|
|
268
333
|
}
|
|
269
334
|
}
|
|
270
335
|
|
|
@@ -1,29 +1,68 @@
|
|
|
1
1
|
// Button
|
|
2
2
|
|
|
3
|
-
/// Width of border around
|
|
3
|
+
/// Width of the border around the button.
|
|
4
4
|
/// @group button
|
|
5
5
|
$button-border-width: 1px !default;
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
/// Border radius of the button.
|
|
7
8
|
/// @group button
|
|
8
9
|
$button-border-radius: $border-radius !default;
|
|
9
10
|
|
|
10
|
-
/// Horizontal padding of
|
|
11
|
+
/// Horizontal padding of the button.
|
|
12
|
+
/// @group button
|
|
13
|
+
$button-padding-x: map-get( $spacing, 2 ) !default;
|
|
14
|
+
$button-padding-x-sm: null !default;
|
|
15
|
+
$button-padding-x-md: null !default;
|
|
16
|
+
$button-padding-x-lg: null !default;
|
|
17
|
+
|
|
18
|
+
/// Vertical padding of the button.
|
|
11
19
|
/// @group button
|
|
12
|
-
$button-padding-
|
|
13
|
-
|
|
20
|
+
$button-padding-y: map-get( $spacing, 1 ) !default;
|
|
21
|
+
$button-padding-y-sm: null !default;
|
|
22
|
+
$button-padding-y-md: null !default;
|
|
23
|
+
$button-padding-y-lg: null !default;
|
|
24
|
+
|
|
25
|
+
/// Font family of the button.
|
|
14
26
|
/// @group button
|
|
15
|
-
$button-padding-y: $padding-y !default;
|
|
16
27
|
$button-font-family: $font-family !default;
|
|
28
|
+
|
|
29
|
+
/// Font size of the button.
|
|
30
|
+
/// @group button
|
|
17
31
|
$button-font-size: $font-size !default;
|
|
18
|
-
$button-
|
|
32
|
+
$button-font-size-sm: null !default;
|
|
33
|
+
$button-font-size-md: null !default;
|
|
34
|
+
$button-font-size-lg: null !default;
|
|
19
35
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
$button-line-height
|
|
36
|
+
/// Line height used along with $font-size.
|
|
37
|
+
/// @group button
|
|
38
|
+
$button-line-height: $line-height !default;
|
|
39
|
+
$button-line-height-sm: null !default;
|
|
40
|
+
$button-line-height-md: null !default;
|
|
41
|
+
$button-line-height-lg: null !default;
|
|
23
42
|
|
|
43
|
+
/// Calculated height of the button.
|
|
44
|
+
/// @group button
|
|
24
45
|
$button-calc-size: calc( #{$button-line-height * 1em} + #{$button-padding-y * 2} + #{$button-border-width * 2} ) !default;
|
|
46
|
+
|
|
47
|
+
/// Calculated inner height of the button. Without the border width.
|
|
48
|
+
/// @group button
|
|
25
49
|
$button-inner-calc-size: calc( #{$button-line-height * 1em} + #{$button-padding-y * 2} ) !default;
|
|
26
50
|
|
|
51
|
+
/// Theme colors map for the button.
|
|
52
|
+
/// @group button
|
|
53
|
+
$button-theme-colors: (
|
|
54
|
+
"primary": map-get( $theme-colors, primary ),
|
|
55
|
+
"secondary": map-get( $theme-colors, secondary ),
|
|
56
|
+
"tertiary": map-get( $theme-colors, tertiary ),
|
|
57
|
+
"info": map-get( $theme-colors, info ),
|
|
58
|
+
"success": map-get( $theme-colors, success ),
|
|
59
|
+
"warning": map-get( $theme-colors, warning ),
|
|
60
|
+
"error": map-get( $theme-colors, error ),
|
|
61
|
+
"dark": map-get( $theme-colors, dark ),
|
|
62
|
+
"light": map-get( $theme-colors, light ),
|
|
63
|
+
"inverse": map-get( $theme-colors, inverse )
|
|
64
|
+
) !default;
|
|
65
|
+
|
|
27
66
|
/// The background of the buttons.
|
|
28
67
|
/// @group button
|
|
29
68
|
$button-bg: #f5f5f5 !default;
|
|
@@ -120,7 +159,31 @@ $primary-button-selected-shadow: null !default;
|
|
|
120
159
|
|
|
121
160
|
$primary-button-focused-shadow: 0 0 0 2px rgba( $primary-button-border, .3 ) !default;
|
|
122
161
|
|
|
123
|
-
$button-
|
|
162
|
+
$solid-button-gradient: rgba( black, 0 ), rgba( black, .02 ) !default;
|
|
163
|
+
$solid-button-shade-function: "try-shade";
|
|
164
|
+
$solid-button-shade-text-amount: 0 !default;
|
|
165
|
+
$solid-button-shade-bg-amount: 0 !default;
|
|
166
|
+
$solid-button-shade-border-amount: 0 !default;
|
|
167
|
+
$solid-button-hover-shade-text-amount: null !default;
|
|
168
|
+
$solid-button-hover-shade-bg-amount: .5 !default;
|
|
169
|
+
$solid-button-hover-shade-border-amount: .5 !default;
|
|
170
|
+
$solid-button-active-shade-text-amount: null !default;
|
|
171
|
+
$solid-button-active-shade-bg-amount: 1.5 !default;
|
|
172
|
+
$solid-button-active-shade-border-amount: 1.5 !default;
|
|
173
|
+
$solid-button-shadow: true !default;
|
|
174
|
+
$solid-button-shadow-blur: 0px !default;
|
|
175
|
+
$solid-button-shadow-spread: 2px !default;
|
|
176
|
+
$solid-button-shadow-opacity: .3 !default;
|
|
177
|
+
|
|
178
|
+
$outline-button-shadow: true !default;
|
|
179
|
+
$outline-button-shadow-blur: 0px !default;
|
|
180
|
+
$outline-button-shadow-spread: 2px !default;
|
|
181
|
+
$outline-button-shadow-opacity: .3 !default;
|
|
182
|
+
|
|
183
|
+
$link-button-shadow: true !default;
|
|
184
|
+
$link-button-shadow-blur: 0px !default;
|
|
185
|
+
$link-button-shadow-spread: 2px !default;
|
|
186
|
+
$link-button-shadow-opacity: .3 !default;
|
|
124
187
|
|
|
125
188
|
$flat-button-hover-opacity: .04 !default;
|
|
126
189
|
$flat-button-focus-opacity: null !default;
|