@progress/kendo-theme-core 6.5.0-dev.0 → 6.5.0-dev.2
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 +281 -0
- package/dist/all.scss +923 -209
- package/dist/meta/sassdoc-data.json +612 -204
- package/dist/meta/sassdoc-raw-data.json +456 -205
- package/dist/meta/variables.json +222 -10
- package/package.json +2 -2
- package/scss/_variables.scss +76 -1
- package/scss/color-system/_functions.import.scss +54 -0
- package/scss/color-system/_mixins.import.scss +7 -0
- package/scss/color-system/_variables.scss +164 -0
- package/scss/color-system/index.import.scss +1 -1
- package/scss/functions/_map.import.scss +30 -0
- package/scss/functions/_meta.import.scss +4 -0
- package/scss/functions/_string.import.scss +37 -0
- package/scss/functions/index.import.scss +0 -2
- package/scss/mixins/_decoration.scss +28 -0
- package/scss/mixins/_disabled.scss +10 -0
- package/scss/mixins/_hide-scrollbar.scss +13 -1
- package/scss/mixins/index.import.scss +1 -7
- package/scss/styles/_base.scss +133 -0
- package/scss/styles/_layout.scss +14 -0
- package/scss/styles/_loading.scss +119 -0
- package/scss/styles/_selection.scss +25 -0
- package/scss/styles/index.import.scss +6 -0
package/dist/all.scss
CHANGED
|
@@ -3,15 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
// #region @import "./index.import.scss"; -> scss/index.import.scss
|
|
5
5
|
// #region @import "./functions/index.import.scss"; -> scss/functions/index.import.scss
|
|
6
|
-
// #region @import "../_variables.scss"; -> scss/_variables.scss
|
|
7
|
-
// Equilateral triangle variables
|
|
8
|
-
// stylelint-disable number-max-precision
|
|
9
|
-
$equilateral-index: 1.7320508076 !default;
|
|
10
|
-
$equilateral-height: .8660254038 !default;
|
|
11
|
-
// stylelint-enable number-max-precision
|
|
12
|
-
|
|
13
|
-
// #endregion
|
|
14
|
-
|
|
15
6
|
// #region @import "./_color.import.scss"; -> scss/functions/_color.import.scss
|
|
16
7
|
/// Returns the alpha channel of a color.
|
|
17
8
|
/// @param {Color} $color - The color to get the alpha channel for.
|
|
@@ -1237,6 +1228,36 @@ $_kendo-escape-class-name: (
|
|
|
1237
1228
|
@return $map;
|
|
1238
1229
|
}
|
|
1239
1230
|
|
|
1231
|
+
/// Returns a deep-map with the keys and values from `$map` and `$args`.
|
|
1232
|
+
/// @param {Map} $maps - The maps to deep-merge.
|
|
1233
|
+
/// @return {Map} - A map with the keys and values from `$map` and `$args`.
|
|
1234
|
+
///
|
|
1235
|
+
/// @example scss - Usage
|
|
1236
|
+
/// @debug k-map-deep-merge( ( "foo": ("bar": "baz", "baz": "qux" ) ), ( "foo": ("bar": "foo") ) ); // => ( "foo": ("bar": "foo", "baz": "qux" ))
|
|
1237
|
+
@function k-map-deep-merge($maps...) {
|
|
1238
|
+
$merged: ();
|
|
1239
|
+
|
|
1240
|
+
@each $map in $maps {
|
|
1241
|
+
@each $key, $val in $map {
|
|
1242
|
+
@if (k-meta-type-of($val) == 'map') {
|
|
1243
|
+
$current: k-map-get($merged, $key);
|
|
1244
|
+
@if (k-meta-type-of($current) == 'map') {
|
|
1245
|
+
$val: k-map-deep-merge($current, $val);
|
|
1246
|
+
$map: k-map-merge(
|
|
1247
|
+
$map,
|
|
1248
|
+
(
|
|
1249
|
+
$key: $val
|
|
1250
|
+
)
|
|
1251
|
+
);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
$merged: k-map-merge($merged, $map);
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
@return $merged;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1240
1261
|
/// Returns a map with the keys and values from `$map` except for `$keys`.
|
|
1241
1262
|
/// @param {Map} $map - The map to remove keys from.
|
|
1242
1263
|
/// @param {Any} $keys - The keys to remove from `$map`.
|
|
@@ -1318,6 +1339,10 @@ $_kendo-escape-class-name: (
|
|
|
1318
1339
|
/// @example scss - Usage
|
|
1319
1340
|
/// @debug k-meta-function-exists( "k-string-replace" ); // => true
|
|
1320
1341
|
@function k-meta-function-exists( $name ) {
|
|
1342
|
+
@if $name == "" {
|
|
1343
|
+
@return false;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1321
1346
|
@return function-exists( $name );
|
|
1322
1347
|
}
|
|
1323
1348
|
|
|
@@ -1538,6 +1563,15 @@ $_kendo-escape-class-name: (
|
|
|
1538
1563
|
|
|
1539
1564
|
// #endregion
|
|
1540
1565
|
// #region @import "./_string.import.scss"; -> scss/functions/_string.import.scss
|
|
1566
|
+
$svg-escaped-characters: (
|
|
1567
|
+
("%", "%25"),
|
|
1568
|
+
("<", "%3c"),
|
|
1569
|
+
(">", "%3e"),
|
|
1570
|
+
("#", "%23"),
|
|
1571
|
+
("(", "%28"),
|
|
1572
|
+
(")", "%29")
|
|
1573
|
+
) !default;
|
|
1574
|
+
|
|
1541
1575
|
/// Returns the first index of `$substring` in `$string`, or `null` if `$string` doesn’t contain `$substring`.
|
|
1542
1576
|
/// @param {String} $string - The string to process.
|
|
1543
1577
|
/// @param {String} $substring - The substring to look for.
|
|
@@ -1657,158 +1691,39 @@ $_kendo-escape-class-name: (
|
|
|
1657
1691
|
@return unquote( $string );
|
|
1658
1692
|
}
|
|
1659
1693
|
|
|
1660
|
-
// #endregion
|
|
1661
|
-
|
|
1662
|
-
// #endregion
|
|
1663
|
-
// #region @import "./color-system/index.import.scss"; -> scss/color-system/index.import.scss
|
|
1664
|
-
// #region @import "./_functions.import.scss"; -> scss/color-system/_functions.import.scss
|
|
1665
|
-
@function k-generate-theme-variant( $variant, $matrix, $src-palette-name ) {
|
|
1666
|
-
$result: ();
|
|
1667
|
-
|
|
1668
|
-
@each $ui-state, $indices in $matrix {
|
|
1669
|
-
$prefix: if( $ui-state == DEFAULT, "", "#{$ui-state}-" );
|
|
1670
|
-
$indices-count: k-list-length( $indices );
|
|
1671
|
-
|
|
1672
|
-
$bg-prop: k-list-nth( $indices, 1 );
|
|
1673
|
-
$text-prop: k-list-nth( $indices, 2 );
|
|
1674
|
-
$border-prop: k-list-nth( $indices, 3 );
|
|
1675
|
-
$gradient-prop: if( $indices-count > 3, k-list-nth( $indices, 4 ), null );
|
|
1676
|
-
$shadow-prop: if( $indices-count > 4, k-list-nth( $indices, 5 ), null );
|
|
1677
|
-
$outline-prop: if( $indices-count > 5, k-list-nth( $indices, 6 ), null );
|
|
1678
1694
|
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
$border: if( k-meta-type-of( $border-prop ) == number, k-get-theme-color( $src-palette-name, $border-prop ), $border-prop );
|
|
1683
|
-
$gradient: $gradient-prop;
|
|
1684
|
-
$shadow: $shadow-prop;
|
|
1685
|
-
$outline: $outline-prop;
|
|
1695
|
+
// See https://www.sassmeister.com/gist/1b4f2da5527830088e4d
|
|
1696
|
+
@function str-replace($string, $search, $replace: "") {
|
|
1697
|
+
$index: k-string-index($string, $search);
|
|
1686
1698
|
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
#{$prefix}text: $text,
|
|
1690
|
-
#{$prefix}border: $border,
|
|
1691
|
-
#{$prefix}gradient: $gradient,
|
|
1692
|
-
#{$prefix}shadow: $shadow,
|
|
1693
|
-
#{$prefix}outline: $outline
|
|
1694
|
-
));
|
|
1699
|
+
@if $index {
|
|
1700
|
+
@return k-string-slice($string, 1, $index - 1) + $replace + str-replace(k-string-slice($string, $index + k-string-length($search)), $search, $replace);
|
|
1695
1701
|
}
|
|
1696
1702
|
|
|
1697
|
-
$
|
|
1698
|
-
|
|
1699
|
-
);
|
|
1700
|
-
|
|
1701
|
-
@return $result;
|
|
1702
|
-
|
|
1703
|
-
};
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
@function k-process-variant-matrices( $theme-matrix, $palette-matrix: () ) {
|
|
1707
|
-
$result: ();
|
|
1708
|
-
|
|
1709
|
-
// @debug $theme-matrix;
|
|
1710
|
-
// @debug $palette-matrix;
|
|
1711
|
-
|
|
1712
|
-
@each $variant, $definition in $theme-matrix {
|
|
1713
|
-
$tc-index: k-string-index( $variant, "THEME_COLOR" );
|
|
1714
|
-
$src-palette-name: k-map-get( $definition, PALETTE );
|
|
1715
|
-
$matrix: k-map-remove( $definition, PALETTE );
|
|
1716
|
-
|
|
1717
|
-
@if ($tc-index == null ) { // stylelint-disable-line
|
|
1718
|
-
$tmp-result: k-generate-theme-variant( $variant, $matrix, $src-palette-name );
|
|
1719
|
-
$result: k-map-merge( $result, $tmp-result);
|
|
1720
|
-
} @else {
|
|
1721
|
-
@each $color, $palette in $palette-matrix {
|
|
1722
|
-
$variant-name: k-string-replace( $variant, THEME_COLOR, $color);
|
|
1723
|
-
$palette-name: k-string-unquote($src-palette-name + "");
|
|
1724
|
-
|
|
1725
|
-
@if ($palette-name == THEME_COLOR) {
|
|
1726
|
-
$palette-name: k-string-replace( $palette-name, THEME_COLOR, $color );
|
|
1727
|
-
$palette-name: k-map-get( $palette-matrix, $palette-name );
|
|
1728
|
-
}
|
|
1703
|
+
@return $string;
|
|
1704
|
+
}
|
|
1729
1705
|
|
|
1730
|
-
|
|
1731
|
-
|
|
1706
|
+
// See https://codepen.io/kevinweber/pen/dXWoRw
|
|
1707
|
+
@function escape-svg($string) {
|
|
1708
|
+
@if k-string-index($string, "data:image/svg+xml") {
|
|
1709
|
+
@each $char, $encoded in $svg-escaped-characters {
|
|
1710
|
+
// Do not escape the url brackets
|
|
1711
|
+
@if k-string-index($string, "url(") == 1 {
|
|
1712
|
+
$string: url("#{str-replace(k-string-slice($string, 6, -3), $char, $encoded)}");
|
|
1713
|
+
} @else {
|
|
1714
|
+
$string: str-replace($string, $char, $encoded);
|
|
1732
1715
|
}
|
|
1733
1716
|
}
|
|
1734
1717
|
}
|
|
1735
1718
|
|
|
1736
|
-
@return $
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
@function k-get-theme-palette( $name ) {
|
|
1741
|
-
@return k-map-get( $kendo-palettes, $name );
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
@function k-get-theme-color( $palette, $hue ) {
|
|
1745
|
-
@if ( k-meta-type-of( $palette ) == "map" ) {
|
|
1746
|
-
@return k-map-get( $palette, $hue );
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
@return k-map-get( k-get-theme-palette( $palette ), $hue );
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
@function k-get-theme-color-var( $name, $fallback: "inherit", $prefix: "kendo-" ) {
|
|
1753
|
-
@return var( --#{$prefix}#{$name}, #{$fallback} );
|
|
1719
|
+
@return $string;
|
|
1754
1720
|
}
|
|
1755
1721
|
|
|
1756
1722
|
// #endregion
|
|
1757
|
-
// #region @import "./_mixins.import.scss"; -> scss/color-system/_mixins.import.scss
|
|
1758
|
-
|
|
1759
|
-
// #endregion
|
|
1760
|
-
// #region @import "./_variables.scss"; -> scss/color-system/_variables.scss
|
|
1761
|
-
// Color constants
|
|
1762
|
-
|
|
1763
|
-
/// The color white.
|
|
1764
|
-
/// Note: you cannot change this value.
|
|
1765
|
-
/// @type Color
|
|
1766
|
-
/// @group color-system
|
|
1767
|
-
$kendo-color-white: #ffffff; // stylelint-disable-line scss/dollar-variable-default
|
|
1768
|
-
|
|
1769
|
-
/// The color black.
|
|
1770
|
-
/// Note: you cannot change this value.
|
|
1771
|
-
/// @type Color
|
|
1772
|
-
/// @group color-system
|
|
1773
|
-
$kendo-color-black: #000000; // stylelint-disable-line scss/dollar-variable-default
|
|
1774
|
-
|
|
1775
|
-
/// The color transparent.
|
|
1776
|
-
/// Note: you cannot change this value.
|
|
1777
|
-
/// @type Color
|
|
1778
|
-
/// @group color-system
|
|
1779
|
-
$kendo-color-rgba-transparent: rgba( 0, 0, 0, 0 ); // stylelint-disable-line scss/dollar-variable-default
|
|
1780
|
-
|
|
1781
|
-
/// A gradient that goes from transparent to black.
|
|
1782
|
-
/// Note: you cannot change this value.
|
|
1783
|
-
/// @type Gradient
|
|
1784
|
-
/// @group color-system
|
|
1785
|
-
$kendo-gradient-transparent-to-black: rgba( black, 0 ), black; // stylelint-disable-line scss/dollar-variable-default
|
|
1786
|
-
|
|
1787
|
-
/// A gradient that goes from transparent to white.
|
|
1788
|
-
/// Note: you cannot change this value.
|
|
1789
|
-
/// @type Gradient
|
|
1790
|
-
/// @group color-system
|
|
1791
|
-
$kendo-gradient-transparent-to-white: rgba( white, 0 ), white; // stylelint-disable-line scss/dollar-variable-default
|
|
1792
|
-
|
|
1793
|
-
/// A gradient that goes from black to transparent.
|
|
1794
|
-
/// Note: you cannot change this value.
|
|
1795
|
-
/// @type Gradient
|
|
1796
|
-
/// @group color-system
|
|
1797
|
-
$kendo-gradient-black-to-transparent: black, rgba( black, 0 ); // stylelint-disable-line scss/dollar-variable-default
|
|
1798
|
-
|
|
1799
|
-
/// A gradient that goes from white to transparent.
|
|
1800
|
-
/// Note: you cannot change this value.
|
|
1801
|
-
/// @type Gradient
|
|
1802
|
-
/// @group color-system
|
|
1803
|
-
$kendo-gradient-white-to-transparent: white, rgba( white, 0 ); // stylelint-disable-line scss/dollar-variable-default
|
|
1804
|
-
|
|
1805
|
-
/// A gradient that cycles through the colors of the rainbow.
|
|
1806
|
-
/// Note: you cannot change this value.
|
|
1807
|
-
/// @type Gradient
|
|
1808
|
-
/// @group color-system
|
|
1809
|
-
$kendo-gradient-rainbow: #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000; // stylelint-disable-line scss/dollar-variable-default
|
|
1810
1723
|
|
|
1811
1724
|
// #endregion
|
|
1725
|
+
// #region @import "./color-system/index.import.scss"; -> scss/color-system/index.import.scss
|
|
1726
|
+
// #region @import "./_functions.import.scss"; -> scss/color-system/_functions.import.scss
|
|
1812
1727
|
// #region @import "./_palettes.scss"; -> scss/color-system/_palettes.scss
|
|
1813
1728
|
/// Color palettes to be used in the Kendo UI themes.
|
|
1814
1729
|
/// @access private
|
|
@@ -2797,70 +2712,442 @@ $kendo-palettes: (
|
|
|
2797
2712
|
|
|
2798
2713
|
// #endregion
|
|
2799
2714
|
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
// #region @import "./_border-radius.scss"; -> scss/mixins/_border-radius.scss
|
|
2803
|
-
// Border radius
|
|
2804
|
-
@mixin border-radius( $radius: null ) {
|
|
2805
|
-
@if $kendo-enable-rounded {
|
|
2806
|
-
border-radius: $radius;
|
|
2807
|
-
}
|
|
2808
|
-
}
|
|
2715
|
+
@function k-generate-theme-variant( $variant, $matrix, $src-palette-name ) {
|
|
2716
|
+
$result: ();
|
|
2809
2717
|
|
|
2810
|
-
@
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
border-top-right-radius: $radius;
|
|
2814
|
-
}
|
|
2815
|
-
}
|
|
2718
|
+
@each $ui-state, $indices in $matrix {
|
|
2719
|
+
$prefix: if( $ui-state == DEFAULT, "", "#{$ui-state}-" );
|
|
2720
|
+
$indices-count: k-list-length( $indices );
|
|
2816
2721
|
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
border-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2722
|
+
$bg-prop: k-list-nth( $indices, 1 );
|
|
2723
|
+
$text-prop: k-list-nth( $indices, 2 );
|
|
2724
|
+
$border-prop: k-list-nth( $indices, 3 );
|
|
2725
|
+
$gradient-prop: if( $indices-count > 3, k-list-nth( $indices, 4 ), null );
|
|
2726
|
+
$shadow-prop: if( $indices-count > 4, k-list-nth( $indices, 5 ), null );
|
|
2727
|
+
$outline-prop: if( $indices-count > 5, k-list-nth( $indices, 6 ), null );
|
|
2823
2728
|
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
border-
|
|
2828
|
-
|
|
2829
|
-
|
|
2729
|
+
// Take value from the palette only if it is a number
|
|
2730
|
+
$bg: if( k-meta-type-of( $bg-prop ) == number, k-get-theme-color( $src-palette-name, $bg-prop ), $bg-prop );
|
|
2731
|
+
$text: if( k-meta-type-of( $text-prop ) == number, k-get-theme-color( $src-palette-name, $text-prop ), $text-prop );
|
|
2732
|
+
$border: if( k-meta-type-of( $border-prop ) == number, k-get-theme-color( $src-palette-name, $border-prop ), $border-prop );
|
|
2733
|
+
$gradient: $gradient-prop;
|
|
2734
|
+
$shadow: $shadow-prop;
|
|
2735
|
+
$outline: $outline-prop;
|
|
2830
2736
|
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2737
|
+
$result: k-map-merge($result, (
|
|
2738
|
+
#{$prefix}bg: $bg,
|
|
2739
|
+
#{$prefix}text: $text,
|
|
2740
|
+
#{$prefix}border: $border,
|
|
2741
|
+
#{$prefix}gradient: $gradient,
|
|
2742
|
+
#{$prefix}shadow: $shadow,
|
|
2743
|
+
#{$prefix}outline: $outline
|
|
2744
|
+
));
|
|
2835
2745
|
}
|
|
2836
|
-
}
|
|
2837
2746
|
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
}
|
|
2842
|
-
}
|
|
2747
|
+
$result: (
|
|
2748
|
+
#{$variant}: $result
|
|
2749
|
+
);
|
|
2843
2750
|
|
|
2844
|
-
@
|
|
2845
|
-
@if $kendo-enable-rounded {
|
|
2846
|
-
border-radius: 0 $radius $radius 0;
|
|
2847
|
-
}
|
|
2848
|
-
}
|
|
2751
|
+
@return $result;
|
|
2849
2752
|
|
|
2850
|
-
|
|
2851
|
-
@if $kendo-enable-rounded {
|
|
2852
|
-
border-radius: 0 0 $radius $radius;
|
|
2853
|
-
}
|
|
2854
|
-
}
|
|
2753
|
+
};
|
|
2855
2754
|
|
|
2856
|
-
@mixin border-left-radius-only( $radius: null ) {
|
|
2857
|
-
@if $kendo-enable-rounded {
|
|
2858
|
-
border-radius: $radius 0 0 $radius;
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
2755
|
|
|
2862
|
-
|
|
2863
|
-
|
|
2756
|
+
@function k-process-variant-matrices( $theme-matrix, $palette-matrix: () ) {
|
|
2757
|
+
$result: ();
|
|
2758
|
+
|
|
2759
|
+
// @debug $theme-matrix;
|
|
2760
|
+
// @debug $palette-matrix;
|
|
2761
|
+
|
|
2762
|
+
@each $variant, $definition in $theme-matrix {
|
|
2763
|
+
$tc-index: k-string-index( $variant, "THEME_COLOR" );
|
|
2764
|
+
$src-palette-name: k-map-get( $definition, PALETTE );
|
|
2765
|
+
$matrix: k-map-remove( $definition, PALETTE );
|
|
2766
|
+
|
|
2767
|
+
@if ($tc-index == null ) { // stylelint-disable-line
|
|
2768
|
+
$tmp-result: k-generate-theme-variant( $variant, $matrix, $src-palette-name );
|
|
2769
|
+
$result: k-map-merge( $result, $tmp-result);
|
|
2770
|
+
} @else {
|
|
2771
|
+
@each $color, $palette in $palette-matrix {
|
|
2772
|
+
$variant-name: k-string-replace( $variant, THEME_COLOR, $color);
|
|
2773
|
+
$palette-name: k-string-unquote($src-palette-name + "");
|
|
2774
|
+
|
|
2775
|
+
@if ($palette-name == THEME_COLOR) {
|
|
2776
|
+
$palette-name: k-string-replace( $palette-name, THEME_COLOR, $color );
|
|
2777
|
+
$palette-name: k-map-get( $palette-matrix, $palette-name );
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
$tmp-result: k-generate-theme-variant( $variant-name, $matrix, $palette-name );
|
|
2781
|
+
$result: k-map-merge( $result, $tmp-result );
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
@return $result;
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
|
|
2790
|
+
@function k-get-theme-palette( $name ) {
|
|
2791
|
+
@return k-map-get( $kendo-palettes, $name );
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2794
|
+
@function k-get-theme-color( $palette, $hue ) {
|
|
2795
|
+
@if ( k-meta-type-of( $palette ) == "map" ) {
|
|
2796
|
+
@return k-map-get( $palette, $hue );
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
@return k-map-get( k-get-theme-palette( $palette ), $hue );
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
@function k-get-theme-color-var( $name, $fallback: "inherit", $prefix: "kendo-" ) {
|
|
2803
|
+
@return var( --#{$prefix}#{$name}, #{$fallback} );
|
|
2804
|
+
}
|
|
2805
|
+
|
|
2806
|
+
@function k-generate-theme-variation( $theme-color, $source-palette-name, $mapping ) {
|
|
2807
|
+
$temp: ( );
|
|
2808
|
+
|
|
2809
|
+
@each $ui-state, $indices in $mapping {
|
|
2810
|
+
$prefix: if( $ui-state == normal, '', '#{$ui-state}-' );
|
|
2811
|
+
|
|
2812
|
+
$bg-prop: k-list-nth($indices, 1);
|
|
2813
|
+
$text-prop: k-list-nth($indices, 2);
|
|
2814
|
+
$border-prop: k-list-nth($indices, 3);
|
|
2815
|
+
|
|
2816
|
+
// Take value from the palette only if it is a number
|
|
2817
|
+
$bg: if( k-meta-type-of($bg-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$bg-prop} ), $bg-prop );
|
|
2818
|
+
$text: if( k-meta-type-of($text-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$text-prop} ), $text-prop );
|
|
2819
|
+
$border: if( k-meta-type-of($border-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$border-prop} ), $border-prop );
|
|
2820
|
+
|
|
2821
|
+
|
|
2822
|
+
$temp: k-map-deep-merge( $temp, (
|
|
2823
|
+
#{$prefix}bg: $bg,
|
|
2824
|
+
#{$prefix}text: $text,
|
|
2825
|
+
#{$prefix}border: $border
|
|
2826
|
+
));
|
|
2827
|
+
|
|
2828
|
+
// Add outline if provided in the map
|
|
2829
|
+
@if ( k-list-length($indices) > 3 ) {
|
|
2830
|
+
$outline-prop: k-list-nth($indices, 4);
|
|
2831
|
+
$outline: if( k-meta-type-of($outline-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$outline-prop} ), $outline-prop );
|
|
2832
|
+
|
|
2833
|
+
$temp: k-map-deep-merge( $temp, (
|
|
2834
|
+
#{$prefix}outline: $outline
|
|
2835
|
+
));
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
$map: (
|
|
2840
|
+
#{$theme-color}: $temp
|
|
2841
|
+
);
|
|
2842
|
+
|
|
2843
|
+
@return $map;
|
|
2844
|
+
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2847
|
+
@function k-generate-fill-mode-theme-variation( $fill-mode, $theme-color, $source-palette-name, $mapping ) {
|
|
2848
|
+
|
|
2849
|
+
$map: k-generate-theme-variation( $theme-color, $source-palette-name, $mapping );
|
|
2850
|
+
|
|
2851
|
+
$result: (
|
|
2852
|
+
#{$fill-mode}: $map
|
|
2853
|
+
);
|
|
2854
|
+
|
|
2855
|
+
@return $result;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
// #endregion
|
|
2859
|
+
// #region @import "./_mixins.import.scss"; -> scss/color-system/_mixins.import.scss
|
|
2860
|
+
@mixin k-css-vars($map) {
|
|
2861
|
+
@each $group, $values in $map {
|
|
2862
|
+
@each $key, $value in $values {
|
|
2863
|
+
--kendo-#{k-meta-inspect($group)}-#{$key}: #{$value};
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2868
|
+
// #endregion
|
|
2869
|
+
// #region @import "./_variables.scss"; -> scss/color-system/_variables.scss
|
|
2870
|
+
// Color constants
|
|
2871
|
+
|
|
2872
|
+
/// The color white.
|
|
2873
|
+
/// Note: you cannot change this value.
|
|
2874
|
+
/// @type Color
|
|
2875
|
+
/// @group color-system
|
|
2876
|
+
$kendo-color-white: #ffffff; // stylelint-disable-line scss/dollar-variable-default
|
|
2877
|
+
|
|
2878
|
+
/// The color black.
|
|
2879
|
+
/// Note: you cannot change this value.
|
|
2880
|
+
/// @type Color
|
|
2881
|
+
/// @group color-system
|
|
2882
|
+
$kendo-color-black: #000000; // stylelint-disable-line scss/dollar-variable-default
|
|
2883
|
+
|
|
2884
|
+
/// The color transparent.
|
|
2885
|
+
/// Note: you cannot change this value.
|
|
2886
|
+
/// @type Color
|
|
2887
|
+
/// @group color-system
|
|
2888
|
+
$kendo-color-rgba-transparent: rgba( 0, 0, 0, 0 ); // stylelint-disable-line scss/dollar-variable-default
|
|
2889
|
+
|
|
2890
|
+
/// A gradient that goes from transparent to black.
|
|
2891
|
+
/// Note: you cannot change this value.
|
|
2892
|
+
/// @type Gradient
|
|
2893
|
+
/// @group color-system
|
|
2894
|
+
$kendo-gradient-transparent-to-black: rgba( black, 0 ), black; // stylelint-disable-line scss/dollar-variable-default
|
|
2895
|
+
|
|
2896
|
+
/// A gradient that goes from transparent to white.
|
|
2897
|
+
/// Note: you cannot change this value.
|
|
2898
|
+
/// @type Gradient
|
|
2899
|
+
/// @group color-system
|
|
2900
|
+
$kendo-gradient-transparent-to-white: rgba( white, 0 ), white; // stylelint-disable-line scss/dollar-variable-default
|
|
2901
|
+
|
|
2902
|
+
/// A gradient that goes from black to transparent.
|
|
2903
|
+
/// Note: you cannot change this value.
|
|
2904
|
+
/// @type Gradient
|
|
2905
|
+
/// @group color-system
|
|
2906
|
+
$kendo-gradient-black-to-transparent: black, rgba( black, 0 ); // stylelint-disable-line scss/dollar-variable-default
|
|
2907
|
+
|
|
2908
|
+
/// A gradient that goes from white to transparent.
|
|
2909
|
+
/// Note: you cannot change this value.
|
|
2910
|
+
/// @type Gradient
|
|
2911
|
+
/// @group color-system
|
|
2912
|
+
$kendo-gradient-white-to-transparent: white, rgba( white, 0 ); // stylelint-disable-line scss/dollar-variable-default
|
|
2913
|
+
|
|
2914
|
+
/// A gradient that cycles through the colors of the rainbow.
|
|
2915
|
+
/// Note: you cannot change this value.
|
|
2916
|
+
/// @type Gradient
|
|
2917
|
+
/// @group color-system
|
|
2918
|
+
$kendo-gradient-rainbow: #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000; // stylelint-disable-line scss/dollar-variable-default
|
|
2919
|
+
|
|
2920
|
+
|
|
2921
|
+
// Root styles
|
|
2922
|
+
$kendo-body-bg: $kendo-color-white !default;
|
|
2923
|
+
$kendo-body-text: k-get-theme-color-var( neutral-160 ) !default;
|
|
2924
|
+
|
|
2925
|
+
// Component styles
|
|
2926
|
+
$kendo-component-bg: $kendo-body-bg !default;
|
|
2927
|
+
$kendo-component-text: $kendo-body-text !default;
|
|
2928
|
+
$kendo-component-border: k-get-theme-color-var( neutral-30 ) !default;
|
|
2929
|
+
|
|
2930
|
+
// States styles
|
|
2931
|
+
$kendo-hover-bg: k-get-theme-color-var( neutral-20 ) !default;
|
|
2932
|
+
$kendo-hover-text: k-get-theme-color-var( neutral-190 ) !default;
|
|
2933
|
+
$kendo-hover-border: k-get-theme-color-var( neutral-20 ) !default;
|
|
2934
|
+
|
|
2935
|
+
$kendo-selected-bg: k-get-theme-color-var( neutral-30 ) !default;
|
|
2936
|
+
$kendo-selected-text: k-get-theme-color-var( neutral-160 ) !default;
|
|
2937
|
+
$kendo-selected-border: k-get-theme-color-var( neutral-130 ) !default;
|
|
2938
|
+
|
|
2939
|
+
$kendo-selected-hover-bg: k-get-theme-color-var( neutral-40 ) !default;
|
|
2940
|
+
$kendo-selected-hover-text: k-get-theme-color-var( neutral-190 ) !default;
|
|
2941
|
+
$kendo-selected-hover-border: k-get-theme-color-var( neutral-130 ) !default;
|
|
2942
|
+
|
|
2943
|
+
$kendo-focus-outline: k-get-theme-color-var( neutral-130 ) !default;
|
|
2944
|
+
|
|
2945
|
+
$kendo-subtle-text: k-get-theme-color-var( neutral-130 ) !default;
|
|
2946
|
+
|
|
2947
|
+
// Shadows
|
|
2948
|
+
|
|
2949
|
+
/// Shadow for cards and grid item thumbnails.
|
|
2950
|
+
/// Equivalent to fluent depth 4.
|
|
2951
|
+
$kendo-box-shadow-depth-1: 0 1.6px 3.6px rgba( $kendo-color-black, 0.132 ), 0 0.3px 0.9px rgba( $kendo-color-black, 0.108 ) !default;
|
|
2952
|
+
/// Shadow for command bars and dropdowns.
|
|
2953
|
+
/// Equivalent to fluent depth 8.
|
|
2954
|
+
$kendo-box-shadow-depth-2: 0 3.2px 7.2px rgba( $kendo-color-black, 0.132 ), 0 0.6px 1.8px rgba( $kendo-color-black, 0.108 ) !default;
|
|
2955
|
+
/// Shadow for teaching callouts and hover cards / tooltips.
|
|
2956
|
+
/// Equivalent to fluent depth 16.
|
|
2957
|
+
$kendo-box-shadow-depth-3: 0 6.4px 14.4px rgba( $kendo-color-black, 0.132 ), 0 1.2px 3.6px rgba( $kendo-color-black, 0.108 ) !default;
|
|
2958
|
+
/// Shadow for panels and pop up dialogs.
|
|
2959
|
+
/// Equivalent to fluent depth 64.
|
|
2960
|
+
$kendo-box-shadow-depth-4: 0 25.6px 57.6px rgba( $kendo-color-black, 0.22 ), 0 4.8px 14.4px rgba( $kendo-color-black, 0.18 ) !default;
|
|
2961
|
+
|
|
2962
|
+
// Link
|
|
2963
|
+
$kendo-link-text: k-get-theme-color-var( primary-100 ) !default;
|
|
2964
|
+
$kendo-link-hover-text: k-get-theme-color-var( primary-120 ) !default;
|
|
2965
|
+
|
|
2966
|
+
// Validator
|
|
2967
|
+
$kendo-invalid-bg: initial !default;
|
|
2968
|
+
$kendo-invalid-text: k-get-theme-color-var( error-190 ) !default;
|
|
2969
|
+
$kendo-invalid-border: k-get-theme-color-var( error-190 ) !default;
|
|
2970
|
+
$kendo-invalid-shadow: null !default;
|
|
2971
|
+
|
|
2972
|
+
// Disabled Styling
|
|
2973
|
+
$kendo-disabled-bg: k-get-theme-color-var( neutral-20 ) !default;
|
|
2974
|
+
$kendo-disabled-text: k-get-theme-color-var( neutral-90 ) !default;
|
|
2975
|
+
$kendo-disabled-border: transparent !default;
|
|
2976
|
+
|
|
2977
|
+
// Loading
|
|
2978
|
+
$kendo-loading-bg: $kendo-component-bg !default;
|
|
2979
|
+
$kendo-loading-text: currentColor !default;
|
|
2980
|
+
|
|
2981
|
+
|
|
2982
|
+
// Theme colors
|
|
2983
|
+
$kendo-theme-colors: (
|
|
2984
|
+
primary: (
|
|
2985
|
+
text: k-get-theme-color-var( primary-130 ),
|
|
2986
|
+
bg: k-get-theme-color-var( primary-20 ),
|
|
2987
|
+
border: k-get-theme-color-var( primary-20 )
|
|
2988
|
+
),
|
|
2989
|
+
info: (
|
|
2990
|
+
text: k-get-theme-color-var( info-190 ),
|
|
2991
|
+
bg: k-get-theme-color-var( info-20 ),
|
|
2992
|
+
border: k-get-theme-color-var( info-20 )
|
|
2993
|
+
),
|
|
2994
|
+
success: (
|
|
2995
|
+
text: k-get-theme-color-var( success-190 ),
|
|
2996
|
+
bg: k-get-theme-color-var( success-20 ),
|
|
2997
|
+
border: k-get-theme-color-var( success-20 )
|
|
2998
|
+
),
|
|
2999
|
+
warning: (
|
|
3000
|
+
text: k-get-theme-color-var( neutral-160 ),
|
|
3001
|
+
bg: k-get-theme-color-var( warning-20 ),
|
|
3002
|
+
border: k-get-theme-color-var( warning-20 )
|
|
3003
|
+
),
|
|
3004
|
+
error: (
|
|
3005
|
+
text: k-get-theme-color-var( error-190 ),
|
|
3006
|
+
bg: k-get-theme-color-var( error-20 ),
|
|
3007
|
+
border: k-get-theme-color-var( error-20 )
|
|
3008
|
+
)
|
|
3009
|
+
) !default;
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
@mixin color-system-styles() {
|
|
3013
|
+
:root {
|
|
3014
|
+
@include k-css-vars( $kendo-palettes );
|
|
3015
|
+
@include k-css-vars( $kendo-theme-colors );
|
|
3016
|
+
|
|
3017
|
+
--kendo-body-bg: #{$kendo-body-bg};
|
|
3018
|
+
--kendo-body-text: #{$kendo-body-text};
|
|
3019
|
+
|
|
3020
|
+
--kendo-component-bg: #{$kendo-component-bg};
|
|
3021
|
+
--kendo-component-text: #{$kendo-component-text};
|
|
3022
|
+
--kendo-component-border: #{$kendo-component-border};
|
|
3023
|
+
|
|
3024
|
+
--kendo-box-shadow-depth-1: #{$kendo-box-shadow-depth-1};
|
|
3025
|
+
--kendo-box-shadow-depth-2: #{$kendo-box-shadow-depth-2};
|
|
3026
|
+
--kendo-box-shadow-depth-3: #{$kendo-box-shadow-depth-3};
|
|
3027
|
+
--kendo-box-shadow-depth-4: #{$kendo-box-shadow-depth-4};
|
|
3028
|
+
|
|
3029
|
+
--kendo-link-text: #{$kendo-link-text};
|
|
3030
|
+
--kendo-link-hover-text: #{$kendo-link-hover-text};
|
|
3031
|
+
|
|
3032
|
+
--kendo-disabled-bg: #{$kendo-disabled-bg};
|
|
3033
|
+
--kendo-disabled-text: #{$kendo-disabled-text};
|
|
3034
|
+
--kendo-disabled-border: #{$kendo-disabled-border};
|
|
3035
|
+
|
|
3036
|
+
--kendo-hover-bg: #{$kendo-hover-bg};
|
|
3037
|
+
--kendo-hover-text: #{$kendo-hover-text};
|
|
3038
|
+
--kendo-hover-border: #{$kendo-hover-border};
|
|
3039
|
+
|
|
3040
|
+
--kendo-selected-bg: #{$kendo-selected-bg};
|
|
3041
|
+
--kendo-selected-text: #{$kendo-selected-text};
|
|
3042
|
+
--kendo-selected-border: #{$kendo-selected-border};
|
|
3043
|
+
|
|
3044
|
+
--kendo-selected-hover-bg: #{$kendo-selected-hover-bg};
|
|
3045
|
+
--kendo-selected-hover-text: #{$kendo-selected-hover-text};
|
|
3046
|
+
--kendo-selected-hover-border: #{$kendo-selected-hover-border};
|
|
3047
|
+
|
|
3048
|
+
--kendo-focus-outline: #{$kendo-focus-outline};
|
|
3049
|
+
|
|
3050
|
+
--kendo-subtle-text: #{$kendo-subtle-text};
|
|
3051
|
+
|
|
3052
|
+
--kendo-invalid-bg: #{$kendo-invalid-bg};
|
|
3053
|
+
--kendo-invalid-text: #{$kendo-invalid-text};
|
|
3054
|
+
--kendo-invalid-border: #{$kendo-invalid-border};
|
|
3055
|
+
--kendo-invalid-shadow: #{$kendo-invalid-shadow};
|
|
3056
|
+
|
|
3057
|
+
--kendo-border-radius-sm: #{$kendo-border-radius-sm};
|
|
3058
|
+
--kendo-border-radius-md: #{$kendo-border-radius-md};
|
|
3059
|
+
--kendo-border-radius-lg: #{$kendo-border-radius-lg};
|
|
3060
|
+
}
|
|
3061
|
+
|
|
3062
|
+
// Text colors
|
|
3063
|
+
@each $theme-color, $color-props in $kendo-theme-colors {
|
|
3064
|
+
$_color: k-map-get( $color-props, text );
|
|
3065
|
+
|
|
3066
|
+
.k-text-#{$theme-color},
|
|
3067
|
+
.k-color-#{$theme-color} {
|
|
3068
|
+
color: var( --kendo-text-#{$theme-color}, #{$_color} );
|
|
3069
|
+
}
|
|
3070
|
+
.\!k-text-#{$theme-color},
|
|
3071
|
+
.\!k-color-#{$theme-color} {
|
|
3072
|
+
color: var( --kendo-text-#{$theme-color}, #{$_color} ) !important; // stylelint-disable-line declaration-no-important
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
.k-bg-#{$theme-color} {
|
|
3076
|
+
background-color: var( --kendo-bg-#{$theme-color}, #{$_color} );
|
|
3077
|
+
}
|
|
3078
|
+
.\!k-bg-#{$theme-color} {
|
|
3079
|
+
background-color: var( --kendo-bg-#{$theme-color}, #{$_color} ) !important; // stylelint-disable-line declaration-no-important
|
|
3080
|
+
}
|
|
3081
|
+
};
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
// #endregion
|
|
3085
|
+
// @import "./_palettes.scss";
|
|
3086
|
+
|
|
3087
|
+
// #endregion
|
|
3088
|
+
// #region @import "./mixins/index.import.scss"; -> scss/mixins/index.import.scss
|
|
3089
|
+
// #region @import "./_border-radius.scss"; -> scss/mixins/_border-radius.scss
|
|
3090
|
+
// Border radius
|
|
3091
|
+
@mixin border-radius( $radius: null ) {
|
|
3092
|
+
@if $kendo-enable-rounded {
|
|
3093
|
+
border-radius: $radius;
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
@mixin border-top-radius( $radius: null ) {
|
|
3098
|
+
@if $kendo-enable-rounded {
|
|
3099
|
+
border-top-left-radius: $radius;
|
|
3100
|
+
border-top-right-radius: $radius;
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
@mixin border-right-radius( $radius: null ) {
|
|
3105
|
+
@if $kendo-enable-rounded {
|
|
3106
|
+
border-top-right-radius: $radius;
|
|
3107
|
+
border-bottom-right-radius: $radius;
|
|
3108
|
+
}
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
@mixin border-bottom-radius( $radius: null ) {
|
|
3112
|
+
@if $kendo-enable-rounded {
|
|
3113
|
+
border-bottom-right-radius: $radius;
|
|
3114
|
+
border-bottom-left-radius: $radius;
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
|
|
3118
|
+
@mixin border-left-radius( $radius: null ) {
|
|
3119
|
+
@if $kendo-enable-rounded {
|
|
3120
|
+
border-top-left-radius: $radius;
|
|
3121
|
+
border-bottom-left-radius: $radius;
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
|
|
3125
|
+
@mixin border-top-radius-only( $radius: null ) {
|
|
3126
|
+
@if $kendo-enable-rounded {
|
|
3127
|
+
border-radius: $radius $radius 0 0;
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3131
|
+
@mixin border-right-radius-only( $radius: null ) {
|
|
3132
|
+
@if $kendo-enable-rounded {
|
|
3133
|
+
border-radius: 0 $radius $radius 0;
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
@mixin border-bottom-radius-only( $radius: null ) {
|
|
3138
|
+
@if $kendo-enable-rounded {
|
|
3139
|
+
border-radius: 0 0 $radius $radius;
|
|
3140
|
+
}
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
@mixin border-left-radius-only( $radius: null ) {
|
|
3144
|
+
@if $kendo-enable-rounded {
|
|
3145
|
+
border-radius: $radius 0 0 $radius;
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
|
|
3149
|
+
// #endregion
|
|
3150
|
+
// #region @import "./_box-shadow.scss"; -> scss/mixins/_box-shadow.scss
|
|
2864
3151
|
@mixin box-shadow( $shadow... ) {
|
|
2865
3152
|
@if $kendo-enable-shadows and k-list-nth($shadow, 1) {
|
|
2866
3153
|
box-shadow: $shadow;
|
|
@@ -2898,6 +3185,47 @@ $_kendo-data-uris: () !default;
|
|
|
2898
3185
|
box-shadow: none;
|
|
2899
3186
|
}
|
|
2900
3187
|
|
|
3188
|
+
@mixin disabled-color( $color: null, $bg: null, $border: null ) {
|
|
3189
|
+
outline: none;
|
|
3190
|
+
cursor: default;
|
|
3191
|
+
background-color: $bg;
|
|
3192
|
+
color: $color;
|
|
3193
|
+
border-color: $border;
|
|
3194
|
+
pointer-events: none;
|
|
3195
|
+
box-shadow: none;
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
// #endregion
|
|
3199
|
+
// #region @import "./_decoration.scss"; -> scss/mixins/_decoration.scss
|
|
3200
|
+
@mixin fill( $color: null, $bg: null, $border: null, $gradient: null ) {
|
|
3201
|
+
@if $border {
|
|
3202
|
+
border-color: $border;
|
|
3203
|
+
}
|
|
3204
|
+
@if $color {
|
|
3205
|
+
color: $color;
|
|
3206
|
+
}
|
|
3207
|
+
@if $bg {
|
|
3208
|
+
background-color: $bg;
|
|
3209
|
+
}
|
|
3210
|
+
@if $gradient {
|
|
3211
|
+
@include linear-gradient( $gradient );
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
@mixin linear-gradient( $gradient: null ) {
|
|
3216
|
+
@if $gradient and $kendo-enable-gradients {
|
|
3217
|
+
@if $gradient == none {
|
|
3218
|
+
background-image: none;
|
|
3219
|
+
} @else {
|
|
3220
|
+
background-image: linear-gradient( $gradient );
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
}
|
|
3224
|
+
|
|
3225
|
+
@mixin repeating-striped-gradient( $color: rgba(255,255,255,.15), $background: #FFF, $angle: 45deg, $largeStep: 2px, $smallStep: 1px) {
|
|
3226
|
+
background-image: repeating-linear-gradient($angle, $background, $background $smallStep, $color $smallStep, $color $largeStep);
|
|
3227
|
+
}
|
|
3228
|
+
|
|
2901
3229
|
// #endregion
|
|
2902
3230
|
// #region @import "./_focus-indicator.scss"; -> scss/mixins/_focus-indicator.scss
|
|
2903
3231
|
@mixin focus-indicator( $indicator, $inset: false, $themeable: false, $type: "box-shadow" ) {
|
|
@@ -2950,7 +3278,7 @@ $_kendo-data-uris: () !default;
|
|
|
2950
3278
|
// #region @import "./_hide-scrollbar.scss"; -> scss/mixins/_hide-scrollbar.scss
|
|
2951
3279
|
$kendo-scrollbar-width: 17px !default;
|
|
2952
3280
|
|
|
2953
|
-
@mixin hide-scrollbar( $dir: "right", $max-scrollbar: 100px
|
|
3281
|
+
@mixin hide-scrollbar( $dir: "right", $max-scrollbar: 100px) {
|
|
2954
3282
|
// anything larger than the scrollbar width will do
|
|
2955
3283
|
$scrollbar-size: var( --kendo-scrollbar-width, #{$kendo-scrollbar-width} );
|
|
2956
3284
|
$margin: calc( -#{$max-scrollbar} - #{$scrollbar-size} );
|
|
@@ -2967,6 +3295,18 @@ $kendo-scrollbar-width: 17px !default;
|
|
|
2967
3295
|
}
|
|
2968
3296
|
}
|
|
2969
3297
|
|
|
3298
|
+
@mixin hide-scrollbar-dir-agnostic($max-scrollbar: 100px) {
|
|
3299
|
+
// anything larger than the scrollbar width will do
|
|
3300
|
+
$scrollbar-size: var( --kendo-scrollbar-width, #{$kendo-scrollbar-width} );
|
|
3301
|
+
$margin: calc( -#{$max-scrollbar} - #{$scrollbar-size} );
|
|
3302
|
+
|
|
3303
|
+
padding-inline-end: $max-scrollbar;
|
|
3304
|
+
padding-inline-start: $max-scrollbar;
|
|
3305
|
+
|
|
3306
|
+
margin-inline-start: -$max-scrollbar;
|
|
3307
|
+
margin-inline-end: $margin;
|
|
3308
|
+
}
|
|
3309
|
+
|
|
2970
3310
|
// #endregion
|
|
2971
3311
|
// #region @import "./_import-once.scss"; -> scss/mixins/_import-once.scss
|
|
2972
3312
|
/// A list of exported modules.
|
|
@@ -2996,13 +3336,6 @@ $_kendo-imported-modules: () !default;
|
|
|
2996
3336
|
|
|
2997
3337
|
// #endregion
|
|
2998
3338
|
|
|
2999
|
-
@mixin fill( $color: null, $bg: null, $border: null, $gradient: null ) {
|
|
3000
|
-
border-color: $border;
|
|
3001
|
-
color: $color;
|
|
3002
|
-
background-color: $bg;
|
|
3003
|
-
@include linear-gradient( $gradient );
|
|
3004
|
-
}
|
|
3005
|
-
|
|
3006
3339
|
@mixin background-image( $background-image: null ) {
|
|
3007
3340
|
@if $background-image {
|
|
3008
3341
|
background-image: url(#{$background-image});
|
|
@@ -3720,6 +4053,20 @@ $_imported: () !default;
|
|
|
3720
4053
|
// #endregion
|
|
3721
4054
|
// #region @import "./_layout.scss"; -> scss/styles/_layout.scss
|
|
3722
4055
|
@mixin kendo-core--styles--layout() {
|
|
4056
|
+
.k-body {
|
|
4057
|
+
@include typography(
|
|
4058
|
+
var( --kendo-font-size, inherit ),
|
|
4059
|
+
var( --kendo-font-family, inherit ),
|
|
4060
|
+
var( --kendo-line-height, normal ),
|
|
4061
|
+
var( --kendo-font-weight, normal ),
|
|
4062
|
+
var( --kendo-letter-spacing, normal ),
|
|
4063
|
+
);
|
|
4064
|
+
@include fill(
|
|
4065
|
+
var( --kendo-body-text, initial ),
|
|
4066
|
+
var( --kendo-body-bg, initial )
|
|
4067
|
+
);
|
|
4068
|
+
margin: 0;
|
|
4069
|
+
}
|
|
3723
4070
|
|
|
3724
4071
|
// Basic layout
|
|
3725
4072
|
.k-hstack {
|
|
@@ -3834,6 +4181,289 @@ $_imported: () !default;
|
|
|
3834
4181
|
}
|
|
3835
4182
|
|
|
3836
4183
|
// #endregion
|
|
4184
|
+
// #region @import "./_base.scss"; -> scss/styles/_base.scss
|
|
4185
|
+
@mixin kendo-core--styles--base() {
|
|
4186
|
+
// Disabled state
|
|
4187
|
+
.k-disabled,
|
|
4188
|
+
.k-widget[disabled],
|
|
4189
|
+
.k-disabled {
|
|
4190
|
+
@include disabled-color(
|
|
4191
|
+
$color: var( --kendo-disabled-text, inherit ),
|
|
4192
|
+
$border: var( --kendo-disabled-border, inherit )
|
|
4193
|
+
);
|
|
4194
|
+
|
|
4195
|
+
.k-link {
|
|
4196
|
+
cursor: default;
|
|
4197
|
+
outline: 0;
|
|
4198
|
+
}
|
|
4199
|
+
}
|
|
4200
|
+
|
|
4201
|
+
// Horizontal line
|
|
4202
|
+
.k-hr {
|
|
4203
|
+
margin-block: k-map-get( $kendo-spacing, 4 );
|
|
4204
|
+
padding: 0;
|
|
4205
|
+
height: 0;
|
|
4206
|
+
border-width: 1px 0 0;
|
|
4207
|
+
border-style: solid;
|
|
4208
|
+
border-color: var( --kendo-component-border, inherit );
|
|
4209
|
+
display: block;
|
|
4210
|
+
float: none;
|
|
4211
|
+
clear: both;
|
|
4212
|
+
}
|
|
4213
|
+
|
|
4214
|
+
// Horizontal rule
|
|
4215
|
+
.k-d-flex-row > .k-hr {
|
|
4216
|
+
margin: 0;
|
|
4217
|
+
width: 0;
|
|
4218
|
+
height: auto;
|
|
4219
|
+
border-width: 0 0 0 1px;
|
|
4220
|
+
flex: 0 0 auto;
|
|
4221
|
+
}
|
|
4222
|
+
|
|
4223
|
+
// Vertical rule
|
|
4224
|
+
.k-d-flex-col > .k-hr {
|
|
4225
|
+
margin: 0;
|
|
4226
|
+
flex: 0 0 auto;
|
|
4227
|
+
}
|
|
4228
|
+
|
|
4229
|
+
.k-sprite {
|
|
4230
|
+
display: inline-block;
|
|
4231
|
+
width: 1rem;
|
|
4232
|
+
height: 1rem;
|
|
4233
|
+
overflow: hidden;
|
|
4234
|
+
background-repeat: no-repeat;
|
|
4235
|
+
font-size: 0;
|
|
4236
|
+
line-height: 0;
|
|
4237
|
+
text-align: center;
|
|
4238
|
+
}
|
|
4239
|
+
|
|
4240
|
+
.k-image {
|
|
4241
|
+
display: inline-block;
|
|
4242
|
+
}
|
|
4243
|
+
|
|
4244
|
+
// Layout
|
|
4245
|
+
.k-reset {
|
|
4246
|
+
margin: 0;
|
|
4247
|
+
padding: 0;
|
|
4248
|
+
border-width: 0;
|
|
4249
|
+
outline: 0;
|
|
4250
|
+
text-decoration: none;
|
|
4251
|
+
font: inherit;
|
|
4252
|
+
list-style: none;
|
|
4253
|
+
}
|
|
4254
|
+
|
|
4255
|
+
kendo-sortable {
|
|
4256
|
+
display: block;
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
|
|
4260
|
+
// Links
|
|
4261
|
+
.k-link,
|
|
4262
|
+
.k-link:hover {
|
|
4263
|
+
color: inherit;
|
|
4264
|
+
text-decoration: none;
|
|
4265
|
+
outline: 0;
|
|
4266
|
+
cursor: pointer;
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
// Outline
|
|
4270
|
+
.k-content {
|
|
4271
|
+
outline: 0;
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4274
|
+
// Centering
|
|
4275
|
+
.k-centered {
|
|
4276
|
+
position: absolute;
|
|
4277
|
+
top: 50%;
|
|
4278
|
+
left: 50%;
|
|
4279
|
+
transform: translate(-50%, -50%);
|
|
4280
|
+
}
|
|
4281
|
+
|
|
4282
|
+
// Disable mouse events
|
|
4283
|
+
.k-no-click {
|
|
4284
|
+
pointer-events: none;
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
// Off-screen container used during PDF export
|
|
4288
|
+
.k-pdf-export-shadow {
|
|
4289
|
+
position: absolute;
|
|
4290
|
+
overflow: hidden;
|
|
4291
|
+
left: -15000px;
|
|
4292
|
+
width: 14400px;
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4295
|
+
// PDF export icons fix
|
|
4296
|
+
.kendo-pdf-hide-pseudo-elements::before,
|
|
4297
|
+
.kendo-pdf-hide-pseudo-elements::after {
|
|
4298
|
+
display: none !important; // stylelint-disable-line declaration-no-important
|
|
4299
|
+
}
|
|
4300
|
+
|
|
4301
|
+
// Dirty indicator
|
|
4302
|
+
.k-dirty {
|
|
4303
|
+
margin: 0;
|
|
4304
|
+
padding: 0;
|
|
4305
|
+
width: 0;
|
|
4306
|
+
height: 0;
|
|
4307
|
+
border-width: 3px;
|
|
4308
|
+
border-style: solid;
|
|
4309
|
+
border-block-start-color: currentColor;
|
|
4310
|
+
border-block-end-color: transparent;
|
|
4311
|
+
border-inline-start-color: transparent;
|
|
4312
|
+
border-inline-end-color: currentColor;
|
|
4313
|
+
position: absolute;
|
|
4314
|
+
inset-block-start: 0;
|
|
4315
|
+
inset-inline-end: 0;
|
|
4316
|
+
}
|
|
4317
|
+
}
|
|
4318
|
+
// #endregion
|
|
4319
|
+
// #region @import "./_loading.scss"; -> scss/styles/_loading.scss
|
|
4320
|
+
@mixin kendo-core--styles--loading() {
|
|
4321
|
+
// Loading mask
|
|
4322
|
+
.k-loading-mask,
|
|
4323
|
+
.k-loading-image,
|
|
4324
|
+
.k-loading-color {
|
|
4325
|
+
width: 100%;
|
|
4326
|
+
height: 100%;
|
|
4327
|
+
box-sizing: border-box;
|
|
4328
|
+
position: absolute;
|
|
4329
|
+
top: 0;
|
|
4330
|
+
left: 0;
|
|
4331
|
+
|
|
4332
|
+
*,
|
|
4333
|
+
*::before,
|
|
4334
|
+
*::after,
|
|
4335
|
+
&::before,
|
|
4336
|
+
&::after {
|
|
4337
|
+
box-sizing: border-box;
|
|
4338
|
+
}
|
|
4339
|
+
}
|
|
4340
|
+
|
|
4341
|
+
.k-loading-mask {
|
|
4342
|
+
z-index: $kendo-zindex-loading;
|
|
4343
|
+
|
|
4344
|
+
&.k-opaque {
|
|
4345
|
+
.k-loading-color {
|
|
4346
|
+
opacity: 1;
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4349
|
+
}
|
|
4350
|
+
.k-loading-text {
|
|
4351
|
+
text-indent: -4000px;
|
|
4352
|
+
text-align: center;
|
|
4353
|
+
position: absolute;
|
|
4354
|
+
color: $kendo-loading-text;
|
|
4355
|
+
}
|
|
4356
|
+
.k-loading-image {
|
|
4357
|
+
z-index: 2;
|
|
4358
|
+
color: $kendo-loading-text;
|
|
4359
|
+
}
|
|
4360
|
+
.k-loading-color {
|
|
4361
|
+
background-color: $kendo-loading-bg;
|
|
4362
|
+
opacity: $kendo-loading-opacity;
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
// Loading indicator
|
|
4366
|
+
.k-i-loading {
|
|
4367
|
+
position: relative;
|
|
4368
|
+
background-color: transparent;
|
|
4369
|
+
box-sizing: border-box;
|
|
4370
|
+
color: $kendo-loading-text;
|
|
4371
|
+
|
|
4372
|
+
&::before,
|
|
4373
|
+
&::after {
|
|
4374
|
+
box-sizing: border-box;
|
|
4375
|
+
}
|
|
4376
|
+
}
|
|
4377
|
+
|
|
4378
|
+
.k-i-loading::before,
|
|
4379
|
+
.k-i-loading::after,
|
|
4380
|
+
.k-loading-image::before,
|
|
4381
|
+
.k-loading-image::after {
|
|
4382
|
+
position: absolute;
|
|
4383
|
+
top: 50%;
|
|
4384
|
+
left: 50%;
|
|
4385
|
+
display: inline-block;
|
|
4386
|
+
content: "";
|
|
4387
|
+
box-sizing: inherit;
|
|
4388
|
+
border-radius: 50%;
|
|
4389
|
+
border-width: .05em;
|
|
4390
|
+
border-style: solid;
|
|
4391
|
+
border-color: currentColor;
|
|
4392
|
+
border-top-color: transparent;
|
|
4393
|
+
border-bottom-color: transparent;
|
|
4394
|
+
background-color: transparent;
|
|
4395
|
+
}
|
|
4396
|
+
|
|
4397
|
+
.k-icon.k-i-loading::before,
|
|
4398
|
+
.k-icon.k-i-loading::after {
|
|
4399
|
+
content: "";
|
|
4400
|
+
}
|
|
4401
|
+
|
|
4402
|
+
.k-i-loading::before,
|
|
4403
|
+
.k-loading-image::before {
|
|
4404
|
+
margin-top: -.5em;
|
|
4405
|
+
margin-left: -.5em;
|
|
4406
|
+
width: 1em;
|
|
4407
|
+
height: 1em;
|
|
4408
|
+
animation: k-loading-animation .7s linear infinite;
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
.k-i-loading::after,
|
|
4412
|
+
.k-loading-image::after {
|
|
4413
|
+
margin-top: -.25em;
|
|
4414
|
+
margin-left: -.25em;
|
|
4415
|
+
width: .5em;
|
|
4416
|
+
height: .5em;
|
|
4417
|
+
animation: k-loading-animation reverse 1.4s linear infinite;
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4420
|
+
.k-loading-image::before,
|
|
4421
|
+
.k-loading-image::after {
|
|
4422
|
+
content: "";
|
|
4423
|
+
// See https://github.com/telerik/kendo-themes/issues/1925
|
|
4424
|
+
border-width: 1px; // TODO: Remove once we drop IE support
|
|
4425
|
+
border-width: clamp( .015em, 1px, 1px );
|
|
4426
|
+
font-size: 4em;
|
|
4427
|
+
}
|
|
4428
|
+
|
|
4429
|
+
// Loading animation
|
|
4430
|
+
@keyframes k-loading-animation {
|
|
4431
|
+
0% {
|
|
4432
|
+
transform: rotate(0deg);
|
|
4433
|
+
}
|
|
4434
|
+
100% {
|
|
4435
|
+
transform: rotate(360deg);
|
|
4436
|
+
}
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4439
|
+
// #endregion
|
|
4440
|
+
// #region @import "./_selection.scss"; -> scss/styles/_selection.scss
|
|
4441
|
+
@mixin kendo-core--styles--selection() {
|
|
4442
|
+
.k-marquee {
|
|
4443
|
+
position: absolute;
|
|
4444
|
+
z-index: 100000;
|
|
4445
|
+
}
|
|
4446
|
+
|
|
4447
|
+
.k-marquee-color,
|
|
4448
|
+
.k-marquee-text {
|
|
4449
|
+
position: absolute;
|
|
4450
|
+
top: 0;
|
|
4451
|
+
left: 0;
|
|
4452
|
+
width: 100%;
|
|
4453
|
+
height: 100%;
|
|
4454
|
+
}
|
|
4455
|
+
|
|
4456
|
+
.k-marquee-color {
|
|
4457
|
+
color: $kendo-selected-text;
|
|
4458
|
+
background-color: k-get-theme-color-var( primary-60, #{$kendo-selected-bg} );
|
|
4459
|
+
border-color: k-get-theme-color-var( primary-100, #{$kendo-selected-border} );
|
|
4460
|
+
opacity: .6;
|
|
4461
|
+
}
|
|
4462
|
+
.k-marquee-text {
|
|
4463
|
+
color: $kendo-selected-text;
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4466
|
+
// #endregion
|
|
3837
4467
|
|
|
3838
4468
|
|
|
3839
4469
|
@mixin kendo-core--styles() {
|
|
@@ -3841,13 +4471,97 @@ $_imported: () !default;
|
|
|
3841
4471
|
@include kendo-core--styles--asp-fallback();
|
|
3842
4472
|
@include kendo-core--styles--layout();
|
|
3843
4473
|
@include kendo-core--styles--normalize();
|
|
4474
|
+
@include kendo-core--styles--base();
|
|
4475
|
+
@include kendo-core--styles--loading();
|
|
4476
|
+
@include kendo-core--styles--selection();
|
|
3844
4477
|
}
|
|
3845
4478
|
|
|
3846
4479
|
// #endregion
|
|
3847
4480
|
// #region @import "./_variables.scss"; -> scss/_variables.scss
|
|
4481
|
+
// #region @import "./functions/index.import.scss"; -> scss/functions/index.import.scss
|
|
3848
4482
|
// File already imported_once. Skipping output.
|
|
3849
4483
|
// #endregion
|
|
3850
4484
|
|
|
4485
|
+
// Options
|
|
4486
|
+
$kendo-enable-shadows: true !default;
|
|
4487
|
+
$kendo-enable-rounded: true !default;
|
|
4488
|
+
$kendo-enable-gradients: true !default;
|
|
4489
|
+
$kendo-enable-transitions: true !default;
|
|
4490
|
+
|
|
4491
|
+
$kendo-spacing: (
|
|
4492
|
+
0: 0,
|
|
4493
|
+
1px: 1px,
|
|
4494
|
+
0.5: 0.125rem,
|
|
4495
|
+
1: 0.25rem,
|
|
4496
|
+
1.5: 0.375rem,
|
|
4497
|
+
2: 0.5rem,
|
|
4498
|
+
2.5: 0.625rem,
|
|
4499
|
+
3: 0.75rem,
|
|
4500
|
+
3.5: 0.875rem,
|
|
4501
|
+
4: 1rem,
|
|
4502
|
+
4.5: 1.125rem,
|
|
4503
|
+
5: 1.25rem,
|
|
4504
|
+
5.5: 1.375rem,
|
|
4505
|
+
6: 1.5rem,
|
|
4506
|
+
6.5: 1.625rem,
|
|
4507
|
+
7: 1.75rem,
|
|
4508
|
+
7.5: 1.875rem,
|
|
4509
|
+
8: 2rem,
|
|
4510
|
+
9: 2.25rem,
|
|
4511
|
+
10: 2.5rem,
|
|
4512
|
+
11: 2.75rem,
|
|
4513
|
+
12: 3rem,
|
|
4514
|
+
13: 3.25rem,
|
|
4515
|
+
14: 3.5rem,
|
|
4516
|
+
15: 3.75rem,
|
|
4517
|
+
16: 4rem,
|
|
4518
|
+
17: 4.25rem,
|
|
4519
|
+
18: 4.5rem,
|
|
4520
|
+
19: 4.75rem,
|
|
4521
|
+
20: 5rem,
|
|
4522
|
+
21: 5.25rem,
|
|
4523
|
+
22: 5.5rem,
|
|
4524
|
+
23: 5.75rem,
|
|
4525
|
+
24: 6rem,
|
|
4526
|
+
) !default;
|
|
4527
|
+
|
|
4528
|
+
/// Border radius for all components.
|
|
4529
|
+
$kendo-border-radius: k-map-get($kendo-spacing, 0.5) !default;
|
|
4530
|
+
$kendo-border-radius-sm: k-math-div($kendo-border-radius, 2) !default;
|
|
4531
|
+
$kendo-border-radius-md: $kendo-border-radius !default;
|
|
4532
|
+
$kendo-border-radius-lg: ($kendo-border-radius * 2) !default;
|
|
4533
|
+
|
|
4534
|
+
$kendo-border-radii: (
|
|
4535
|
+
DEFAULT: var(--kendo-border-radius-md, $kendo-border-radius-md),
|
|
4536
|
+
0: 0,
|
|
4537
|
+
sm: var(--kendo-border-radius-sm, $kendo-border-radius-sm),
|
|
4538
|
+
md: var(--kendo-border-radius-md, $kendo-border-radius-md),
|
|
4539
|
+
lg: var(--kendo-border-radius-lg, $kendo-border-radius-lg),
|
|
4540
|
+
none: 0,
|
|
4541
|
+
full: 9999px,
|
|
4542
|
+
) !default;
|
|
4543
|
+
|
|
4544
|
+
// Metrics
|
|
4545
|
+
$kendo-padding-x: k-map-get($kendo-spacing, 2) !default;
|
|
4546
|
+
$kendo-padding-y: k-map-get($kendo-spacing, 1) !default;
|
|
4547
|
+
$kendo-padding-sm-x: k-map-get($kendo-spacing, 1) !default;
|
|
4548
|
+
$kendo-padding-sm-y: k-map-get($kendo-spacing, 0.5) !default;
|
|
4549
|
+
$kendo-padding-md-x: k-map-get($kendo-spacing, 2) !default;
|
|
4550
|
+
$kendo-padding-md-y: k-map-get($kendo-spacing, 1) !default;
|
|
4551
|
+
$kendo-padding-lg-x: k-map-get($kendo-spacing, 3) !default;
|
|
4552
|
+
$kendo-padding-lg-y: k-map-get($kendo-spacing, 1.5) !default;
|
|
4553
|
+
|
|
4554
|
+
// Equilateral triangle variables
|
|
4555
|
+
// stylelint-disable number-max-precision
|
|
4556
|
+
$equilateral-index: 1.7320508076 !default;
|
|
4557
|
+
$equilateral-height: 0.8660254038 !default;
|
|
4558
|
+
// stylelint-enable number-max-precision
|
|
4559
|
+
|
|
4560
|
+
// Loading
|
|
4561
|
+
$kendo-loading-opacity: .3 !default;
|
|
4562
|
+
$kendo-zindex-loading: 100 !default;
|
|
4563
|
+
// #endregion
|
|
4564
|
+
|
|
3851
4565
|
// #endregion
|
|
3852
4566
|
|
|
3853
4567
|
@include kendo-core--styles();
|