@c8y/style 1023.62.2 → 1023.63.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/style",
3
- "version": "1023.62.2",
3
+ "version": "1023.63.1",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity GmbH",
6
6
  "description": "Styles for Cumulocity IoT applications",
@@ -1,12 +1,13 @@
1
- @import '../../../../variables/_dlt-c8y-icons-vars.less';
2
- @import '../../../animations/_component-animations.less';
3
- @import '../../../core/buttons/_buttons.less';
4
- @import '../../../mixins/_tab-focus.less';
1
+
2
+ @import "../../../../variables/_dlt-c8y-icons-vars.less";
3
+ @import "../../../animations/_component-animations.less";
4
+ @import "../../../core/buttons/_buttons.less";
5
+ @import "../../../mixins/_tab-focus.less";
5
6
 
6
7
  /**
7
8
  * C8Y List Group - Modern list component with flexible layouts
8
9
  *
9
- * Note: Uses @size-* tokens for spacing; @size-base for calculations, and @component-padding.
10
+ * Note: Uses @size-* tokens for spacing, @size-base for calculations, and @component-padding.
10
11
  *
11
12
  * Intentionally hardcoded values:
12
13
  * - Off-token spacing (6px): Triangle and badge offsets not in token system
@@ -66,7 +67,7 @@
66
67
  &.highlighted {
67
68
  background-color: var(--brand-80, var(--c8y-brand-80));
68
69
  }
69
- &.selected {
70
+ &.selected{
70
71
  border-left: @size-4 solid @component-color-active;
71
72
  background-color: @component-background-default;
72
73
  }
@@ -76,15 +77,14 @@
76
77
  outline-offset: -2px;
77
78
  border-radius: @component-border-radius-focus !important;
78
79
  }
79
- bs-dropdown-container &,
80
- c8y-typeahead .dropdown &,
81
- .c8y-select-v2 .dropdown & {
80
+ bs-dropdown-container &, c8y-typeahead .dropdown &, .c8y-select-v2 .dropdown & {
82
81
  &.active,
83
82
  &.selectable:not(:has(c8y-li-checkbox)):active {
84
83
  color: @component-color-active;
85
84
 
86
85
  .c8y-list__item__body {
87
- &:after {
86
+
87
+ &:after{
88
88
  display: inline-block;
89
89
  text-transform: none;
90
90
  font-weight: normal;
@@ -96,7 +96,7 @@
96
96
  -moz-osx-font-smoothing: grayscale;
97
97
 
98
98
  float: right;
99
- content: @dlt-c8y-icon-check;
99
+ content: @dlt-c8y-icon-check;
100
100
  font-size: 18px;
101
101
  }
102
102
  }
@@ -106,8 +106,7 @@
106
106
  * @Carlos: There are items that are not selectable that
107
107
  * don't get that class. E.g. the "No results found" item.
108
108
  **/
109
- &.selectable:hover:not(.active),
110
- &.highlighted {
109
+ &.selectable:hover:not(.active), &.highlighted {
111
110
  background-color: @component-background-hover;
112
111
  }
113
112
 
@@ -117,30 +116,35 @@
117
116
  border-radius: @component-border-radius-focus !important;
118
117
  }
119
118
  }
