@progress/kendo-theme-core 14.5.1-dev.4 → 14.5.1-dev.6

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/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": "14.5.1-dev.4",
4
+ "version": "14.5.1-dev.6",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -0,0 +1,37 @@
1
+ @use "./_variables.scss" as *;
2
+ @use "../../spacing/index.scss" as *;
3
+ @use "../../typography/index.scss" as *;
4
+
5
+ @mixin kendo-floating-toolbar--layout-base() {
6
+
7
+ // Base
8
+ .k-floating-toolbar {
9
+ display: flex;
10
+ flex-direction: row;
11
+ align-items: stretch;
12
+ max-width: fit-content;
13
+ border-radius: $kendo-floating-toolbar-border-radius;
14
+
15
+ .k-toolbar {
16
+ flex: 1 1 auto;
17
+ min-width: 0;
18
+ border-width: 0;
19
+ border-radius: inherit;
20
+ }
21
+ .k-floating-toolbar-drag-handle {
22
+ display: inline-flex;
23
+ flex: none;
24
+ align-items: center;
25
+ justify-content: center;
26
+ margin-inline: k-spacing(2.5);
27
+ padding-inline: k-spacing(1);
28
+ padding-block: k-spacing(2.5);
29
+ cursor: move;
30
+ }
31
+
32
+ > .k-separator-vertical {
33
+ align-self: center;
34
+ height: $kendo-line-height-em;
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,52 @@
1
+ @use "../../mixins/index.scss" as *;
2
+ @use "../../functions/index.scss" as *;
3
+ @use "../popup/_variables.scss" as *;
4
+ @use "../toolbar/_variables.scss" as *;
5
+
6
+ @mixin kendo-floating-toolbar--theme-base() {
7
+
8
+ .k-floating-toolbar {
9
+
10
+ // Solid
11
+ #{k-when-default($kendo-toolbar-default-fill-mode, "solid")}
12
+ &.k-floating-toolbar-solid {
13
+ @include fill(
14
+ $kendo-toolbar-text,
15
+ $kendo-toolbar-bg,
16
+ $kendo-toolbar-border,
17
+ $kendo-toolbar-gradient
18
+ );
19
+ @include box-shadow( $kendo-toolbar-shadow );
20
+ }
21
+
22
+ // Outline
23
+ #{k-when-default($kendo-toolbar-default-fill-mode, "outline")}
24
+ &.k-floating-toolbar-outline {
25
+ @include fill(
26
+ $kendo-toolbar-outline-text,
27
+ $kendo-popup-bg,
28
+ $kendo-toolbar-outline-border
29
+ );
30
+ @include box-shadow( $kendo-toolbar-outline-shadow );
31
+ }
32
+
33
+ // Flat
34
+ #{k-when-default($kendo-toolbar-default-fill-mode, "flat")}
35
+ &.k-floating-toolbar-flat {
36
+ @include fill(
37
+ $kendo-toolbar-flat-text,
38
+ $kendo-popup-bg,
39
+ $kendo-toolbar-flat-border
40
+ );
41
+ @include box-shadow( $kendo-toolbar-flat-shadow );
42
+ }
43
+
44
+ > .k-separator {
45
+ border-color: $kendo-toolbar-separator-border;
46
+ }
47
+
48
+ .k-toolbar {
49
+ box-shadow: none;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1 @@
1
+ $kendo-floating-toolbar-border-radius: null !default;
@@ -206,6 +206,7 @@
206
206
  position: absolute;
207
207
  inset-inline-end: $kendo-grid-header-menu-icon-spacing;
208
208
  z-index: k-z-index("base", 1);
209
+ -webkit-user-drag: none;
209
210
 
210
211
  &:hover {
211
212
  cursor: pointer;
@@ -348,10 +348,6 @@
348
348
 
349
349
  // Search (floating toolbar)
350
350
  .k-floating-toolbar {
351
- .k-search-dialog-draghandle {
352
- cursor: move;
353
- }
354
-
355
351
  .k-search-matches {
356
352
  display: inline-flex;
357
353
  gap: $kendo-pdf-viewer-search-panel-matches-spacing;
@@ -144,6 +144,11 @@
144
144
  justify-content: flex-start;
145
145
  flex: 1 1 auto;
146
146
  overflow: hidden;
147
+
148
+ // Items only get flex-shrink: 0 from the Toolbar's own "> *" rule when NOT wrapped in this scroll container.
149
+ > * {
150
+ flex-shrink: 0;
151
+ }
147
152
  }
148
153
 
149
154
  .k-toolbar-items-scroll {
@@ -271,16 +276,6 @@
271
276
  }
272
277
  }
273
278
 
274
- .k-floating-toolbar {
275
- max-width: fit-content;
276
- border-radius: $kendo-floating-toolbar-border-radius;
277
-
278
- .k-toolbar {
279
- border-width: 0;
280
- border-radius: inherit;
281
- }
282
- }
283
-
284
279
  .k-window-content:where(.editorToolbarWindow) { // stylelint-disable-line
285
280
  padding-block: $kendo-toolbar-md-padding-y !important; // stylelint-disable-line declaration-no-important
286
281
  padding-inline: $kendo-toolbar-md-padding-x !important; // stylelint-disable-line declaration-no-important
@@ -81,5 +81,3 @@ $kendo-toolbar-sizes: (
81
81
  separator-height: $kendo-toolbar-lg-separator-height
82
82
  )
83
83
  ) !default;
84
-
85
- $kendo-floating-toolbar-border-radius: null !default;