@progress/kendo-theme-core 5.10.1-dev.1 → 5.10.1-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 +74 -0
- package/dist/all.scss +2815 -0
- package/package.json +2 -2
- package/scss/functions/_color-manipulation.import.scss +6 -0
- package/scss/functions/_color.import.scss +4 -0
- package/scss/functions/_lang.import.scss +3 -0
- package/scss/functions/_list.import.scss +4 -0
- package/scss/functions/index.import.scss +1 -0
- package/scss/index.import.scss +5 -0
- package/scss/mixins/_border-radius.scss +58 -0
- package/scss/mixins/_box-shadow.scss +5 -0
- package/scss/mixins/_data-uri.scss +17 -0
- package/scss/mixins/_disabled.scss +18 -0
- package/scss/mixins/_gradient.scss +36 -0
- package/scss/mixins/_hide-scrollbar.scss +18 -0
- package/scss/mixins/_import-once.scss +14 -0
- package/scss/mixins/_typography.scss +7 -0
- package/scss/mixins/index.import.scss +21 -0
- package/scss/module-system/_components.scss +141 -0
- package/scss/module-system/_dependencies.scss +477 -0
- package/scss/module-system/index.import.scss +48 -0
- package/scss/styles/_accessibility.scss +10 -0
- package/scss/styles/_asp-fallback.scss +4 -0
- package/scss/styles/_layout.scss +56 -0
- package/scss/styles/_normalize.scss +11 -0
- package/scss/styles/index.import.scss +4 -0
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": "5.10.1-dev.
|
|
4
|
+
"version": "5.10.1-dev.2",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"sass-build": "^1.0.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "02863aedd51b707c27514b6c7c336052a3dc55c7"
|
|
43
43
|
}
|
|
@@ -65,6 +65,12 @@ $kendo-color-level-step: 8% !default;
|
|
|
65
65
|
@return k-color-lighten( $color, $amount );
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
@function k-rgba-to-mix( $color, $bg ) {
|
|
69
|
+
$percent: k-color-alpha( $color ) * 100%;
|
|
70
|
+
|
|
71
|
+
@return k-color-mix( rgba( $color, 1 ), $bg, $percent );
|
|
72
|
+
}
|
|
73
|
+
|
|
68
74
|
// TODO: Remove this function or rethink the logic
|
|
69
75
|
@function k-true-mix( $color1, $color2, $weight: 50% ) {
|
|
70
76
|
@return k-color-mix( rgba( $color1, 1 ), rgba( $color2, 1 ), $weight );
|
package/scss/index.import.scss
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// Border radius
|
|
2
|
+
@mixin border-radius( $radius: null ) {
|
|
3
|
+
@if $enable-rounded {
|
|
4
|
+
border-radius: $radius;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@mixin border-top-radius( $radius: null ) {
|
|
9
|
+
@if $enable-rounded {
|
|
10
|
+
border-top-left-radius: $radius;
|
|
11
|
+
border-top-right-radius: $radius;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin border-right-radius( $radius: null ) {
|
|
16
|
+
@if $enable-rounded {
|
|
17
|
+
border-top-right-radius: $radius;
|
|
18
|
+
border-bottom-right-radius: $radius;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin border-bottom-radius( $radius: null ) {
|
|
23
|
+
@if $enable-rounded {
|
|
24
|
+
border-bottom-right-radius: $radius;
|
|
25
|
+
border-bottom-left-radius: $radius;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin border-left-radius( $radius: null ) {
|
|
30
|
+
@if $enable-rounded {
|
|
31
|
+
border-top-left-radius: $radius;
|
|
32
|
+
border-bottom-left-radius: $radius;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@mixin border-top-radius-only( $radius: null ) {
|
|
37
|
+
@if $enable-rounded {
|
|
38
|
+
border-radius: $radius $radius 0 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@mixin border-right-radius-only( $radius: null ) {
|
|
43
|
+
@if $enable-rounded {
|
|
44
|
+
border-radius: 0 $radius $radius 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@mixin border-bottom-radius-only( $radius: null ) {
|
|
49
|
+
@if $enable-rounded {
|
|
50
|
+
border-radius: 0 0 $radius $radius;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@mixin border-left-radius-only( $radius: null ) {
|
|
55
|
+
@if $enable-rounded {
|
|
56
|
+
border-radius: $radius 0 0 $radius;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// A list of files converted to data URIs
|
|
2
|
+
/// @access private
|
|
3
|
+
$data-uris: () !default;
|
|
4
|
+
|
|
5
|
+
/// Saves a data URI that can be used from the $data-uris map instead of a file reference.
|
|
6
|
+
/// @access private
|
|
7
|
+
/// @param {String} $name - The name of the resource.
|
|
8
|
+
/// @param {String} $content - The data URI of the resource.
|
|
9
|
+
/// @require $data-uris
|
|
10
|
+
@mixin register-data-uri( $name, $content ) {
|
|
11
|
+
@if ( k-map-has-key( $data-uris, $name ) ) {
|
|
12
|
+
// sass-lint:disable-block no-warn
|
|
13
|
+
@warn "Attempt to redefine data URI of file `#{$name}`.";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
$data-uris: k-map-merge( $data-uris, ( $name: $content ) ) !global;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$disabled-styling: () !default;
|
|
2
|
+
|
|
3
|
+
// Disabled
|
|
4
|
+
@mixin disabled( $disabled-styling ) {
|
|
5
|
+
outline: none;
|
|
6
|
+
cursor: default;
|
|
7
|
+
opacity: k-map-get($disabled-styling, opacity);
|
|
8
|
+
filter: k-map-get($disabled-styling, filter);
|
|
9
|
+
pointer-events: none;
|
|
10
|
+
box-shadow: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin disabled-legacy-ie( $disabled-styling ) {
|
|
14
|
+
outline: none;
|
|
15
|
+
cursor: default;
|
|
16
|
+
opacity: k-map-get($disabled-styling, opacity);
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@mixin linear-gradient( $gradient: null ) {
|
|
2
|
+
@if $gradient and $enable-gradients {
|
|
3
|
+
@if $gradient == none {
|
|
4
|
+
background-image: none;
|
|
5
|
+
} @else {
|
|
6
|
+
background-image: linear-gradient( $gradient );
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin striped-gradient( $color: rgba( white, .15 ), $angle: 45deg ) {
|
|
12
|
+
background-image: linear-gradient( $angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent );
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin repeating-striped-gradient( $color: rgba( white, .15), $background: white, $angle: 45deg, $large-step: 2px, $small-step: 1px ) {
|
|
16
|
+
background-image: repeating-linear-gradient( $angle, $background, $background $small-step, $color $small-step, $color $large-step );
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@mixin checkerboard-gradient( $primary-color: white, $secondary-color: rgba( black, .09 ), $size: 10px ) {
|
|
20
|
+
// sass-lint:disable-block indentation
|
|
21
|
+
$_position: calc( #{$size} / 2 );
|
|
22
|
+
|
|
23
|
+
background:
|
|
24
|
+
linear-gradient( 45deg, $secondary-color 25%, transparent 25%, transparent 75%, $secondary-color 75%, $secondary-color ),
|
|
25
|
+
linear-gradient( 45deg, $secondary-color 25%, transparent 25%, transparent 75%, $secondary-color 75%, $secondary-color ),
|
|
26
|
+
$primary-color;
|
|
27
|
+
background-repeat: repeat, repeat;
|
|
28
|
+
background-position: 0px 0px, $_position $_position;
|
|
29
|
+
transform-origin: 0 0 0;
|
|
30
|
+
background-origin: padding-box, padding-box;
|
|
31
|
+
background-size: $size $size, $size $size;
|
|
32
|
+
box-shadow: none;
|
|
33
|
+
text-shadow: none;
|
|
34
|
+
transition: none;
|
|
35
|
+
transform: scaleX(1) scaleY(1) scaleZ(1);
|
|
36
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
$default-scrollbar-width: 17px !default;
|
|
2
|
+
|
|
3
|
+
@mixin hide-scrollbar( $dir: "right", $max-scrollbar: 100px ) {
|
|
4
|
+
// anything larger than the scrollbar width will do
|
|
5
|
+
$scrollbar-size: var( --kendo-scrollbar-width, #{$default-scrollbar-width} );
|
|
6
|
+
$margin: calc( -#{$max-scrollbar} - #{$scrollbar-size} );
|
|
7
|
+
|
|
8
|
+
padding-right: $max-scrollbar;
|
|
9
|
+
padding-left: $max-scrollbar;
|
|
10
|
+
|
|
11
|
+
@if ( $dir == "right" ) {
|
|
12
|
+
margin-left: -$max-scrollbar;
|
|
13
|
+
margin-right: $margin;
|
|
14
|
+
} @else {
|
|
15
|
+
margin-left: $margin;
|
|
16
|
+
margin-right: -$max-scrollbar;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// A list of exported modules.
|
|
2
|
+
/// @access private
|
|
3
|
+
$imported-modules: () !default;
|
|
4
|
+
|
|
5
|
+
/// Outputs a module once, no matter how many times it is included.
|
|
6
|
+
/// @access public
|
|
7
|
+
/// @param {String} $name - The name of the exported module.
|
|
8
|
+
/// @require $imported-modules
|
|
9
|
+
@mixin exports( $name ) {
|
|
10
|
+
@if (k-list-index( $imported-modules, $name ) == null) {
|
|
11
|
+
$imported-modules: k-list-append( $imported-modules, $name ) !global;
|
|
12
|
+
@content;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@mixin typography( $font-size: null, $font-family: null, $line-height: null, $font-weight: null, $letter-spacing: null ) {
|
|
2
|
+
font-size: $font-size;
|
|
3
|
+
font-family: $font-family;
|
|
4
|
+
line-height: $line-height;
|
|
5
|
+
font-weight: $font-weight;
|
|
6
|
+
letter-spacing: $letter-spacing;
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@import "./_border-radius.scss";
|
|
2
|
+
@import "./_box-shadow.scss";
|
|
3
|
+
@import "./_data-uri.scss";
|
|
4
|
+
@import "./_disabled.scss";
|
|
5
|
+
@import "./_gradient.scss";
|
|
6
|
+
@import "./_hide-scrollbar.scss";
|
|
7
|
+
@import "./_import-once.scss";
|
|
8
|
+
@import "./_typography.scss";
|
|
9
|
+
|
|
10
|
+
@mixin fill( $color: null, $bg: null, $border: null, $gradient: null ) {
|
|
11
|
+
border-color: $border;
|
|
12
|
+
color: $color;
|
|
13
|
+
background-color: $bg;
|
|
14
|
+
@include linear-gradient( $gradient );
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@mixin background-image( $background-image: null ) {
|
|
18
|
+
@if $background-image {
|
|
19
|
+
background-image: url(#{$background-image});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
$kendo-components: (
|
|
2
|
+
// Typography and utils
|
|
3
|
+
"typography",
|
|
4
|
+
"utils",
|
|
5
|
+
"cursor",
|
|
6
|
+
"draggable",
|
|
7
|
+
|
|
8
|
+
// Generic content
|
|
9
|
+
"table",
|
|
10
|
+
"icon",
|
|
11
|
+
"chip",
|
|
12
|
+
"messagebox",
|
|
13
|
+
|
|
14
|
+
// Primitive components
|
|
15
|
+
"input",
|
|
16
|
+
"list",
|
|
17
|
+
"listgroup",
|
|
18
|
+
"overlay",
|
|
19
|
+
"ripple",
|
|
20
|
+
"virtual-scroller",
|
|
21
|
+
|
|
22
|
+
// Indicators
|
|
23
|
+
"avatar",
|
|
24
|
+
"badge",
|
|
25
|
+
"color-preview",
|
|
26
|
+
"loader",
|
|
27
|
+
"skeleton",
|
|
28
|
+
"tooltip",
|
|
29
|
+
|
|
30
|
+
// Native forms
|
|
31
|
+
"button",
|
|
32
|
+
"split-button",
|
|
33
|
+
"menu-button",
|
|
34
|
+
"textbox",
|
|
35
|
+
"textarea",
|
|
36
|
+
"checkbox",
|
|
37
|
+
"listbox",
|
|
38
|
+
"progressbar",
|
|
39
|
+
"radio",
|
|
40
|
+
"slider",
|
|
41
|
+
|
|
42
|
+
// Form helpers
|
|
43
|
+
"form",
|
|
44
|
+
"validator",
|
|
45
|
+
"floating-label",
|
|
46
|
+
|
|
47
|
+
// Form requirements
|
|
48
|
+
"calendar",
|
|
49
|
+
"popup",
|
|
50
|
+
"time-selector",
|
|
51
|
+
|
|
52
|
+
// Augmented inputs
|
|
53
|
+
"autocomplete",
|
|
54
|
+
"captcha",
|
|
55
|
+
"color-palette",
|
|
56
|
+
"color-gradient",
|
|
57
|
+
"color-editor",
|
|
58
|
+
"color-picker",
|
|
59
|
+
"combobox",
|
|
60
|
+
"date-input",
|
|
61
|
+
"date-picker",
|
|
62
|
+
"time-picker",
|
|
63
|
+
"date-time-picker",
|
|
64
|
+
"date-range-picker",
|
|
65
|
+
"dropdown-grid",
|
|
66
|
+
"dropdown-list",
|
|
67
|
+
"dropdown-tree",
|
|
68
|
+
"masked-textbox",
|
|
69
|
+
"multiselect",
|
|
70
|
+
"numeric-textbox",
|
|
71
|
+
"rating",
|
|
72
|
+
"searchbox",
|
|
73
|
+
"switch",
|
|
74
|
+
"upload",
|
|
75
|
+
"dropzone",
|
|
76
|
+
|
|
77
|
+
// Command interfaces
|
|
78
|
+
"actions",
|
|
79
|
+
"appbar",
|
|
80
|
+
"fab",
|
|
81
|
+
"menu",
|
|
82
|
+
"toolbar",
|
|
83
|
+
|
|
84
|
+
// Popups and modals
|
|
85
|
+
"action-sheet",
|
|
86
|
+
"dialog",
|
|
87
|
+
"drawer",
|
|
88
|
+
"notification",
|
|
89
|
+
"popover",
|
|
90
|
+
"responsive-panel",
|
|
91
|
+
"window",
|
|
92
|
+
|
|
93
|
+
// Navigation
|
|
94
|
+
"bottom-navigation",
|
|
95
|
+
"breadcrumb",
|
|
96
|
+
"pager",
|
|
97
|
+
"stepper",
|
|
98
|
+
"tabstrip",
|
|
99
|
+
"treeview",
|
|
100
|
+
"wizard",
|
|
101
|
+
|
|
102
|
+
// Layout & containers
|
|
103
|
+
"card",
|
|
104
|
+
"expander",
|
|
105
|
+
"panelbar",
|
|
106
|
+
"splitter",
|
|
107
|
+
"tile-layout",
|
|
108
|
+
|
|
109
|
+
// Data management
|
|
110
|
+
"grid",
|
|
111
|
+
"listview",
|
|
112
|
+
"spreadsheet",
|
|
113
|
+
"pivotgrid",
|
|
114
|
+
"treelist",
|
|
115
|
+
"filter",
|
|
116
|
+
"file-manager",
|
|
117
|
+
"task-board",
|
|
118
|
+
|
|
119
|
+
// Editors
|
|
120
|
+
"editor",
|
|
121
|
+
"image-editor",
|
|
122
|
+
|
|
123
|
+
// Scheduling
|
|
124
|
+
"gantt",
|
|
125
|
+
"scheduler",
|
|
126
|
+
|
|
127
|
+
// Misc
|
|
128
|
+
"adaptive",
|
|
129
|
+
"chat",
|
|
130
|
+
"media-player",
|
|
131
|
+
"timeline",
|
|
132
|
+
"pdf-viewer",
|
|
133
|
+
"scroller",
|
|
134
|
+
"scroll-view",
|
|
135
|
+
|
|
136
|
+
// Dataviz
|
|
137
|
+
"dataviz",
|
|
138
|
+
"map",
|
|
139
|
+
"orgchart",
|
|
140
|
+
"signature"
|
|
141
|
+
) !default;
|