@progress/kendo-theme-bootstrap 4.41.3-dev.2 → 4.42.1-dev.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 +1735 -586
- package/dist/all.scss +913 -655
- package/modules/@progress/kendo-theme-default/package.json +2 -2
- package/modules/@progress/kendo-theme-default/scss/action-buttons/_layout.scss +9 -1
- package/modules/@progress/kendo-theme-default/scss/all.scss +4 -0
- package/modules/@progress/kendo-theme-default/scss/button/_index.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/card/_layout.scss +3 -68
- package/modules/@progress/kendo-theme-default/scss/card/_theme.scss +2 -1
- package/modules/@progress/kendo-theme-default/scss/color-preview/_index.scss +11 -0
- package/modules/@progress/kendo-theme-default/scss/color-preview/_layout.scss +34 -0
- package/modules/@progress/kendo-theme-default/scss/color-preview/_theme.scss +31 -0
- package/modules/@progress/kendo-theme-default/scss/color-preview/_variables.scss +13 -0
- package/modules/@progress/kendo-theme-default/scss/coloreditor/_index.scss +15 -0
- package/modules/@progress/kendo-theme-default/scss/coloreditor/_layout.scss +65 -0
- package/modules/@progress/kendo-theme-default/scss/coloreditor/_theme.scss +19 -0
- package/modules/@progress/kendo-theme-default/scss/coloreditor/_variables.scss +27 -0
- package/modules/@progress/kendo-theme-default/scss/colorgradient/_index.scss +18 -0
- package/modules/@progress/kendo-theme-default/scss/colorgradient/_layout.scss +188 -0
- package/modules/@progress/kendo-theme-default/scss/colorgradient/_theme.scss +82 -0
- package/modules/@progress/kendo-theme-default/scss/colorgradient/_variables.scss +51 -0
- package/modules/@progress/kendo-theme-default/scss/colorgradient/images/alpha-slider-bgr.png +0 -0
- package/modules/@progress/kendo-theme-default/scss/colorgradient/images/alpha-slider-bgr.scss +3 -0
- package/modules/@progress/kendo-theme-default/scss/colorpalette/_index.scss +12 -0
- package/modules/@progress/kendo-theme-default/scss/colorpalette/_layout.scss +50 -0
- package/modules/@progress/kendo-theme-default/scss/colorpalette/_theme.scss +25 -0
- package/modules/@progress/kendo-theme-default/scss/colorpalette/_variables.scss +10 -0
- package/modules/@progress/kendo-theme-default/scss/colorpicker/_index.scss +2 -4
- package/modules/@progress/kendo-theme-default/scss/colorpicker/_layout.scss +4 -340
- package/modules/@progress/kendo-theme-default/scss/colorpicker/_theme.scss +4 -127
- package/modules/@progress/kendo-theme-default/scss/colorpicker/_variables.scss +0 -18
- package/modules/@progress/kendo-theme-default/scss/editor/_layout.scss +5 -0
- package/modules/@progress/kendo-theme-default/scss/fab/_layout.scss +2 -0
- package/modules/@progress/kendo-theme-default/scss/fab/_theme.scss +27 -34
- package/modules/@progress/kendo-theme-default/scss/fab/_variables.scss +12 -11
- package/modules/@progress/kendo-theme-default/scss/icons/_layout.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/icons/font/WebComponentsIcons.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/icons/font/WebComponentsIcons.ttf +0 -0
- package/modules/@progress/kendo-theme-default/scss/map/_layout.scss +2 -0
- package/modules/@progress/kendo-theme-default/scss/menu/_layout.scss +0 -1
- package/modules/@progress/kendo-theme-default/scss/pivotgrid/_layout.scss +21 -0
- package/modules/@progress/kendo-theme-default/scss/popup/_layout.scss +0 -9
- package/modules/@progress/kendo-theme-default/scss/spreadsheet/_layout.scss +0 -4
- package/modules/@progress/kendo-theme-default/scss/utils/_border.scss +8 -3
- package/modules/@progress/kendo-theme-default/scss/utils/_spacing.scss +24 -0
- package/package.json +3 -3
- package/scss/all.scss +4 -0
- package/scss/button/_index.scss +1 -1
- package/scss/color-preview/_index.scss +11 -0
- package/scss/color-preview/_layout.scss +1 -0
- package/scss/color-preview/_theme.scss +1 -0
- package/scss/color-preview/_variables.scss +13 -0
- package/scss/coloreditor/_index.scss +14 -0
- package/scss/coloreditor/_layout.scss +1 -0
- package/scss/coloreditor/_theme.scss +1 -0
- package/scss/coloreditor/_variables.scss +28 -0
- package/scss/colorgradient/_index.scss +19 -0
- package/scss/colorgradient/_layout.scss +1 -0
- package/scss/colorgradient/_theme.scss +1 -0
- package/scss/colorgradient/_variables.scss +51 -0
- package/scss/colorgradient/images/alpha-slider-bgr.png +0 -0
- package/scss/colorgradient/images/alpha-slider-bgr.scss +3 -0
- package/scss/colorpalette/_index.scss +11 -0
- package/scss/colorpalette/_layout.scss +1 -0
- package/scss/colorpalette/_theme.scss +1 -0
- package/scss/colorpalette/_variables.scss +10 -0
- package/scss/colorpicker/_index.scss +2 -4
- package/scss/colorpicker/_variables.scss +0 -18
- package/scss/fab/_theme.scss +29 -30
- package/scss/fab/_variables.scss +16 -15
- package/scss/slider/_theme.scss +0 -13
- package/scss/switch/_layout.scss +10 -0
- package/scss/switch/_theme.scss +1 -7
- package/scss/utils/_border.scss +10 -0
- package/modules/@progress/kendo-theme-default/scss/colorpicker/images/alpha-slider-bgr-reversed.png +0 -0
- package/modules/@progress/kendo-theme-default/scss/colorpicker/images/alpha-slider-bgr-reversed.scss +0 -3
- package/modules/@progress/kendo-theme-default/scss/colorpicker/images/alpha-slider-bgr.png +0 -0
- package/modules/@progress/kendo-theme-default/scss/colorpicker/images/alpha-slider-bgr.scss +0 -3
- package/scss/colorpicker/images/alpha-slider-bgr-reversed.png +0 -0
- package/scss/colorpicker/images/alpha-slider-bgr-reversed.scss +0 -3
- package/scss/colorpicker/images/alpha-slider-bgr.png +0 -0
- package/scss/colorpicker/images/alpha-slider-bgr.scss +0 -3
|
@@ -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.
|
|
4
|
+
"version": "4.42.1-dev.0",
|
|
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": "8575a79ff8c17831e06014204962beb77190180b"
|
|
51
51
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
//
|
|
46
|
+
// Actions align
|
|
47
47
|
.k-actions-start {
|
|
48
48
|
justify-content: flex-start;
|
|
49
49
|
}
|
|
@@ -57,4 +57,12 @@
|
|
|
57
57
|
flex: 1 0 0%;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
// Actions orientation
|
|
61
|
+
.k-actions-horizontal {
|
|
62
|
+
flex-flow: row nowrap;
|
|
63
|
+
}
|
|
64
|
+
.k-actions-vertical {
|
|
65
|
+
flex-flow: column nowrap;
|
|
66
|
+
}
|
|
67
|
+
|
|
60
68
|
}
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
|
|
50
50
|
// Inputs
|
|
51
51
|
@import "autocomplete/_index.scss";
|
|
52
|
+
@import "color-preview/_index.scss";
|
|
53
|
+
@import "colorpalette/_index.scss";
|
|
54
|
+
@import "colorgradient/_index.scss";
|
|
55
|
+
@import "coloreditor/_index.scss";
|
|
52
56
|
@import "colorpicker/_index.scss";
|
|
53
57
|
@import "combobox/_index.scss";
|
|
54
58
|
@import "datetime/_index.scss";
|
|
@@ -187,13 +187,6 @@
|
|
|
187
187
|
flex-shrink: 0;
|
|
188
188
|
flex-basis: auto;
|
|
189
189
|
gap: $card-actions-gap;
|
|
190
|
-
|
|
191
|
-
> .k-button {
|
|
192
|
-
padding-left: calc( #{$card-body-padding-x} - ( #{$card-actions-padding-x} + #{$button-border-width} ) );
|
|
193
|
-
padding-right: calc( #{$card-body-padding-x} - ( #{$card-actions-padding-x} + #{$button-border-width} ) );
|
|
194
|
-
max-width: 100%;
|
|
195
|
-
white-space: normal;
|
|
196
|
-
}
|
|
197
190
|
}
|
|
198
191
|
|
|
199
192
|
|
|
@@ -208,40 +201,9 @@
|
|
|
208
201
|
.k-card-actions-vertical { flex-flow: column nowrap; } // stylelint-disable-line block-opening-brace-space-before
|
|
209
202
|
|
|
210
203
|
|
|
211
|
-
//
|
|
212
|
-
.k-card-actions-stretched {
|
|
213
|
-
|
|
214
|
-
gap: 0;
|
|
215
|
-
|
|
216
|
-
> .k-button,
|
|
217
|
-
> .k-card-action {
|
|
218
|
-
flex: 1 1 auto;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// TODO: refactor once we have button size
|
|
222
|
-
.k-button {
|
|
223
|
-
@include border-radius( 0 );
|
|
224
|
-
padding-top: calc( #{$card-actions-padding-y} + #{$button-padding-y} );
|
|
225
|
-
padding-bottom: calc( #{$card-actions-padding-y} + #{$button-padding-y} );
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.k-card & {
|
|
229
|
-
border-top-width: $card-actions-border-width;
|
|
230
|
-
}
|
|
231
|
-
.k-card-horizontal > & {
|
|
232
|
-
border-top-width: 0;
|
|
233
|
-
border-inline-start-width: $card-actions-border-width;
|
|
234
|
-
}
|
|
235
|
-
.k-card-vertical > & {
|
|
236
|
-
border-top-width: $card-actions-border-width;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&.k-card-actions-horizontal > .k-card-action + .k-card-action {
|
|
240
|
-
border-inline-start-width: $card-actions-border-width;
|
|
241
|
-
}
|
|
242
|
-
&.k-card-actions-vertical > .k-card-action + .k-card-action {
|
|
243
|
-
border-top-width: $card-actions-border-width;
|
|
244
|
-
}
|
|
204
|
+
// Stretched actions
|
|
205
|
+
.k-card-actions-stretched > * {
|
|
206
|
+
flex: 1 1 auto;
|
|
245
207
|
}
|
|
246
208
|
|
|
247
209
|
|
|
@@ -415,33 +377,6 @@
|
|
|
415
377
|
|
|
416
378
|
|
|
417
379
|
|
|
418
|
-
@include exports("card/layout/rtl") {
|
|
419
|
-
|
|
420
|
-
.k-rtl,
|
|
421
|
-
[dir="rtl"] {
|
|
422
|
-
|
|
423
|
-
.k-card-actions-stretched {
|
|
424
|
-
.k-card-action + .k-card-action {
|
|
425
|
-
border-right-width: $card-actions-border-width;
|
|
426
|
-
border-left-width: 0;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
.k-card-horizontal {
|
|
431
|
-
> .k-card-actions-stretched,
|
|
432
|
-
.k-card-actions-vertical {
|
|
433
|
-
border-right-width: $card-actions-border-width;
|
|
434
|
-
border-left-width: 0;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
380
|
@include exports("card/layout/ie11") {
|
|
446
381
|
|
|
447
382
|
.k-ie11 {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@include exports("color-preview/layout") {
|
|
2
|
+
|
|
3
|
+
// Color Preview
|
|
4
|
+
.k-color-preview {
|
|
5
|
+
border-width: $color-preview-border-width;
|
|
6
|
+
border-radius: $color-preview-border-radius;
|
|
7
|
+
border-style: solid;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
flex-wrap: nowrap;
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
}
|
|
15
|
+
.k-color-preview::before {
|
|
16
|
+
content: "";
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
display: block;
|
|
20
|
+
position: relative;
|
|
21
|
+
z-index: -1;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// No Color
|
|
25
|
+
.k-no-color::after {
|
|
26
|
+
content: "";
|
|
27
|
+
width: 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@include exports("color-preview/theme") {
|
|
2
|
+
|
|
3
|
+
// Color Preview
|
|
4
|
+
.k-color-preview {
|
|
5
|
+
@include fill(
|
|
6
|
+
$color-preview-text,
|
|
7
|
+
$color-preview-bg,
|
|
8
|
+
$color-preview-border
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
&::before {
|
|
12
|
+
background: url(map-get($data-uris, "alpha-slider-bgr.png"));
|
|
13
|
+
background-size: contain;
|
|
14
|
+
background-position: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&:hover,
|
|
18
|
+
&.k-state-hover,
|
|
19
|
+
&.k-hover {
|
|
20
|
+
@include fill( $border: $color-preview-hover-border );
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// No Color
|
|
25
|
+
.k-no-color::after {
|
|
26
|
+
background-color: $color-preview-no-color-bg;
|
|
27
|
+
background-image: $color-preview-no-color-image;
|
|
28
|
+
background-size: 100% 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Color Preview
|
|
2
|
+
$color-preview-border-radius: $border-radius !default;
|
|
3
|
+
$color-preview-border-width: 1px !default;
|
|
4
|
+
$color-preview-bg: null !default;
|
|
5
|
+
$color-preview-text: null !default;
|
|
6
|
+
$color-preview-border: $component-border !default;
|
|
7
|
+
$color-preview-hover-border: $hovered-border !default;
|
|
8
|
+
|
|
9
|
+
$color-preview-no-color-bg: $white !default;
|
|
10
|
+
$color-preview-no-color-text: $error !default;
|
|
11
|
+
$color-preview-no-color-border: null !default;
|
|
12
|
+
|
|
13
|
+
$color-preview-no-color-image: escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' version='1.1'><line x1='0' x2='20' y1='0' y2='20' stroke='#{$color-preview-no-color-text}' stroke-width='1'/></svg>") ) !default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@import "../core/_index.scss";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// Dependencies
|
|
5
|
+
@import "../common/_index.scss";
|
|
6
|
+
@import "../action-buttons/_index.scss";
|
|
7
|
+
@import "../color-preview/_index.scss";
|
|
8
|
+
@import "../colorpalette/_index.scss";
|
|
9
|
+
@import "../colorgradient/_index.scss";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
// Component
|
|
13
|
+
@import "_variables.scss";
|
|
14
|
+
@import "_layout.scss";
|
|
15
|
+
@import "_theme.scss";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@include exports("coloreditor/layout") {
|
|
2
|
+
|
|
3
|
+
// ColorEditor/FlatColorPicker
|
|
4
|
+
.k-coloreditor {
|
|
5
|
+
@include border-radius( $coloreditor-border-radius );
|
|
6
|
+
min-width: $coloreditor-min-width;
|
|
7
|
+
border-width: $coloreditor-border-width;
|
|
8
|
+
border-style: solid;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
outline: 0;
|
|
11
|
+
font-size: $coloreditor-font-size;
|
|
12
|
+
font-family: $coloreditor-font-family;
|
|
13
|
+
line-height: $coloreditor-line-height;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: stretch;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Header
|
|
20
|
+
.k-coloreditor-header {
|
|
21
|
+
padding: $coloreditor-header-padding-y $coloreditor-header-padding-x 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.k-coloreditor-header-actions {
|
|
25
|
+
gap: $coloreditor-header-actions-gap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.k-coloreditor-preview {
|
|
29
|
+
position: relative;
|
|
30
|
+
gap: $coloreditor-preview-gap;
|
|
31
|
+
z-index: 1;
|
|
32
|
+
}
|
|
33
|
+
.k-coloreditor-preview .k-color-preview {
|
|
34
|
+
width: $coloreditor-color-preview-width;
|
|
35
|
+
height: $coloreditor-color-preview-height;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Views
|
|
39
|
+
.k-coloreditor-views {
|
|
40
|
+
min-width: calc( var(--kendo-color-preview-width, #{$colorpalette-tile-width}) * var(--kendo-color-preview-columns, 10) );
|
|
41
|
+
padding: $coloreditor-views-padding-y $coloreditor-views-padding-x;
|
|
42
|
+
gap: $coloreditor-views-gap;
|
|
43
|
+
|
|
44
|
+
.k-colorgradient {
|
|
45
|
+
padding: 0;
|
|
46
|
+
width: auto;
|
|
47
|
+
border-width: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.k-colorpalette {
|
|
51
|
+
align-self: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.k-colorpalette-tile {
|
|
55
|
+
width: var(--kendo-color-preview-width, $colorpalette-tile-width);
|
|
56
|
+
height: var(--kendo-color-preview-height, $colorpalette-tile-height);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Footer
|
|
61
|
+
.k-coloreditor-footer.k-actions {
|
|
62
|
+
margin: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@include exports("coloreditor/theme") {
|
|
2
|
+
|
|
3
|
+
// ColorEditor/FlatColorPicker
|
|
4
|
+
.k-coloreditor {
|
|
5
|
+
@include fill(
|
|
6
|
+
$coloreditor-text,
|
|
7
|
+
$coloreditor-bg,
|
|
8
|
+
$coloreditor-border
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.k-coloreditor:focus,
|
|
13
|
+
.k-coloreditor.k-state-focus,
|
|
14
|
+
.k-coloreditor.k-focus {
|
|
15
|
+
@include fill( $border: $coloreditor-focus-border );
|
|
16
|
+
@include box-shadow( $coloreditor-focus-shadow );
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Coloreditor/FlatColorPicker
|
|
2
|
+
$coloreditor-spacer: map-get( $spacing, 3 ) !default;
|
|
3
|
+
|
|
4
|
+
$coloreditor-min-width: 272px !default;
|
|
5
|
+
$coloreditor-border-width: 1px !default;
|
|
6
|
+
$coloreditor-border-radius: $border-radius !default;
|
|
7
|
+
$coloreditor-font-family: $font-family !default;
|
|
8
|
+
$coloreditor-font-size: $font-size !default;
|
|
9
|
+
$coloreditor-line-height: $line-height !default;
|
|
10
|
+
$coloreditor-bg: $component-bg !default;
|
|
11
|
+
$coloreditor-text: $component-text !default;
|
|
12
|
+
$coloreditor-border: $component-border !default;
|
|
13
|
+
|
|
14
|
+
$coloreditor-focus-border: null !default;
|
|
15
|
+
$coloreditor-focus-shadow: 1px 1px 7px 1px rgba(0, 0, 0, .3) !default;
|
|
16
|
+
|
|
17
|
+
$coloreditor-header-padding-y: $coloreditor-spacer !default;
|
|
18
|
+
$coloreditor-header-padding-x: $coloreditor-header-padding-y !default;
|
|
19
|
+
$coloreditor-header-actions-gap: ( $coloreditor-spacer / 1.5 ) !default;
|
|
20
|
+
|
|
21
|
+
$coloreditor-preview-gap: ( $coloreditor-spacer / 4 ) !default;
|
|
22
|
+
$coloreditor-color-preview-width: 34px !default;
|
|
23
|
+
$coloreditor-color-preview-height: 14px !default;
|
|
24
|
+
|
|
25
|
+
$coloreditor-views-padding-y: $coloreditor-spacer !default;
|
|
26
|
+
$coloreditor-views-padding-x: $coloreditor-views-padding-y !default;
|
|
27
|
+
$coloreditor-views-gap: $coloreditor-spacer !default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@import "../core/_index.scss";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// Dependencies
|
|
5
|
+
@import "../common/_index.scss";
|
|
6
|
+
@import "../utils/_flex.scss";
|
|
7
|
+
@import "../utils/_spacer.scss";
|
|
8
|
+
@import "../icons/_index.scss";
|
|
9
|
+
@import "../button/_index.scss";
|
|
10
|
+
@import "../slider/_index.scss";
|
|
11
|
+
@import "../textbox/_index.scss";
|
|
12
|
+
@import "../numerictextbox/_index.scss";
|
|
13
|
+
|
|
14
|
+
// Component
|
|
15
|
+
@import "images/alpha-slider-bgr.scss";
|
|
16
|
+
@import "_variables.scss";
|
|
17
|
+
@import "_layout.scss";
|
|
18
|
+
@import "_theme.scss";
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
@include exports("colorgradient/layout") {
|
|
2
|
+
|
|
3
|
+
// ColorGradient
|
|
4
|
+
.k-colorgradient {
|
|
5
|
+
@include border-radius( $colorgradient-border-radius );
|
|
6
|
+
width: $colorgradient-width;
|
|
7
|
+
padding: $colorgradient-padding-y $colorgradient-padding-x;
|
|
8
|
+
border-style: solid;
|
|
9
|
+
border-width: $colorgradient-border-width;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
outline: 0;
|
|
12
|
+
font-size: $colorgradient-font-size;
|
|
13
|
+
font-family: $colorgradient-font-family;
|
|
14
|
+
line-height: $colorgradient-line-height;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
align-items: stretch;
|
|
18
|
+
gap: $colorgradient-gap;
|
|
19
|
+
-webkit-touch-callout: none;
|
|
20
|
+
-webkit-tap-highlight-color: $rgba-transparent;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Canvas
|
|
24
|
+
.k-colorgradient-canvas {
|
|
25
|
+
gap: $colorgradient-canvas-gap;
|
|
26
|
+
|
|
27
|
+
.k-hsv-rectangle {
|
|
28
|
+
@include border-radius( $colorgradient-canvas-border-radius );
|
|
29
|
+
position: relative;
|
|
30
|
+
flex: 1 1 auto;
|
|
31
|
+
user-select: none;
|
|
32
|
+
-ms-touch-action: pinch-zoom double-tap-zoom;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.k-hsv-gradient {
|
|
36
|
+
@include border-radius( $colorgradient-canvas-border-radius );
|
|
37
|
+
height: $colorgradient-canvas-rectangle-height;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.k-hsv-draghandle {
|
|
41
|
+
margin-top: $colorgradient-canvas-draghandle-margin-y;
|
|
42
|
+
margin-left: $colorgradient-canvas-draghandle-margin-x;
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 50%;
|
|
45
|
+
left: 50%;
|
|
46
|
+
z-index: 10;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.k-hsv-controls {
|
|
51
|
+
position: relative;
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
gap: $colorgradient-canvas-gap;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// DragHandle
|
|
58
|
+
.k-colorgradient .k-draghandle {
|
|
59
|
+
@include border-radius( $colorgradient-draghandle-border-radius );
|
|
60
|
+
width: $colorgradient-draghandle-width;
|
|
61
|
+
height: $colorgradient-draghandle-height;
|
|
62
|
+
border-width: $colorgradient-draghandle-border-width;
|
|
63
|
+
border-style: solid;
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Sliders
|
|
68
|
+
.k-colorgradient-slider {
|
|
69
|
+
|
|
70
|
+
&.k-slider-vertical {
|
|
71
|
+
width: $colorgradient-slider-track-size;
|
|
72
|
+
height: $colorgradient-slider-vertical-size;
|
|
73
|
+
flex: 0 0 $colorgradient-slider-track-size;
|
|
74
|
+
}
|
|
75
|
+
&.k-slider-vertical .k-slider-track {
|
|
76
|
+
width: $colorgradient-slider-track-size;
|
|
77
|
+
border-radius: $colorgradient-slider-border-radius;
|
|
78
|
+
margin-left: -($colorgradient-slider-track-size / 2);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.k-slider-horizontal {
|
|
82
|
+
width: $colorgradient-slider-horizontal-size;
|
|
83
|
+
height: $colorgradient-slider-track-size;
|
|
84
|
+
flex: 0 0 $colorgradient-slider-track-size;
|
|
85
|
+
}
|
|
86
|
+
&.k-slider-horizontal .k-slider-track {
|
|
87
|
+
height: $colorgradient-slider-track-size;
|
|
88
|
+
border-radius: $colorgradient-slider-border-radius;
|
|
89
|
+
margin-top: -($colorgradient-slider-track-size / 2);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.k-alpha-slider .k-slider-track::before {
|
|
93
|
+
content: "";
|
|
94
|
+
width: 100%;
|
|
95
|
+
height: 100%;
|
|
96
|
+
display: block;
|
|
97
|
+
border-radius: 10px;
|
|
98
|
+
position: relative;
|
|
99
|
+
z-index: -1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.k-slider-wrap,
|
|
103
|
+
.k-slider-track-wrap {
|
|
104
|
+
z-index: 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.k-slider-wrap > .k-slider-track {
|
|
108
|
+
height: $colorgradient-slider-vertical-size;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.k-slider-selection {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.k-draghandle {
|
|
116
|
+
border-width: $colorgradient-slider-draghandle-border-width;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Inputs
|
|
121
|
+
.k-colorgradient-inputs {
|
|
122
|
+
gap: $colorgradient-input-gap;
|
|
123
|
+
|
|
124
|
+
.k-colorgradient-input-label {
|
|
125
|
+
text-transform: uppercase;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
> .k-vstack {
|
|
129
|
+
gap: $colorgradient-input-label-gap;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.k-numerictextbox {
|
|
133
|
+
width: $colorgradient-input-width;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.k-textbox {
|
|
137
|
+
width: 100%;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Contrast
|
|
142
|
+
.k-colorgradient-color-contrast {
|
|
143
|
+
|
|
144
|
+
> div {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-flow: row nowrap;
|
|
147
|
+
gap: $colorgradient-contrast-spacer;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.k-contrast-ratio {
|
|
151
|
+
margin-bottom: $colorgradient-contrast-spacer;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.k-contrast-ratio-text {
|
|
155
|
+
font-weight: $colorgradient-contrast-ratio-font-weight;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.k-contrast-validation {
|
|
159
|
+
display: inline-flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
gap: ( $colorgradient-contrast-spacer / 2 );
|
|
162
|
+
|
|
163
|
+
.k-icon {
|
|
164
|
+
vertical-align: middle;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// Needed for the double check icons
|
|
168
|
+
.k-i-check + .k-i-check {
|
|
169
|
+
margin-left: -13px;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@include exports( "colorgradient/layout/rtl" ) {
|
|
177
|
+
|
|
178
|
+
.k-rtl,
|
|
179
|
+
[dir="rtl"] {
|
|
180
|
+
|
|
181
|
+
.k-colorgradient-color-contrast .k-i-check + .k-i-check {
|
|
182
|
+
margin-left: 0;
|
|
183
|
+
margin-right: -13px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@include exports("colorgradient/theme") {
|
|
2
|
+
|
|
3
|
+
// ColorGradient
|
|
4
|
+
.k-colorgradient {
|
|
5
|
+
@include fill(
|
|
6
|
+
$colorgradient-text,
|
|
7
|
+
$colorgradient-bg,
|
|
8
|
+
$colorgradient-border
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.k-colorgradient:focus,
|
|
13
|
+
.k-colorgradient.k-state-focus,
|
|
14
|
+
.k-colorgradient.k-focus {
|
|
15
|
+
@include fill( $border: $colorgradient-focus-border );
|
|
16
|
+
@include box-shadow( $colorgradient-focus-shadow );
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Canvas
|
|
20
|
+
.k-colorgradient-canvas .k-hsv-gradient {
|
|
21
|
+
background: linear-gradient( to bottom, $gradient-transparent-to-black ), linear-gradient( to right, $gradient-white-to-transparent );
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// DragHandle
|
|
25
|
+
.k-colorgradient .k-draghandle {
|
|
26
|
+
@include fill(
|
|
27
|
+
$colorgradient-draghandle-text,
|
|
28
|
+
$colorgradient-draghandle-bg,
|
|
29
|
+
$colorgradient-draghandle-border
|
|
30
|
+
);
|
|
31
|
+
@include box-shadow( $colorgradient-draghandle-shadow );
|
|
32
|
+
|
|
33
|
+
&:focus,
|
|
34
|
+
&.k-state-focus,
|
|
35
|
+
&.k-focus {
|
|
36
|
+
@include fill( $bg: transparent, $border: $white );
|
|
37
|
+
@include box-shadow( $colorgradient-draghandle-focus-shadow );
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:active,
|
|
41
|
+
&:hover,
|
|
42
|
+
&.k-state-hover,
|
|
43
|
+
&.k-hover {
|
|
44
|
+
@include fill( $bg: transparent, $border: $white );
|
|
45
|
+
@include box-shadow( $colorgradient-draghandle-hover-shadow );
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Slider
|
|
50
|
+
.k-colorgradient-slider.k-hue-slider {
|
|
51
|
+
&.k-slider-horizontal .k-slider-track {
|
|
52
|
+
background: linear-gradient( to right, $gradient-rainbow );
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.k-slider-vertical .k-slider-track {
|
|
56
|
+
background: linear-gradient( to top, $gradient-rainbow );
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.k-colorgradient-slider.k-alpha-slider .k-slider-track::before {
|
|
61
|
+
background: url(map-get($data-uris, "alpha-slider-bgr.png")) center repeat;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Inputs
|
|
65
|
+
.k-colorgradient-input-label {
|
|
66
|
+
@include fill( $color: $colorgradient-input-label-text );
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@include exports("colorgradient/theme/rtl") {
|
|
72
|
+
.k-rtl,
|
|
73
|
+
[dir="rtl"] {
|
|
74
|
+
.k-colorgradient {
|
|
75
|
+
|
|
76
|
+
.k-hue-slider.k-slider-horizontal .k-slider-track {
|
|
77
|
+
background: linear-gradient( to left, $gradient-rainbow );
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|