120
-
121
- &.selectable.active {
119
+ &.empty-actions{
122
120
  .c8y-list__item__body {
123
- &:after {
121
+ padding-right: 0 !important;
122
+ margin-right: 40px;
123
+ }
124
+ }
125
+ &.selectable.active{
126
+ .c8y-list__item__body {
127
+ &:after{
124
128
  display: inline-block;
125
129
  text-transform: none;
126
130
  font-weight: normal;
127
131
  font-style: normal;
128
132
  font-variant: normal;
129
- font-family: 'dlt-c8y-icons' !important;
133
+ font-family: "dlt-c8y-icons" !important;
130
134
  line-height: 1;
131
135
  -webkit-font-smoothing: antialiased;
132
136
  -moz-osx-font-smoothing: grayscale;
133
137
 
134
138
  float: right;
135
- content: @dlt-c8y-icon-check;
139
+ content: @dlt-c8y-icon-check;
136
140
  }
137
141
  }
138
142
  color: @component-color-active;
139
143
  }
140
- &:not(.selectable) {
144
+ &:not(.selectable){
141
145
  transition: border-left 0.15s linear;
142
146
  }
143
- &.active:not(.selectable) {
147
+ &.active:not(.selectable){
144
148
  border-left: @size-4 solid @component-color-active;
145
149
  }
146
150
 
@@ -173,7 +177,7 @@
173
177
  }
174
178
  &--overflow-visible {
175
179
  .c8y-list__item__body {
176
- overflow: visible !important;
180
+ overflow: visible!important;
177
181
  }
178
182
  }
179
183
 
@@ -208,15 +212,16 @@
208
212
 
209
213
  // hide collapse-btn when displaying in a modal for instance
210
214
  &--no-expand {
211
- > div > .c8y-list__item__block > .c8y-list__item__actions > .collapse-btn {
215
+ > div > .c8y-list__item__block > .c8y-list__item__actions >
216
+ .collapse-btn {
212
217
  display: none;
213
218
  pointer-events: none;
214
219
  }
215
220
  }
216
- &__btn {
221
+ &__btn{
217
222
  .btn-clean();
218
223
  white-space: normal;
219
- &:focus {
224
+ &:focus{
220
225
  outline: none;
221
226
  }
222
227
  }
@@ -235,6 +240,7 @@
235
240
  }
236
241
  }
237
242
 
243
+
238
244
  &--pulse {
239
245
  .component-pulse();
240
246
  }
@@ -282,19 +288,16 @@ c8y-load-more.c8y-list__item {
282
288
  background-color: inherit;
283
289
  }
284
290
 
285
- c8y-li-drag-handle,
286
- c8y-list-item-drag-handle {
291
+ c8y-li-drag-handle, c8y-list-item-drag-handle {
287
292
  display: flex;
288
293
  align-items: center;
289
294
  align-self: stretch;
290
295
  flex-shrink: 0;
291
296
  max-width: 0;
292
- padding-left: @margin-4;
293
297
  overflow: hidden;
294
298
  transition: all 0.25s ease;
295
299
 
296
- c8y-li-drag-handle,
297
- c8y-list-item-drag-handle {
300
+ c8y-li-drag-handle, c8y-list-item-drag-handle {
298
301
  padding: 0 !important;
299
302
  cursor: move;
300
303
  max-width: fit-content !important;
@@ -308,7 +311,7 @@ c8y-list-item-drag-handle {
308
311
  }
309
312
  }
310
313
 
311
- + c8y-li-checkbox {
314
+ + c8y-li-checkbox{
312
315
  padding-left: 0;
313
316
  }
314
317
  .cdk-drag-disabled & {
@@ -324,7 +327,7 @@ c8y-list-item-drag-handle {
324
327
  }
325
328
 
326
329
  .no-card-context {
327
- .c8y-list__item {
330
+ .c8y-list__item{
328
331
  c8y-li-drag-handle:not(.cdk-drag-disabled) + * {
329
332
  padding-left: 0;
330
333
  }
@@ -335,14 +338,15 @@ c8y-list-item-drag-handle {
335
338
  }
336
339
  }
337
340
 
338
- .c8y-list__item:not(:has(.c8y-list__item)):hover {
341
+ .c8y-list__item:hover {
339
342
  c8y-li-drag-handle:not(:empty) {
340
- // max-width: 16px;
341
- overflow: visible;
343
+ max-width: 100px;
344
+ padding-left: @size-8;
342
345
  }
343
346
 
344
347
  c8y-list-item-drag-handle:not(:empty) {
345
- overflow: visible;
348
+ max-width: 100px;
349
+ padding-left: @size-8;
346
350
  }
347
351
  }
348
352
 
@@ -403,9 +407,7 @@ c8y-list-item-drag-handle {
403
407
  .c8y-list__item__colorpicker,
404
408
  .c8y-list__item__actions {
405
409
  min-height: 56px;
406
- bs-dropdown-container &,
407
- c8y-typeahead .dropdown &,
408
- .c8y-list__item--dense & {
410
+ bs-dropdown-container &, c8y-typeahead .dropdown &, .c8y-list__item--dense & {
409
411
  min-height: 36px;
410
412
  padding-top: @size-base;
411
413
  padding-bottom: @size-base;
@@ -419,11 +421,11 @@ c8y-list-item-drag-handle {
419
421
  * @Carlos: Would be nice to not only have the dense class
420
422
  * pm the list but also on the list items if [dense] is set.
421
423
  **/
422
- .dropdown-menu &,
423
- .c8y-list__item--dense & {
424
+ .dropdown-menu &, .c8y-list__item--dense & {
424
425
  padding-top: @size-base;
425
426
  padding-bottom: @size-base;
426
427
  }
428
+
427
429
  }
428
430
 
429
431
  .card,
@@ -440,14 +442,14 @@ c8y-list-item-drag-handle {
440
442
  padding-bottom: 7px;
441
443
  }
442
444
 
445
+ .c8y-list__item__actions {
446
+ padding-top: 0;
447
+ padding-bottom: 0;
448
+ }
449
+
443
450
  .c8y-list__item__body {
444
- padding-top: 10px;
445
- padding-bottom: 10px;
446
- &:has(.btn, .c8y-dropdown) {
447
- padding-top: 6px;
448
- padding-bottom: 6px;
449
- overflow: visible !important;
450
- }
451
+ padding-top: @size-10;
452
+ padding-bottom: @size-10;
451
453
  }
452
454
  }
453
455
 
@@ -521,7 +523,7 @@ c8y-list-item-drag-handle {
521
523
  > * {
522
524
  padding: 0.5rem 0 0 0;
523
525
  }
524
- > c8y-li-footer {
526
+ > c8y-li-footer{
525
527
  width: 100%;
526
528
  }
527
529
  }
@@ -535,7 +537,7 @@ c8y-list-item-drag-handle {
535
537
  @media (min-width: @screen-md-min) {
536
538
  padding: @component-padding calc(@size-48 + 6px) 2rem;
537
539
  }
538
- .full-w-collapse & {
540
+ .full-w-collapse &{
539
541
  padding: @component-padding;
540
542
  }
541
543
  }
@@ -550,17 +552,17 @@ c8y-list-item-drag-handle {
550
552
  }
551
553
  }
552
554
 
553
- .c8y-list__item--sticky-top {
554
- .c8y-list__item__block {
555
+ .c8y-list__item--sticky-top{
556
+ .c8y-list__item__block{
555
557
  position: sticky;
556
558
  top: 0;
557
559
  z-index: 10;
558
560
  background-color: inherit;
559
- &:has(.dropdown.open) {
561
+ &:has(.dropdown.open){
560
562
  z-index: 11;
561
563
  }
562
564
  }
563
- .c8y-list__item__collapse--container {
565
+ .c8y-list__item__collapse--container{
564
566
  position: relative;
565
567
  z-index: 8;
566
568
  }
@@ -570,7 +572,7 @@ c8y-list-item-drag-handle {
570
572
  .c8y-list--timeline {
571
573
  box-shadow: none;
572
574
  // --c8y-component-background-default: @palette-high;
573
- > .c8y-list--timeline__item {
575
+ >.c8y-list--timeline__item {
574
576
  &:first-child::before {
575
577
  top: 50%;
576
578
  }
@@ -583,8 +585,7 @@ c8y-list-item-drag-handle {
583
585
  position: relative;
584
586
  align-items: center;
585
587
  box-shadow: none;
586
- &:focus-within,
587
- &:has(.dropdown.open) {
588
+ &:focus-within, &:has(.dropdown.open) {
588
589
  z-index: 10;
589
590
  }
590
591
  &::after {
@@ -717,7 +718,7 @@ c8y-list-item-drag-handle {
717
718
  z-index: 10;
718
719
  }
719
720
 
720
- &:not(:has(> button))::before {
721
+ &:not(:has(>button))::before {
721
722
  position: absolute;
722
723
  top: 50%;
723
724
  left: calc(-1 * @size-10);
@@ -731,7 +732,7 @@ c8y-list-item-drag-handle {
731
732
  transition: border-color 0.15s linear !important;
732
733
  }
733
734
 
734
- &:not(:has(> button))::after {
735
+ &:not(:has(>button))::after {
735
736
  position: absolute;
736
737
  top: 50%;
737
738
  left: calc(-1 * @size-8);
@@ -117,7 +117,12 @@
117
117
  border-radius: $component-border-radius-focus !important;
118
118
  }
119
119
  }
120
-
120
+ &.empty-actions{
121
+ .c8y-list__item__body {
122
+ padding-right: 0 !important;
123
+ margin-right: 40px;
124
+ }
125
+ }
121
126
  &.selectable.active{
122
127
  .c8y-list__item__body {
123
128
  &:after{