@progress/kendo-theme-fluent 10.1.0-dev.5 → 10.1.0
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 +1 -1
- package/dist/fluent-main-dark.css +1 -1
- package/dist/fluent-main.css +1 -1
- package/dist/meta/sassdoc-data.json +6174 -1280
- package/dist/meta/sassdoc-raw-data.json +3042 -867
- package/dist/meta/variables.json +492 -16
- package/lib/swatches/all.json +1 -1
- package/lib/swatches/fluent-main-dark.json +1 -1
- package/lib/swatches/fluent-main.json +1 -1
- package/package.json +4 -4
- package/scss/action-sheet/_layout.scss +28 -0
- package/scss/checkbox/_layout.scss +36 -11
- package/scss/checkbox/_variables.scss +7 -7
- package/scss/coloreditor/_layout.scss +51 -0
- package/scss/coloreditor/_variables.scss +122 -0
- package/scss/colorgradient/_layout.scss +38 -0
- package/scss/colorgradient/_variables.scss +89 -1
- package/scss/colorpalette/_variables.scss +36 -0
- package/scss/dock-manager/_layout.scss +4 -0
- package/scss/index.scss +3 -0
- package/scss/input/_layout.scss +53 -0
- package/scss/input/_variables.scss +7 -0
- package/scss/otp/_index.scss +18 -0
- package/scss/otp/_layout.scss +42 -0
- package/scss/otp/_theme.scss +12 -0
- package/scss/otp/_variables.scss +61 -0
- package/scss/radio/_layout.scss +17 -6
- package/scss/radio/_variables.scss +1 -1
- package/scss/tabstrip/_layout.scss +109 -1
- package/scss/tabstrip/_theme.scss +47 -0
- package/scss/tabstrip/_variables.scss +68 -1
- package/scss/toolbar/_layout.scss +86 -9
- package/scss/toolbar/_theme.scss +87 -6
- package/scss/toolbar/_variables.scss +29 -3
|
@@ -26,6 +26,25 @@ $kendo-color-palette-tile-width: k-spacing(6) !default;
|
|
|
26
26
|
/// The height of the ColorPalette tile.
|
|
27
27
|
/// @group color-palette
|
|
28
28
|
$kendo-color-palette-tile-height: $kendo-color-palette-tile-width !default;
|
|
29
|
+
/// The width of the small ColorPalette tile.
|
|
30
|
+
/// @group color-palette
|
|
31
|
+
$kendo-color-palette-tile-sm-width: k-spacing(5.5) !default;
|
|
32
|
+
/// The height of the small ColorPalette tile.
|
|
33
|
+
/// @group color-palette
|
|
34
|
+
$kendo-color-palette-tile-sm-height: $kendo-color-palette-tile-sm-width !default;
|
|
35
|
+
/// The width of the medium ColorPalette tile.
|
|
36
|
+
/// @group color-palette
|
|
37
|
+
$kendo-color-palette-tile-md-width: $kendo-color-palette-tile-width !default;
|
|
38
|
+
/// The height of the medium ColorPalette tile.
|
|
39
|
+
/// @group color-palette
|
|
40
|
+
$kendo-color-palette-tile-md-height: $kendo-color-palette-tile-height !default;
|
|
41
|
+
/// The width of the large ColorPalette tile.
|
|
42
|
+
/// @group color-palette
|
|
43
|
+
$kendo-color-palette-tile-lg-width: k-spacing(8) !default;
|
|
44
|
+
/// The height of the large ColorPalette tile.
|
|
45
|
+
/// @group color-palette
|
|
46
|
+
$kendo-color-palette-tile-lg-height: $kendo-color-palette-tile-lg-width !default;
|
|
47
|
+
|
|
29
48
|
/// The outline color of the ColorPalette focused tile.
|
|
30
49
|
/// @group color-palette
|
|
31
50
|
$kendo-color-palette-tile-focus-outline: if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-130 )) !default;
|
|
@@ -47,3 +66,20 @@ $kendo-color-palette-tile-selected-shadow: $kendo-color-palette-tile-hover-shado
|
|
|
47
66
|
/// The outline color of the ColorPalette selected hover tile.
|
|
48
67
|
/// @group color-palette
|
|
49
68
|
$kendo-color-palette-tile-selected-hover-outline: $kendo-color-palette-tile-focus-outline !default;
|
|
69
|
+
|
|
70
|
+
/// The size map of the ColorPalette.
|
|
71
|
+
/// @group color-palette
|
|
72
|
+
$kendo-color-palette-sizes: (
|
|
73
|
+
sm: (
|
|
74
|
+
width: $kendo-color-palette-tile-sm-width,
|
|
75
|
+
height: $kendo-color-palette-tile-sm-height
|
|
76
|
+
),
|
|
77
|
+
md: (
|
|
78
|
+
width: $kendo-color-palette-tile-md-width,
|
|
79
|
+
height: $kendo-color-palette-tile-md-height
|
|
80
|
+
),
|
|
81
|
+
lg: (
|
|
82
|
+
width: $kendo-color-palette-tile-lg-width,
|
|
83
|
+
height: $kendo-color-palette-tile-lg-height
|
|
84
|
+
)
|
|
85
|
+
) !default;
|
|
@@ -154,6 +154,10 @@
|
|
|
154
154
|
border-radius: var( --kendo-dock-manager-dock-preview-border-radius, #{$kendo-dock-manager-dock-preview-border-radius} );
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
.k-dock-manager-window:has(.k-pane) .k-window-content {
|
|
158
|
+
padding: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
157
161
|
}
|
|
158
162
|
|
|
159
163
|
@mixin kendo-dock-indicator--layout() {
|
package/scss/index.scss
CHANGED
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
@forward "./map/_index.scss";
|
|
115
115
|
@forward "./orgchart/_index.scss";
|
|
116
116
|
@forward "./signature/_index.scss";
|
|
117
|
+
@forward "./otp/_index.scss";
|
|
117
118
|
|
|
118
119
|
|
|
119
120
|
// Use component modules
|
|
@@ -202,6 +203,7 @@
|
|
|
202
203
|
@use "./switch/index.scss" as *;
|
|
203
204
|
@use "./upload/index.scss" as *;
|
|
204
205
|
@use "./dropzone/index.scss" as *;
|
|
206
|
+
@use "./otp/index.scss" as *;
|
|
205
207
|
|
|
206
208
|
|
|
207
209
|
// Command interfaces
|
|
@@ -378,6 +380,7 @@
|
|
|
378
380
|
@include kendo-switch--styles();
|
|
379
381
|
@include kendo-upload--styles();
|
|
380
382
|
@include kendo-dropzone--styles();
|
|
383
|
+
@include kendo-otp--styles();
|
|
381
384
|
|
|
382
385
|
|
|
383
386
|
// Command interfaces
|
package/scss/input/_layout.scss
CHANGED
|
@@ -253,6 +253,59 @@
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
+
// Input group
|
|
257
|
+
.k-input-group {
|
|
258
|
+
margin: 0;
|
|
259
|
+
padding: 0;
|
|
260
|
+
border-width: 0;
|
|
261
|
+
box-sizing: border-box;
|
|
262
|
+
list-style: none;
|
|
263
|
+
outline: 0;
|
|
264
|
+
display: inline-flex;
|
|
265
|
+
flex-flow: row nowrap;
|
|
266
|
+
vertical-align: middle;
|
|
267
|
+
position: relative;
|
|
268
|
+
-webkit-touch-callout: none;
|
|
269
|
+
-webkit-tap-highlight-color: $kendo-color-rgba-transparent;
|
|
270
|
+
|
|
271
|
+
> .k-input + .k-input {
|
|
272
|
+
margin-inline-start: if( $kendo-input-border-width == 0, null, -$kendo-input-border-width );
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
> .k-input:hover,
|
|
276
|
+
> .k-input.k-hover,
|
|
277
|
+
> .k-input:focus,
|
|
278
|
+
> .k-input:focus-within,
|
|
279
|
+
> .k-input.k-focus,
|
|
280
|
+
> .k-input:active,
|
|
281
|
+
> .k-input.k-active,
|
|
282
|
+
> .k-input.k-selected {
|
|
283
|
+
z-index: 2;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.k-input:not(:first-child):not(:last-child) {
|
|
287
|
+
border-start-end-radius: 0;
|
|
288
|
+
border-end-end-radius: 0;
|
|
289
|
+
border-start-start-radius: 0;
|
|
290
|
+
border-end-start-radius: 0;
|
|
291
|
+
}
|
|
292
|
+
> .k-input:first-child:not(:only-child) {
|
|
293
|
+
border-start-end-radius: 0;
|
|
294
|
+
border-end-end-radius: 0;
|
|
295
|
+
}
|
|
296
|
+
> .k-input:last-child:not(:only-child) {
|
|
297
|
+
border-start-start-radius: 0;
|
|
298
|
+
border-end-start-radius: 0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
&:disabled,
|
|
302
|
+
&[disabled],
|
|
303
|
+
&.k-disabled {
|
|
304
|
+
opacity: 1;
|
|
305
|
+
filter: none;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
256
309
|
// Input with icon styles
|
|
257
310
|
.k-input-icon,
|
|
258
311
|
.k-input-validation-icon,
|
|
@@ -449,6 +449,13 @@ $kendo-picker-flat-disabled-bg: none !default;
|
|
|
449
449
|
/// @group input
|
|
450
450
|
$kendo-picker-flat-disabled-border: $kendo-picker-flat-disabled-text !default;
|
|
451
451
|
|
|
452
|
+
/// The calculated height of the Input.
|
|
453
|
+
/// @group input
|
|
454
|
+
$kendo-input-calc-size: calc( ( #{$kendo-input-md-line-height} * 1em ) + ( #{$kendo-input-md-padding-y} * 2 ) + ( #{$kendo-input-border-width * 2} ) ) !default;
|
|
455
|
+
$kendo-input-sm-calc-size: calc( ( #{$kendo-input-sm-line-height} * 1em ) + ( #{$kendo-input-sm-padding-y} * 2 ) + ( #{$kendo-input-border-width * 2} ) ) !default;
|
|
456
|
+
$kendo-input-md-calc-size: calc( ( #{$kendo-input-md-line-height} * 1em ) + ( #{$kendo-input-md-padding-y} * 2 ) + ( #{$kendo-input-border-width * 2} ) ) !default;
|
|
457
|
+
$kendo-input-lg-calc-size: calc( ( #{$kendo-input-lg-line-height} * 1em ) + ( #{$kendo-input-lg-padding-y} * 2 ) + ( #{$kendo-input-border-width * 2} ) ) !default;
|
|
458
|
+
|
|
452
459
|
/// The sizes map for the Input components.
|
|
453
460
|
/// @group input
|
|
454
461
|
$kendo-input-sizes: (
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Dependencies
|
|
2
|
+
@use "../core/_index.scss" as *;
|
|
3
|
+
@use "../input/_index.scss" as *;
|
|
4
|
+
|
|
5
|
+
// Component
|
|
6
|
+
@forward "./_variables.scss";
|
|
7
|
+
@use "./_layout.scss" as *;
|
|
8
|
+
@use "./_theme.scss" as *;
|
|
9
|
+
|
|
10
|
+
// Expose
|
|
11
|
+
@mixin kendo-otp--styles() {
|
|
12
|
+
@include import-once( "otp" ) {
|
|
13
|
+
@include core-styles();
|
|
14
|
+
@include kendo-input--styles();
|
|
15
|
+
@include kendo-otp--layout();
|
|
16
|
+
@include kendo-otp--theme();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "./_variables.scss" as *;
|
|
3
|
+
@use "../core/_index.scss" as *;
|
|
4
|
+
@use "../input/_variables.scss" as *;
|
|
5
|
+
|
|
6
|
+
@mixin kendo-otp--layout-base() {
|
|
7
|
+
// OTP
|
|
8
|
+
.k-otp {
|
|
9
|
+
display: flex;
|
|
10
|
+
width: min-content;
|
|
11
|
+
align-items: center;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
gap: var( --INTERNAL--kendo-otp-gap, 0 );
|
|
14
|
+
|
|
15
|
+
.k-otp-input > .k-input-inner {
|
|
16
|
+
text-align: center;
|
|
17
|
+
padding-inline: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@each $size, $size-props in $kendo-otp-sizes {
|
|
22
|
+
$_gap: map.get($size-props, gap);
|
|
23
|
+
$_separator-padding-x: map.get($size-props, separator-padding-x);
|
|
24
|
+
$_input-width: map.get($size-props, input-width);
|
|
25
|
+
|
|
26
|
+
.k-otp-#{$size} {
|
|
27
|
+
--INTERNAL--kendo-otp-gap: var( --kendo-otp-#{$size}-gap, #{$_gap} );
|
|
28
|
+
|
|
29
|
+
.k-otp-input {
|
|
30
|
+
min-width: $_input-width;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.k-otp-separator:not(:empty) {
|
|
34
|
+
padding-inline: $_separator-padding-x;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin kendo-otp--layout() {
|
|
41
|
+
@include kendo-otp--layout-base();
|
|
42
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use "../core/_index.scss" as *;
|
|
2
|
+
@use "../input/_variables.scss" as *;
|
|
3
|
+
|
|
4
|
+
// OTP
|
|
5
|
+
|
|
6
|
+
/// The gap between the items in the OTP.
|
|
7
|
+
/// @group one-time-password
|
|
8
|
+
$kendo-otp-gap: k-spacing(1.5) !default;
|
|
9
|
+
/// The gap between the items in the small OTP.
|
|
10
|
+
/// @group one-time-password
|
|
11
|
+
$kendo-otp-sm-gap: k-spacing(1) !default;
|
|
12
|
+
/// The gap between the items in the medium OTP.
|
|
13
|
+
/// @group one-time-password
|
|
14
|
+
$kendo-otp-md-gap: $kendo-otp-gap !default;
|
|
15
|
+
/// The gap between the items in the large OTP.
|
|
16
|
+
/// @group one-time-password
|
|
17
|
+
$kendo-otp-lg-gap: k-spacing(2) !default;
|
|
18
|
+
|
|
19
|
+
/// The horizontal padding of the OTP separator.
|
|
20
|
+
/// @group one-time-password
|
|
21
|
+
$kendo-otp-separator-padding-x: $kendo-otp-gap !default;
|
|
22
|
+
/// The horizontal padding of the small OTP separator.
|
|
23
|
+
/// @group one-time-password
|
|
24
|
+
$kendo-otp-sm-separator-padding-x: $kendo-otp-sm-gap !default;
|
|
25
|
+
/// The horizontal padding of the medium OTP separator.
|
|
26
|
+
/// @group one-time-password
|
|
27
|
+
$kendo-otp-md-separator-padding-x: $kendo-otp-separator-padding-x !default;
|
|
28
|
+
/// The horizontal padding of the large OTP separator.
|
|
29
|
+
/// @group one-time-password
|
|
30
|
+
$kendo-otp-lg-separator-padding-x: $kendo-otp-lg-gap !default;
|
|
31
|
+
|
|
32
|
+
/// The horizontal padding of the OTP separator.
|
|
33
|
+
/// @group one-time-password
|
|
34
|
+
$kendo-otp-input-width: $kendo-input-calc-size !default;
|
|
35
|
+
/// The horizontal padding of the small OTP separator.
|
|
36
|
+
/// @group one-time-password
|
|
37
|
+
$kendo-otp-sm-input-width: $kendo-input-sm-calc-size !default;
|
|
38
|
+
/// The horizontal padding of the medium OTP separator.
|
|
39
|
+
/// @group one-time-password
|
|
40
|
+
$kendo-otp-md-input-width: $kendo-otp-input-width !default;
|
|
41
|
+
/// The horizontal padding of the large OTP separator.
|
|
42
|
+
/// @group one-time-password
|
|
43
|
+
$kendo-otp-lg-input-width: $kendo-input-lg-calc-size !default;
|
|
44
|
+
|
|
45
|
+
$kendo-otp-sizes: (
|
|
46
|
+
sm: (
|
|
47
|
+
gap: $kendo-otp-sm-gap,
|
|
48
|
+
separator-padding-x: $kendo-otp-sm-separator-padding-x,
|
|
49
|
+
input-width: $kendo-otp-sm-input-width
|
|
50
|
+
),
|
|
51
|
+
md: (
|
|
52
|
+
gap: $kendo-otp-md-gap,
|
|
53
|
+
separator-padding-x: $kendo-otp-md-separator-padding-x,
|
|
54
|
+
input-width: $kendo-otp-md-input-width
|
|
55
|
+
),
|
|
56
|
+
lg: (
|
|
57
|
+
gap: $kendo-otp-lg-gap,
|
|
58
|
+
separator-padding-x: $kendo-otp-lg-separator-padding-x,
|
|
59
|
+
input-width: $kendo-otp-lg-input-width
|
|
60
|
+
)
|
|
61
|
+
) !default;
|
package/scss/radio/_layout.scss
CHANGED
|
@@ -25,10 +25,6 @@
|
|
|
25
25
|
position: relative;
|
|
26
26
|
cursor: pointer;
|
|
27
27
|
-webkit-appearance: none;
|
|
28
|
-
|
|
29
|
-
@if $kendo-radio-indicator-type == "image" {
|
|
30
|
-
background-size: var( --INTERNAL--kendo-checkbox-indicator-size, 100% );
|
|
31
|
-
}
|
|
32
28
|
}
|
|
33
29
|
|
|
34
30
|
|
|
@@ -61,6 +57,15 @@
|
|
|
61
57
|
top: 50%;
|
|
62
58
|
left: 50%;
|
|
63
59
|
}
|
|
60
|
+
|
|
61
|
+
@if $kendo-radio-indicator-type == "image" {
|
|
62
|
+
content: "";
|
|
63
|
+
display: block;
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
mask-size: var( --INTERNAL--kendo-checkbox-indicator-size, 100% );
|
|
67
|
+
mask-repeat: no-repeat;
|
|
68
|
+
}
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
|
|
@@ -68,7 +73,10 @@
|
|
|
68
73
|
.k-radio:hover,
|
|
69
74
|
.k-radio.k-hover {
|
|
70
75
|
@if $kendo-radio-indicator-type == "image" {
|
|
71
|
-
|
|
76
|
+
&::before {
|
|
77
|
+
background-color: currentColor;
|
|
78
|
+
mask-image: var( --kendo-radio-hover-image, #{ $kendo-radio-hover-image } );
|
|
79
|
+
}
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
@if $kendo-radio-indicator-type == "pseudo" {
|
|
@@ -96,7 +104,10 @@
|
|
|
96
104
|
.k-radio:checked,
|
|
97
105
|
.k-radio.k-checked {
|
|
98
106
|
@if $kendo-radio-indicator-type == "image" {
|
|
99
|
-
|
|
107
|
+
&::before {
|
|
108
|
+
background-color: currentColor;
|
|
109
|
+
mask-image: var( --kendo-radio-checked-image, #{ $kendo-radio-checked-image } );
|
|
110
|
+
}
|
|
100
111
|
}
|
|
101
112
|
|
|
102
113
|
@if $kendo-radio-indicator-type == "pseudo" {
|
|
@@ -140,7 +140,7 @@ $kendo-radio-checked-glyph: "\e308" !default;
|
|
|
140
140
|
|
|
141
141
|
/// The image of the checked RadioButton indicator.
|
|
142
142
|
/// @group radio
|
|
143
|
-
$kendo-radio-checked-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><circle cx='50%' cy='50%' r='4' fill='#
|
|
143
|
+
$kendo-radio-checked-image: k-escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><circle cx='50%' cy='50%' r='4' fill='#0078d4'/></svg>") ) !default;
|
|
144
144
|
/// The image of the disabled and checked RadioButton indicator.
|
|
145
145
|
/// @group radio
|
|
146
146
|
$kendo-radio-disabled-checked-image: null !default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
@use "sass:map";
|
|
1
3
|
@use "../core/_index.scss" as *;
|
|
2
4
|
@use "./_variables.scss" as *;
|
|
3
5
|
|
|
@@ -160,15 +162,97 @@
|
|
|
160
162
|
// Scrolling
|
|
161
163
|
.k-tabstrip-scrollable {
|
|
162
164
|
> .k-tabstrip-items-wrapper {
|
|
163
|
-
|
|
164
165
|
> .k-tabstrip-items {
|
|
165
166
|
flex-wrap: nowrap;
|
|
166
167
|
white-space: nowrap;
|
|
167
168
|
overflow: hidden;
|
|
169
|
+
|
|
170
|
+
&.k-tabstrip-items-scroll {
|
|
171
|
+
scrollbar-width: none;
|
|
172
|
+
|
|
173
|
+
&::-webkit-scrollbar {
|
|
174
|
+
display: none;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.k-tabstrip-top,
|
|
180
|
+
&.k-tabstrip-bottom {
|
|
181
|
+
.k-tabstrip-items.k-tabstrip-items-scroll {
|
|
182
|
+
overflow-x: auto;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&.k-tabstrip-left,
|
|
187
|
+
&.k-tabstrip-right {
|
|
188
|
+
.k-tabstrip-items.k-tabstrip-items-scroll {
|
|
189
|
+
overflow-y: auto;
|
|
190
|
+
}
|
|
168
191
|
}
|
|
169
192
|
}
|
|
170
193
|
}
|
|
171
194
|
|
|
195
|
+
.k-tabstrip-scrollable-overlay {
|
|
196
|
+
.k-tabstrip-items-wrapper {
|
|
197
|
+
&::before,
|
|
198
|
+
&::after {
|
|
199
|
+
content: '';
|
|
200
|
+
position: absolute;
|
|
201
|
+
z-index: 3;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.k-tabstrip-top,
|
|
206
|
+
&.k-tabstrip-bottom {
|
|
207
|
+
.k-tabstrip-items-wrapper {
|
|
208
|
+
&::before,
|
|
209
|
+
&::after {
|
|
210
|
+
height: 100%;
|
|
211
|
+
aspect-ratio: 1;
|
|
212
|
+
}
|
|
213
|
+
&::before {
|
|
214
|
+
inset-inline-start: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&::after {
|
|
218
|
+
inset-inline-end: 0;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&.k-tabstrip-left,
|
|
224
|
+
&.k-tabstrip-right {
|
|
225
|
+
.k-tabstrip-items-wrapper {
|
|
226
|
+
&::before,
|
|
227
|
+
&::after {
|
|
228
|
+
width: 100%;
|
|
229
|
+
}
|
|
230
|
+
&::before {
|
|
231
|
+
inset-block-start: 0;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&::after {
|
|
235
|
+
inset-block-end: 0;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
&.k-tabstrip-scrollable-start {
|
|
241
|
+
.k-tabstrip-items-wrapper {
|
|
242
|
+
&::before {
|
|
243
|
+
display: none;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
&.k-tabstrip-scrollable-end {
|
|
249
|
+
.k-tabstrip-items-wrapper {
|
|
250
|
+
&::after {
|
|
251
|
+
display: none;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
172
256
|
|
|
173
257
|
// Tabstrip orientation
|
|
174
258
|
.k-tabstrip-horizontal {
|
|
@@ -330,4 +414,28 @@
|
|
|
330
414
|
|
|
331
415
|
}
|
|
332
416
|
|
|
417
|
+
// TabStrip sizes
|
|
418
|
+
@each $size, $size-props in $kendo-tabstrip-sizes {
|
|
419
|
+
$_font-size: map.get( $size-props, font-size );
|
|
420
|
+
$_line-height: map.get( $size-props, line-height );
|
|
421
|
+
$_item-padding-x: map.get( $size-props, item-padding-x );
|
|
422
|
+
$_item-padding-y: map.get( $size-props, item-padding-y );
|
|
423
|
+
|
|
424
|
+
.k-tabstrip-#{$size} {
|
|
425
|
+
.k-tabstrip-items .k-link {
|
|
426
|
+
font-size: $_font-size;
|
|
427
|
+
line-height: $_line-height;
|
|
428
|
+
padding-block: $_item-padding-y;
|
|
429
|
+
padding-inline: $_item-padding-x;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
:is(&.k-tabstrip-left, &.k-tabstrip-right):is(.k-tabstrip-scrollable-overlay) :is(.k-tabstrip-items-wrapper){
|
|
433
|
+
&::before,
|
|
434
|
+
&::after {
|
|
435
|
+
height: calc( ($_line-height * 1em) + ($kendo-tabstrip-border-width * 2) + ($_item-padding-y * 2) );
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
333
441
|
}
|
|
@@ -99,4 +99,51 @@
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
// Scrolling
|
|
103
|
+
.k-tabstrip-scrollable-overlay {
|
|
104
|
+
&.k-tabstrip-top,
|
|
105
|
+
&.k-tabstrip-bottom {
|
|
106
|
+
.k-tabstrip-items-wrapper {
|
|
107
|
+
&::before {
|
|
108
|
+
background: linear-gradient(90deg, $kendo-tabstrip-scroll-overlay);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&::after {
|
|
112
|
+
background: linear-gradient(270deg, $kendo-tabstrip-scroll-overlay);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.k-tabstrip-left,
|
|
118
|
+
&.k-tabstrip-right {
|
|
119
|
+
.k-tabstrip-items-wrapper {
|
|
120
|
+
&::before {
|
|
121
|
+
background: linear-gradient(180deg, $kendo-tabstrip-scroll-overlay);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&::after {
|
|
125
|
+
background: linear-gradient(360deg, $kendo-tabstrip-scroll-overlay);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// RTL
|
|
132
|
+
.k-rtl,
|
|
133
|
+
[dir="rtl"] {
|
|
134
|
+
&.k-tabstrip-scrollable-overlay {
|
|
135
|
+
&.k-tabstrip-top,
|
|
136
|
+
&.k-tabstrip-bottom {
|
|
137
|
+
.k-tabstrip-items-wrapper {
|
|
138
|
+
&::before {
|
|
139
|
+
background: linear-gradient(270deg, $kendo-tabstrip-scroll-overlay);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&::after {
|
|
143
|
+
background: linear-gradient(90deg, $kendo-tabstrip-scroll-overlay);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
102
149
|
}
|
|
@@ -34,6 +34,26 @@ $kendo-tabstrip-line-height: var( --kendo-line-height, normal ) !default;
|
|
|
34
34
|
/// The border width around the TabStrip.
|
|
35
35
|
/// @group tabstrip
|
|
36
36
|
$kendo-tabstrip-border-width: 0px !default;
|
|
37
|
+
|
|
38
|
+
/// The font size of the small TabStrip.
|
|
39
|
+
/// @group tabstrip
|
|
40
|
+
$kendo-tabstrip-sm-font-size: $kendo-tabstrip-font-size !default;
|
|
41
|
+
/// The line height of the small TabStrip.
|
|
42
|
+
/// @group tabstrip
|
|
43
|
+
$kendo-tabstrip-sm-line-height: $kendo-tabstrip-line-height !default;
|
|
44
|
+
/// The font size of the medium TabStrip.
|
|
45
|
+
/// @group tabstrip
|
|
46
|
+
$kendo-tabstrip-md-font-size: $kendo-tabstrip-font-size !default;
|
|
47
|
+
/// The line height of the medium TabStrip.
|
|
48
|
+
/// @group tabstrip
|
|
49
|
+
$kendo-tabstrip-md-line-height: $kendo-tabstrip-line-height !default;
|
|
50
|
+
/// The font size of the large TabStrip.
|
|
51
|
+
/// @group tabstrip
|
|
52
|
+
$kendo-tabstrip-lg-font-size: $kendo-tabstrip-font-size !default;
|
|
53
|
+
/// The line height of the large TabStrip.
|
|
54
|
+
/// @group tabstrip
|
|
55
|
+
$kendo-tabstrip-lg-line-height: $kendo-tabstrip-line-height !default;
|
|
56
|
+
|
|
37
57
|
/// The background color of the TabStrip.
|
|
38
58
|
/// @group tabstrip
|
|
39
59
|
$kendo-tabstrip-bg: transparent !default;
|
|
@@ -49,7 +69,7 @@ $kendo-tabstrip-border: transparent !default;
|
|
|
49
69
|
$kendo-tabstrip-item-padding-x: k-spacing(2) !default;
|
|
50
70
|
/// The vertical padding of the TabStrip items.
|
|
51
71
|
/// @group tabstrip
|
|
52
|
-
$kendo-tabstrip-item-padding-y:
|
|
72
|
+
$kendo-tabstrip-item-padding-y: k-spacing(3) !default;
|
|
53
73
|
/// The border width around the TabStrip items.
|
|
54
74
|
/// @group tabstrip
|
|
55
75
|
$kendo-tabstrip-item-border-width: 0px !default;
|
|
@@ -59,6 +79,26 @@ $kendo-tabstrip-item-border-radius: k-border-radius(md) !default;
|
|
|
59
79
|
/// The gap between the TabStrip items.
|
|
60
80
|
/// @group tabstrip
|
|
61
81
|
$kendo-tabstrip-item-gap: k-spacing(2) !default;
|
|
82
|
+
|
|
83
|
+
/// The horizontal padding of the small TabStrip items.
|
|
84
|
+
/// @group tabstrip
|
|
85
|
+
$kendo-tabstrip-sm-item-padding-x: k-spacing(2) !default;
|
|
86
|
+
/// The vertical padding of the small TabStrip items.
|
|
87
|
+
/// @group tabstrip
|
|
88
|
+
$kendo-tabstrip-sm-item-padding-y: k-spacing(2.5) !default;
|
|
89
|
+
/// The horizontal padding of the medium TabStrip items.
|
|
90
|
+
/// @group tabstrip
|
|
91
|
+
$kendo-tabstrip-md-item-padding-x: $kendo-tabstrip-item-padding-x !default;
|
|
92
|
+
/// The vertical padding of the medium TabStrip items.
|
|
93
|
+
/// @group tabstrip
|
|
94
|
+
$kendo-tabstrip-md-item-padding-y: $kendo-tabstrip-item-padding-y !default;
|
|
95
|
+
/// The horizontal padding of the large TabStrip items.
|
|
96
|
+
/// @group tabstrip
|
|
97
|
+
$kendo-tabstrip-lg-item-padding-x: k-spacing(2) !default;
|
|
98
|
+
/// The vertical padding of the large TabStrip items.
|
|
99
|
+
/// @group tabstrip
|
|
100
|
+
$kendo-tabstrip-lg-item-padding-y: k-spacing(3.5) !default;
|
|
101
|
+
|
|
62
102
|
/// The background color of the TabStrip items.
|
|
63
103
|
/// @group tabstrip
|
|
64
104
|
$kendo-tabstrip-item-bg: transparent !default;
|
|
@@ -149,3 +189,30 @@ $kendo-tabstrip-scrollable-button-padding-x: k-spacing(1) !default;
|
|
|
149
189
|
// The vertical button padding of the scrollable TabStrip.
|
|
150
190
|
/// @group tabstrip
|
|
151
191
|
$kendo-tabstrip-scrollable-button-padding-y: k-spacing(1) !default;
|
|
192
|
+
|
|
193
|
+
/// The left and right scroll overlay of the TabStrip.
|
|
194
|
+
/// @group tabstrip
|
|
195
|
+
$kendo-tabstrip-scroll-overlay: if($kendo-enable-color-system, k-color( app-surface ), rgba( $kendo-color-white, 0)), if($kendo-enable-color-system, color-mix(in srgb, k-color( app-surface ) 0%, transparent), rgba( $kendo-color-white, 0)) !default;
|
|
196
|
+
|
|
197
|
+
/// The size map of the TabStrip.
|
|
198
|
+
/// @group tabstrip
|
|
199
|
+
$kendo-tabstrip-sizes: (
|
|
200
|
+
sm: (
|
|
201
|
+
font-size: $kendo-tabstrip-sm-font-size,
|
|
202
|
+
line-height: $kendo-tabstrip-sm-line-height,
|
|
203
|
+
item-padding-x: $kendo-tabstrip-sm-item-padding-x,
|
|
204
|
+
item-padding-y: $kendo-tabstrip-sm-item-padding-y
|
|
205
|
+
),
|
|
206
|
+
md: (
|
|
207
|
+
font-size: $kendo-tabstrip-md-font-size,
|
|
208
|
+
line-height: $kendo-tabstrip-md-line-height,
|
|
209
|
+
item-padding-x: $kendo-tabstrip-md-item-padding-x,
|
|
210
|
+
item-padding-y: $kendo-tabstrip-md-item-padding-y
|
|
211
|
+
),
|
|
212
|
+
lg: (
|
|
213
|
+
font-size: $kendo-tabstrip-lg-font-size,
|
|
214
|
+
line-height: $kendo-tabstrip-lg-line-height,
|
|
215
|
+
item-padding-x: $kendo-tabstrip-lg-item-padding-x,
|
|
216
|
+
item-padding-y: $kendo-tabstrip-lg-item-padding-y
|
|
217
|
+
)
|
|
218
|
+
) !default;
|