@progress/kendo-theme-core 6.5.0-dev.1 → 6.5.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 +281 -0
- package/dist/all.scss +921 -211
- package/dist/meta/sassdoc-data.json +484 -76
- package/dist/meta/sassdoc-raw-data.json +328 -77
- 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/_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`.
|
|
@@ -1542,6 +1563,15 @@ $_kendo-escape-class-name: (
|
|
|
1542
1563
|
|
|
1543
1564
|
// #endregion
|
|
1544
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
|
+
|
|
1545
1575
|
/// Returns the first index of `$substring` in `$string`, or `null` if `$string` doesn’t contain `$substring`.
|
|
1546
1576
|
/// @param {String} $string - The string to process.
|
|
1547
1577
|
/// @param {String} $substring - The substring to look for.
|
|
@@ -1661,158 +1691,39 @@ $_kendo-escape-class-name: (
|
|
|
1661
1691
|
@return unquote( $string );
|
|
1662
1692
|
}
|
|
1663
1693
|
|
|
1664
|
-
// #endregion
|
|
1665
|
-
|
|
1666
|
-
// #endregion
|
|
1667
|
-
// #region @import "./color-system/index.import.scss"; -> scss/color-system/index.import.scss
|
|
1668
|
-
// #region @import "./_functions.import.scss"; -> scss/color-system/_functions.import.scss
|
|
1669
|
-
@function k-generate-theme-variant( $variant, $matrix, $src-palette-name ) {
|
|
1670
|
-
$result: ();
|
|
1671
|
-
|
|
1672
|
-
@each $ui-state, $indices in $matrix {
|
|
1673
|
-
$prefix: if( $ui-state == DEFAULT, "", "#{$ui-state}-" );
|
|
1674
|
-
$indices-count: k-list-length( $indices );
|
|
1675
|
-
|
|
1676
|
-
$bg-prop: k-list-nth( $indices, 1 );
|
|
1677
|
-
$text-prop: k-list-nth( $indices, 2 );
|
|
1678
|
-
$border-prop: k-list-nth( $indices, 3 );
|
|
1679
|
-
$gradient-prop: if( $indices-count > 3, k-list-nth( $indices, 4 ), null );
|
|
1680
|
-
$shadow-prop: if( $indices-count > 4, k-list-nth( $indices, 5 ), null );
|
|
1681
|
-
$outline-prop: if( $indices-count > 5, k-list-nth( $indices, 6 ), null );
|
|
1682
1694
|
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
$border: if( k-meta-type-of( $border-prop ) == number, k-get-theme-color( $src-palette-name, $border-prop ), $border-prop );
|
|
1687
|
-
$gradient: $gradient-prop;
|
|
1688
|
-
$shadow: $shadow-prop;
|
|
1689
|
-
$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);
|
|
1690
1698
|
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
#{$prefix}text: $text,
|
|
1694
|
-
#{$prefix}border: $border,
|
|
1695
|
-
#{$prefix}gradient: $gradient,
|
|
1696
|
-
#{$prefix}shadow: $shadow,
|
|
1697
|
-
#{$prefix}outline: $outline
|
|
1698
|
-
));
|
|
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);
|
|
1699
1701
|
}
|
|
1700
1702
|
|
|
1701
|
-
$
|
|
1702
|
-
|
|
1703
|
-
);
|
|
1704
|
-
|
|
1705
|
-
@return $result;
|
|
1706
|
-
|
|
1707
|
-
};
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
@function k-process-variant-matrices( $theme-matrix, $palette-matrix: () ) {
|
|
1711
|
-
$result: ();
|
|
1712
|
-
|
|
1713
|
-
// @debug $theme-matrix;
|
|
1714
|
-
// @debug $palette-matrix;
|
|
1715
|
-
|
|
1716
|
-
@each $variant, $definition in $theme-matrix {
|
|
1717
|
-
$tc-index: k-string-index( $variant, "THEME_COLOR" );
|
|
1718
|
-
$src-palette-name: k-map-get( $definition, PALETTE );
|
|
1719
|
-
$matrix: k-map-remove( $definition, PALETTE );
|
|
1720
|
-
|
|
1721
|
-
@if ($tc-index == null ) { // stylelint-disable-line
|
|
1722
|
-
$tmp-result: k-generate-theme-variant( $variant, $matrix, $src-palette-name );
|
|
1723
|
-
$result: k-map-merge( $result, $tmp-result);
|
|
1724
|
-
} @else {
|
|
1725
|
-
@each $color, $palette in $palette-matrix {
|
|
1726
|
-
$variant-name: k-string-replace( $variant, THEME_COLOR, $color);
|
|
1727
|
-
$palette-name: k-string-unquote($src-palette-name + "");
|
|
1728
|
-
|
|
1729
|
-
@if ($palette-name == THEME_COLOR) {
|
|
1730
|
-
$palette-name: k-string-replace( $palette-name, THEME_COLOR, $color );
|
|
1731
|
-
$palette-name: k-map-get( $palette-matrix, $palette-name );
|
|
1732
|
-
}
|
|
1703
|
+
@return $string;
|
|
1704
|
+
}
|
|
1733
1705
|
|
|
1734
|
-
|
|
1735
|
-
|
|
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);
|
|
1736
1715
|
}
|
|
1737
1716
|
}
|
|
1738
1717
|
}
|
|
1739
1718
|
|
|
1740
|
-
@return $
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
@function k-get-theme-palette( $name ) {
|
|
1745
|
-
@return k-map-get( $kendo-palettes, $name );
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
@function k-get-theme-color( $palette, $hue ) {
|
|
1749
|
-
@if ( k-meta-type-of( $palette ) == "map" ) {
|
|
1750
|
-
@return k-map-get( $palette, $hue );
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
@return k-map-get( k-get-theme-palette( $palette ), $hue );
|
|
1754
|
-
}
|
|
1755
|
-
|
|
1756
|
-
@function k-get-theme-color-var( $name, $fallback: "inherit", $prefix: "kendo-" ) {
|
|
1757
|
-
@return var( --#{$prefix}#{$name}, #{$fallback} );
|
|
1719
|
+
@return $string;
|
|
1758
1720
|
}
|
|
1759
1721
|
|
|
1760
1722
|
// #endregion
|
|
1761
|
-
// #region @import "./_mixins.import.scss"; -> scss/color-system/_mixins.import.scss
|
|
1762
|
-
|
|
1763
|
-
// #endregion
|
|
1764
|
-
// #region @import "./_variables.scss"; -> scss/color-system/_variables.scss
|
|
1765
|
-
// Color constants
|
|
1766
|
-
|
|
1767
|
-
/// The color white.
|
|
1768
|
-
/// Note: you cannot change this value.
|
|
1769
|
-
/// @type Color
|
|
1770
|
-
/// @group color-system
|
|
1771
|
-
$kendo-color-white: #ffffff; // stylelint-disable-line scss/dollar-variable-default
|
|
1772
|
-
|
|
1773
|
-
/// The color black.
|
|
1774
|
-
/// Note: you cannot change this value.
|
|
1775
|
-
/// @type Color
|
|
1776
|
-
/// @group color-system
|
|
1777
|
-
$kendo-color-black: #000000; // stylelint-disable-line scss/dollar-variable-default
|
|
1778
|
-
|
|
1779
|
-
/// The color transparent.
|
|
1780
|
-
/// Note: you cannot change this value.
|
|
1781
|
-
/// @type Color
|
|
1782
|
-
/// @group color-system
|
|
1783
|
-
$kendo-color-rgba-transparent: rgba( 0, 0, 0, 0 ); // stylelint-disable-line scss/dollar-variable-default
|
|
1784
|
-
|
|
1785
|
-
/// A gradient that goes from transparent to black.
|
|
1786
|
-
/// Note: you cannot change this value.
|
|
1787
|
-
/// @type Gradient
|
|
1788
|
-
/// @group color-system
|
|
1789
|
-
$kendo-gradient-transparent-to-black: rgba( black, 0 ), black; // stylelint-disable-line scss/dollar-variable-default
|
|
1790
|
-
|
|
1791
|
-
/// A gradient that goes from transparent to white.
|
|
1792
|
-
/// Note: you cannot change this value.
|
|
1793
|
-
/// @type Gradient
|
|
1794
|
-
/// @group color-system
|
|
1795
|
-
$kendo-gradient-transparent-to-white: rgba( white, 0 ), white; // stylelint-disable-line scss/dollar-variable-default
|
|
1796
|
-
|
|
1797
|
-
/// A gradient that goes from black to transparent.
|
|
1798
|
-
/// Note: you cannot change this value.
|
|
1799
|
-
/// @type Gradient
|
|
1800
|
-
/// @group color-system
|
|
1801
|
-
$kendo-gradient-black-to-transparent: black, rgba( black, 0 ); // stylelint-disable-line scss/dollar-variable-default
|
|
1802
|
-
|
|
1803
|
-
/// A gradient that goes from white to transparent.
|
|
1804
|
-
/// Note: you cannot change this value.
|
|
1805
|
-
/// @type Gradient
|
|
1806
|
-
/// @group color-system
|
|
1807
|
-
$kendo-gradient-white-to-transparent: white, rgba( white, 0 ); // stylelint-disable-line scss/dollar-variable-default
|
|
1808
|
-
|
|
1809
|
-
/// A gradient that cycles through the colors of the rainbow.
|
|
1810
|
-
/// Note: you cannot change this value.
|
|
1811
|
-
/// @type Gradient
|
|
1812
|
-
/// @group color-system
|
|
1813
|
-
$kendo-gradient-rainbow: #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000; // stylelint-disable-line scss/dollar-variable-default
|
|
1814
1723
|
|
|
1815
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
|
|
1816
1727
|
// #region @import "./_palettes.scss"; -> scss/color-system/_palettes.scss
|
|
1817
1728
|
/// Color palettes to be used in the Kendo UI themes.
|
|
1818
1729
|
/// @access private
|
|
@@ -2801,72 +2712,444 @@ $kendo-palettes: (
|
|
|
2801
2712
|
|
|
2802
2713
|
// #endregion
|
|
2803
2714
|
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
// #region @import "./_border-radius.scss"; -> scss/mixins/_border-radius.scss
|
|
2807
|
-
// Border radius
|
|
2808
|
-
@mixin border-radius( $radius: null ) {
|
|
2809
|
-
@if $kendo-enable-rounded {
|
|
2810
|
-
border-radius: $radius;
|
|
2811
|
-
}
|
|
2812
|
-
}
|
|
2715
|
+
@function k-generate-theme-variant( $variant, $matrix, $src-palette-name ) {
|
|
2716
|
+
$result: ();
|
|
2813
2717
|
|
|
2814
|
-
@
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
border-top-right-radius: $radius;
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2718
|
+
@each $ui-state, $indices in $matrix {
|
|
2719
|
+
$prefix: if( $ui-state == DEFAULT, "", "#{$ui-state}-" );
|
|
2720
|
+
$indices-count: k-list-length( $indices );
|
|
2820
2721
|
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
border-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
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 );
|
|
2827
2728
|
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
border-
|
|
2832
|
-
|
|
2833
|
-
|
|
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;
|
|
2834
2736
|
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
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
|
+
));
|
|
2839
2745
|
}
|
|
2840
|
-
}
|
|
2841
2746
|
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
}
|
|
2846
|
-
}
|
|
2747
|
+
$result: (
|
|
2748
|
+
#{$variant}: $result
|
|
2749
|
+
);
|
|
2847
2750
|
|
|
2848
|
-
@
|
|
2849
|
-
@if $kendo-enable-rounded {
|
|
2850
|
-
border-radius: 0 $radius $radius 0;
|
|
2851
|
-
}
|
|
2852
|
-
}
|
|
2751
|
+
@return $result;
|
|
2853
2752
|
|
|
2854
|
-
|
|
2855
|
-
@if $kendo-enable-rounded {
|
|
2856
|
-
border-radius: 0 0 $radius $radius;
|
|
2857
|
-
}
|
|
2858
|
-
}
|
|
2753
|
+
};
|
|
2859
2754
|
|
|
2860
|
-
@mixin border-left-radius-only( $radius: null ) {
|
|
2861
|
-
@if $kendo-enable-rounded {
|
|
2862
|
-
border-radius: $radius 0 0 $radius;
|
|
2863
|
-
}
|
|
2864
|
-
}
|
|
2865
2755
|
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
@
|
|
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
|
|
3151
|
+
@mixin box-shadow( $shadow... ) {
|
|
3152
|
+
@if $kendo-enable-shadows and k-list-nth($shadow, 1) {
|
|
2870
3153
|
box-shadow: $shadow;
|
|
2871
3154
|
}
|
|
2872
3155
|
}
|
|
@@ -2902,6 +3185,47 @@ $_kendo-data-uris: () !default;
|
|
|
2902
3185
|
box-shadow: none;
|
|
2903
3186
|
}
|
|
2904
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
|
+
|
|
2905
3229
|
// #endregion
|
|
2906
3230
|
// #region @import "./_focus-indicator.scss"; -> scss/mixins/_focus-indicator.scss
|
|
2907
3231
|
@mixin focus-indicator( $indicator, $inset: false, $themeable: false, $type: "box-shadow" ) {
|
|
@@ -2954,7 +3278,7 @@ $_kendo-data-uris: () !default;
|
|
|
2954
3278
|
// #region @import "./_hide-scrollbar.scss"; -> scss/mixins/_hide-scrollbar.scss
|
|
2955
3279
|
$kendo-scrollbar-width: 17px !default;
|
|
2956
3280
|
|
|
2957
|
-
@mixin hide-scrollbar( $dir: "right", $max-scrollbar: 100px
|
|
3281
|
+
@mixin hide-scrollbar( $dir: "right", $max-scrollbar: 100px) {
|
|
2958
3282
|
// anything larger than the scrollbar width will do
|
|
2959
3283
|
$scrollbar-size: var( --kendo-scrollbar-width, #{$kendo-scrollbar-width} );
|
|
2960
3284
|
$margin: calc( -#{$max-scrollbar} - #{$scrollbar-size} );
|
|
@@ -2971,6 +3295,18 @@ $kendo-scrollbar-width: 17px !default;
|
|
|
2971
3295
|
}
|
|
2972
3296
|
}
|
|
2973
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
|
+
|
|
2974
3310
|
// #endregion
|
|
2975
3311
|
// #region @import "./_import-once.scss"; -> scss/mixins/_import-once.scss
|
|
2976
3312
|
/// A list of exported modules.
|
|
@@ -3000,13 +3336,6 @@ $_kendo-imported-modules: () !default;
|
|
|
3000
3336
|
|
|
3001
3337
|
// #endregion
|
|
3002
3338
|
|
|
3003
|
-
@mixin fill( $color: null, $bg: null, $border: null, $gradient: null ) {
|
|
3004
|
-
border-color: $border;
|
|
3005
|
-
color: $color;
|
|
3006
|
-
background-color: $bg;
|
|
3007
|
-
@include linear-gradient( $gradient );
|
|
3008
|
-
}
|
|
3009
|
-
|
|
3010
3339
|
@mixin background-image( $background-image: null ) {
|
|
3011
3340
|
@if $background-image {
|
|
3012
3341
|
background-image: url(#{$background-image});
|
|
@@ -3724,6 +4053,20 @@ $_imported: () !default;
|
|
|
3724
4053
|
// #endregion
|
|
3725
4054
|
// #region @import "./_layout.scss"; -> scss/styles/_layout.scss
|
|
3726
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
|
+
}
|
|
3727
4070
|
|
|
3728
4071
|
// Basic layout
|
|
3729
4072
|
.k-hstack {
|
|
@@ -3838,6 +4181,289 @@ $_imported: () !default;
|
|
|
3838
4181
|
}
|
|
3839
4182
|
|
|
3840
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
|
|
3841
4467
|
|
|
3842
4468
|
|
|
3843
4469
|
@mixin kendo-core--styles() {
|
|
@@ -3845,13 +4471,97 @@ $_imported: () !default;
|
|
|
3845
4471
|
@include kendo-core--styles--asp-fallback();
|
|
3846
4472
|
@include kendo-core--styles--layout();
|
|
3847
4473
|
@include kendo-core--styles--normalize();
|
|
4474
|
+
@include kendo-core--styles--base();
|
|
4475
|
+
@include kendo-core--styles--loading();
|
|
4476
|
+
@include kendo-core--styles--selection();
|
|
3848
4477
|
}
|
|
3849
4478
|
|
|
3850
4479
|
// #endregion
|
|
3851
4480
|
// #region @import "./_variables.scss"; -> scss/_variables.scss
|
|
4481
|
+
// #region @import "./functions/index.import.scss"; -> scss/functions/index.import.scss
|
|
3852
4482
|
// File already imported_once. Skipping output.
|
|
3853
4483
|
// #endregion
|
|
3854
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
|
+
|
|
3855
4565
|
// #endregion
|
|
3856
4566
|
|
|
3857
4567
|
@include kendo-core--styles();
|