@progress/kendo-theme-core 6.0.2 → 6.0.4-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/all.scss +119 -93
- package/package.json +2 -2
- package/scss/all.scss +2 -0
- package/scss/styles/_accessibility.scss +13 -9
- package/scss/styles/_asp-fallback.scss +7 -3
- package/scss/styles/_layout.scss +93 -89
- package/scss/styles/_normalize.scss +12 -8
- package/scss/styles/index.import.scss +8 -0
package/dist/all.scss
CHANGED
|
@@ -2861,137 +2861,163 @@ $_imported: ();
|
|
|
2861
2861
|
// #endregion
|
|
2862
2862
|
// #region @import "./styles/index.import.scss"; -> packages/core/scss/styles/index.import.scss
|
|
2863
2863
|
// #region @import "./_accessibility.scss"; -> packages/core/scss/styles/_accessibility.scss
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
///
|
|
2867
|
-
.k-sr-only
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2864
|
+
@mixin kendo-core--styles--accessibility() {
|
|
2865
|
+
|
|
2866
|
+
/// This class could be assigned to elements which should be visually hidden, but remain accessible for screen readers.
|
|
2867
|
+
/// @name .k-sr-only
|
|
2868
|
+
/// @group accessibility
|
|
2869
|
+
.k-sr-only {
|
|
2870
|
+
position: absolute;
|
|
2871
|
+
left: -1px;
|
|
2872
|
+
width: 1px;
|
|
2873
|
+
height: 1px;
|
|
2874
|
+
overflow: hidden;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2873
2877
|
}
|
|
2874
2878
|
|
|
2875
2879
|
// #endregion
|
|
2876
2880
|
// #region @import "./_asp-fallback.scss"; -> packages/core/scss/styles/_asp-fallback.scss
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2881
|
+
@mixin kendo-core--styles--asp-fallback() {
|
|
2882
|
+
|
|
2883
|
+
.k-theme-test-class,
|
|
2884
|
+
.k-common-test-class {
|
|
2885
|
+
opacity: 0;
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2880
2888
|
}
|
|
2881
2889
|
|
|
2882
2890
|
// #endregion
|
|
2883
2891
|
// #region @import "./_layout"; -> packages/core/scss/styles/_layout.scss
|
|
2884
|
-
|
|
2885
|
-
.k-hstack {
|
|
2886
|
-
display: flex;
|
|
2887
|
-
flex-flow: row nowrap;
|
|
2888
|
-
}
|
|
2889
|
-
.k-vstack {
|
|
2890
|
-
display: flex;
|
|
2891
|
-
flex-flow: column nowrap;
|
|
2892
|
-
}
|
|
2892
|
+
@mixin kendo-core--styles--layout() {
|
|
2893
2893
|
|
|
2894
|
-
//
|
|
2895
|
-
.k-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2894
|
+
// Basic layout
|
|
2895
|
+
.k-hstack {
|
|
2896
|
+
display: flex;
|
|
2897
|
+
flex-flow: row nowrap;
|
|
2898
|
+
}
|
|
2899
|
+
.k-vstack {
|
|
2900
|
+
display: flex;
|
|
2901
|
+
flex-flow: column nowrap;
|
|
2902
|
+
}
|
|
2901
2903
|
|
|
2904
|
+
// Spacer
|
|
2905
|
+
.k-spacer {
|
|
2906
|
+
flex: 1 1 auto;
|
|
2907
|
+
}
|
|
2908
|
+
.k-spacer-sized {
|
|
2909
|
+
flex: none;
|
|
2910
|
+
}
|
|
2902
2911
|
|
|
2903
|
-
// Float wrap
|
|
2904
|
-
.k-float-wrap::after {
|
|
2905
|
-
content: "";
|
|
2906
|
-
display: block;
|
|
2907
|
-
clear: both;
|
|
2908
|
-
}
|
|
2909
2912
|
|
|
2913
|
+
// Float wrap
|
|
2914
|
+
.k-float-wrap::after {
|
|
2915
|
+
content: "";
|
|
2916
|
+
display: block;
|
|
2917
|
+
clear: both;
|
|
2918
|
+
}
|
|
2910
2919
|
|
|
2911
|
-
// Stack layout
|
|
2912
|
-
.k-stack-layout {}
|
|
2913
2920
|
|
|
2921
|
+
// Stack layout
|
|
2922
|
+
.k-stack-layout {}
|
|
2914
2923
|
|
|
2915
|
-
// Flex layout
|
|
2916
|
-
.k-flex-layout {
|
|
2917
|
-
display: flex;
|
|
2918
|
-
}
|
|
2919
2924
|
|
|
2925
|
+
// Flex layout
|
|
2926
|
+
.k-flex-layout {
|
|
2927
|
+
display: flex;
|
|
2928
|
+
}
|
|
2920
2929
|
|
|
2921
|
-
// Grid layout
|
|
2922
|
-
.k-grid-layout {
|
|
2923
|
-
display: grid;
|
|
2924
|
-
}
|
|
2925
2930
|
|
|
2931
|
+
// Grid layout
|
|
2932
|
+
.k-grid-layout {
|
|
2933
|
+
display: grid;
|
|
2934
|
+
}
|
|
2926
2935
|
|
|
2927
|
-
// Separator
|
|
2928
|
-
.k-separator {
|
|
2929
|
-
width: auto;
|
|
2930
|
-
height: 0;
|
|
2931
|
-
border-width: 1px 0 0;
|
|
2932
|
-
border-style: solid;
|
|
2933
|
-
border-color: inherit;
|
|
2934
|
-
display: block;
|
|
2935
|
-
flex-grow: 0 !important; // sass-lint:disable-line no-important
|
|
2936
|
-
flex-shrink: 0 !important; // sass-lint:disable-line no-important
|
|
2937
|
-
align-self: stretch;
|
|
2938
|
-
}
|
|
2939
|
-
.k-separator-horizontal,
|
|
2940
|
-
.k-vstack > .k-separator {
|
|
2941
|
-
width: auto;
|
|
2942
|
-
height: 0;
|
|
2943
|
-
border-width: 1px 0 0;
|
|
2944
|
-
}
|
|
2945
|
-
.k-separator-vertical,
|
|
2946
|
-
.k-hstack > .k-separator {
|
|
2947
|
-
width: 0;
|
|
2948
|
-
height: auto;
|
|
2949
|
-
border-width: 0 0 0 1px;
|
|
2950
|
-
}
|
|
2951
2936
|
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2937
|
+
// Separator
|
|
2938
|
+
.k-separator {
|
|
2939
|
+
width: auto;
|
|
2940
|
+
height: 0;
|
|
2941
|
+
border-width: 1px 0 0;
|
|
2942
|
+
border-style: solid;
|
|
2943
|
+
border-color: inherit;
|
|
2944
|
+
display: block;
|
|
2945
|
+
flex-grow: 0 !important; // sass-lint:disable-line no-important
|
|
2946
|
+
flex-shrink: 0 !important; // sass-lint:disable-line no-important
|
|
2947
|
+
align-self: stretch;
|
|
2948
|
+
}
|
|
2949
|
+
.k-separator-horizontal,
|
|
2950
|
+
.k-vstack > .k-separator {
|
|
2951
|
+
width: auto;
|
|
2952
|
+
height: 0;
|
|
2953
|
+
border-width: 1px 0 0;
|
|
2954
|
+
}
|
|
2955
|
+
.k-separator-vertical,
|
|
2956
|
+
.k-hstack > .k-separator {
|
|
2957
|
+
width: 0;
|
|
2958
|
+
height: auto;
|
|
2959
|
+
border-width: 0 0 0 1px;
|
|
2960
|
+
}
|
|
2956
2961
|
|
|
2962
|
+
hr.k-separator {
|
|
2963
|
+
margin: 0;
|
|
2964
|
+
padding: 0;
|
|
2965
|
+
}
|
|
2957
2966
|
|
|
2958
|
-
// Hidden
|
|
2959
|
-
.k-hidden {
|
|
2960
|
-
display: none !important; // sass-lint:disable-line no-important
|
|
2961
|
-
}
|
|
2962
2967
|
|
|
2968
|
+
// Hidden
|
|
2969
|
+
.k-hidden {
|
|
2970
|
+
display: none !important; // sass-lint:disable-line no-important
|
|
2971
|
+
}
|
|
2963
2972
|
|
|
2964
|
-
// RTL
|
|
2965
|
-
.k-rtl {
|
|
2966
|
-
direction: rtl;
|
|
2967
|
-
}
|
|
2968
2973
|
|
|
2974
|
+
// RTL
|
|
2975
|
+
.k-rtl {
|
|
2976
|
+
direction: rtl;
|
|
2977
|
+
}
|
|
2969
2978
|
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
.k-
|
|
2973
|
-
.k-
|
|
2974
|
-
.k-
|
|
2979
|
+
|
|
2980
|
+
// Legacy aliases
|
|
2981
|
+
.k-hbox { @extend .k-hstack !optional; }
|
|
2982
|
+
.k-vbox { @extend .k-vstack !optional; }
|
|
2983
|
+
.k-floatwrap { @extend .k-float-wrap !optional; }
|
|
2984
|
+
.k-flex { @extend .k-spacer !optional; }
|
|
2985
|
+
|
|
2986
|
+
}
|
|
2975
2987
|
|
|
2976
2988
|
// #endregion
|
|
2977
2989
|
// #region @import "./_normalize.scss"; -> packages/core/scss/styles/_normalize.scss
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2990
|
+
@mixin kendo-core--styles--normalize() {
|
|
2991
|
+
|
|
2992
|
+
// Hidden attribute
|
|
2993
|
+
[hidden] {
|
|
2994
|
+
display: none !important; // sass-lint:disable-line no-important
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2982
2997
|
|
|
2998
|
+
// Hide script tags
|
|
2999
|
+
// see https://github.com/telerik/kendo-themes/issues/2360
|
|
3000
|
+
script {
|
|
3001
|
+
display: none !important; // sass-lint:disable-line no-important
|
|
3002
|
+
}
|
|
2983
3003
|
|
|
2984
|
-
// Hide script tags
|
|
2985
|
-
// see https://github.com/telerik/kendo-themes/issues/2360
|
|
2986
|
-
script {
|
|
2987
|
-
display: none !important; // sass-lint:disable-line no-important
|
|
2988
3004
|
}
|
|
2989
3005
|
|
|
2990
3006
|
// #endregion
|
|
2991
3007
|
|
|
3008
|
+
|
|
3009
|
+
@mixin kendo-core--styles() {
|
|
3010
|
+
@include kendo-core--styles--accessibility();
|
|
3011
|
+
@include kendo-core--styles--asp-fallback();
|
|
3012
|
+
@include kendo-core--styles--layout();
|
|
3013
|
+
@include kendo-core--styles--normalize();
|
|
3014
|
+
}
|
|
3015
|
+
|
|
2992
3016
|
// #endregion
|
|
2993
3017
|
// #region @import "./_variables.scss"; -> packages/core/scss/_variables.scss
|
|
2994
3018
|
// File already imported_once. Skipping output.
|
|
2995
3019
|
// #endregion
|
|
2996
3020
|
|
|
2997
3021
|
// #endregion
|
|
3022
|
+
|
|
3023
|
+
@include kendo-core--styles();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-theme-core",
|
|
3
3
|
"description": "A collection of functions and mixins used for building themes for Kendo UI",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.4-dev.0",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"prepublishOnly": "node ../../scripts/themes-prepublish.js",
|
|
40
40
|
"postpublish": "echo 'no postpublish for core theme'"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "15583e94f67633d6680efd66700436332e389175"
|
|
43
43
|
}
|
package/scss/all.scss
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
///
|
|
4
|
-
.k-sr-only
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
@mixin kendo-core--styles--accessibility() {
|
|
2
|
+
|
|
3
|
+
/// This class could be assigned to elements which should be visually hidden, but remain accessible for screen readers.
|
|
4
|
+
/// @name .k-sr-only
|
|
5
|
+
/// @group accessibility
|
|
6
|
+
.k-sr-only {
|
|
7
|
+
position: absolute;
|
|
8
|
+
left: -1px;
|
|
9
|
+
width: 1px;
|
|
10
|
+
height: 1px;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
10
14
|
}
|
package/scss/styles/_layout.scss
CHANGED
|
@@ -1,91 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
@mixin kendo-core--styles--layout() {
|
|
2
|
+
|
|
3
|
+
// Basic layout
|
|
4
|
+
.k-hstack {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-flow: row nowrap;
|
|
7
|
+
}
|
|
8
|
+
.k-vstack {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-flow: column nowrap;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Spacer
|
|
14
|
+
.k-spacer {
|
|
15
|
+
flex: 1 1 auto;
|
|
16
|
+
}
|
|
17
|
+
.k-spacer-sized {
|
|
18
|
+
flex: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// Float wrap
|
|
23
|
+
.k-float-wrap::after {
|
|
24
|
+
content: "";
|
|
25
|
+
display: block;
|
|
26
|
+
clear: both;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
// Stack layout
|
|
31
|
+
.k-stack-layout {}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
// Flex layout
|
|
35
|
+
.k-flex-layout {
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
// Grid layout
|
|
41
|
+
.k-grid-layout {
|
|
42
|
+
display: grid;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
// Separator
|
|
47
|
+
.k-separator {
|
|
48
|
+
width: auto;
|
|
49
|
+
height: 0;
|
|
50
|
+
border-width: 1px 0 0;
|
|
51
|
+
border-style: solid;
|
|
52
|
+
border-color: inherit;
|
|
53
|
+
display: block;
|
|
54
|
+
flex-grow: 0 !important; // sass-lint:disable-line no-important
|
|
55
|
+
flex-shrink: 0 !important; // sass-lint:disable-line no-important
|
|
56
|
+
align-self: stretch;
|
|
57
|
+
}
|
|
58
|
+
.k-separator-horizontal,
|
|
59
|
+
.k-vstack > .k-separator {
|
|
60
|
+
width: auto;
|
|
61
|
+
height: 0;
|
|
62
|
+
border-width: 1px 0 0;
|
|
63
|
+
}
|
|
64
|
+
.k-separator-vertical,
|
|
65
|
+
.k-hstack > .k-separator {
|
|
66
|
+
width: 0;
|
|
67
|
+
height: auto;
|
|
68
|
+
border-width: 0 0 0 1px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
hr.k-separator {
|
|
72
|
+
margin: 0;
|
|
73
|
+
padding: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// Hidden
|
|
78
|
+
.k-hidden {
|
|
79
|
+
display: none !important; // sass-lint:disable-line no-important
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// RTL
|
|
84
|
+
.k-rtl {
|
|
85
|
+
direction: rtl;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
// Legacy aliases
|
|
90
|
+
.k-hbox { @extend .k-hstack !optional; }
|
|
91
|
+
.k-vbox { @extend .k-vstack !optional; }
|
|
92
|
+
.k-floatwrap { @extend .k-float-wrap !optional; }
|
|
93
|
+
.k-flex { @extend .k-spacer !optional; }
|
|
19
94
|
|
|
20
|
-
// Float wrap
|
|
21
|
-
.k-float-wrap::after {
|
|
22
|
-
content: "";
|
|
23
|
-
display: block;
|
|
24
|
-
clear: both;
|
|
25
95
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// Stack layout
|
|
29
|
-
.k-stack-layout {}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// Flex layout
|
|
33
|
-
.k-flex-layout {
|
|
34
|
-
display: flex;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// Grid layout
|
|
39
|
-
.k-grid-layout {
|
|
40
|
-
display: grid;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
// Separator
|
|
45
|
-
.k-separator {
|
|
46
|
-
width: auto;
|
|
47
|
-
height: 0;
|
|
48
|
-
border-width: 1px 0 0;
|
|
49
|
-
border-style: solid;
|
|
50
|
-
border-color: inherit;
|
|
51
|
-
display: block;
|
|
52
|
-
flex-grow: 0 !important; // sass-lint:disable-line no-important
|
|
53
|
-
flex-shrink: 0 !important; // sass-lint:disable-line no-important
|
|
54
|
-
align-self: stretch;
|
|
55
|
-
}
|
|
56
|
-
.k-separator-horizontal,
|
|
57
|
-
.k-vstack > .k-separator {
|
|
58
|
-
width: auto;
|
|
59
|
-
height: 0;
|
|
60
|
-
border-width: 1px 0 0;
|
|
61
|
-
}
|
|
62
|
-
.k-separator-vertical,
|
|
63
|
-
.k-hstack > .k-separator {
|
|
64
|
-
width: 0;
|
|
65
|
-
height: auto;
|
|
66
|
-
border-width: 0 0 0 1px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
hr.k-separator {
|
|
70
|
-
margin: 0;
|
|
71
|
-
padding: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
// Hidden
|
|
76
|
-
.k-hidden {
|
|
77
|
-
display: none !important; // sass-lint:disable-line no-important
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
// RTL
|
|
82
|
-
.k-rtl {
|
|
83
|
-
direction: rtl;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
// Legacy aliases
|
|
88
|
-
.k-hbox { @extend .k-hstack !optional; }
|
|
89
|
-
.k-vbox { @extend .k-vstack !optional; }
|
|
90
|
-
.k-floatwrap { @extend .k-float-wrap !optional; }
|
|
91
|
-
.k-flex { @extend .k-spacer !optional; }
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
@mixin kendo-core--styles--normalize() {
|
|
2
|
+
|
|
3
|
+
// Hidden attribute
|
|
4
|
+
[hidden] {
|
|
5
|
+
display: none !important; // sass-lint:disable-line no-important
|
|
6
|
+
}
|
|
7
|
+
|
|
5
8
|
|
|
9
|
+
// Hide script tags
|
|
10
|
+
// see https://github.com/telerik/kendo-themes/issues/2360
|
|
11
|
+
script {
|
|
12
|
+
display: none !important; // sass-lint:disable-line no-important
|
|
13
|
+
}
|
|
6
14
|
|
|
7
|
-
// Hide script tags
|
|
8
|
-
// see https://github.com/telerik/kendo-themes/issues/2360
|
|
9
|
-
script {
|
|
10
|
-
display: none !important; // sass-lint:disable-line no-important
|
|
11
15
|
}
|
|
@@ -2,3 +2,11 @@
|
|
|
2
2
|
@import "./_asp-fallback.scss";
|
|
3
3
|
@import "./_layout";
|
|
4
4
|
@import "./_normalize.scss";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
@mixin kendo-core--styles() {
|
|
8
|
+
@include kendo-core--styles--accessibility();
|
|
9
|
+
@include kendo-core--styles--asp-fallback();
|
|
10
|
+
@include kendo-core--styles--layout();
|
|
11
|
+
@include kendo-core--styles--normalize();
|
|
12
|
+
}
|