@c8y/style 1023.7.3 → 1023.10.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.7.3",
3
+ "version": "1023.10.1",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity GmbH",
6
6
  "description": "Styles for Cumulocity IoT applications",
@@ -163,37 +163,29 @@
163
163
  }
164
164
  }
165
165
 
166
- .btn-icon-dot{
166
+ .btn-icon-dot__item{
167
167
  display: flex;
168
- background: @component-background-default;
169
- color: @text-color;
170
168
  justify-content: center;
171
169
  align-items: center;
172
170
  aspect-ratio: 1;
173
171
  height: 100%;
174
- border-radius: 50%;
172
+ border-radius: @margin-16!important;
175
173
  border: 0;
176
174
  padding: 0;
177
- &:not(.active){
178
- background: var(--c8y-level-4);
179
- color: @text-muted;
180
- }
181
- &button:hover,
182
- &button:focus,
183
- &button:active {
184
- outline: 2px solid @component-brand-primary!important;
185
- outline-offset: -2px;
186
- }
175
+ font-size: @font-size-small;
176
+ background: var(--c8y-level-4);
177
+ color: @text-muted;
178
+
187
179
  &:not(button){
188
180
  height: 20px;
189
181
  }
190
- &.active,&:not(button){
191
- &.default{
182
+ &.standalone{
183
+ &.default{
192
184
  background: @component-background-default;
193
185
  color: @component-color-default;
194
186
  }
195
187
  &.auto-refresh{
196
- background: var(--c8y-brand-primary);
188
+ background: @component-pulse-color;
197
189
  color: var(--c8y-palette-high);
198
190
  }
199
191
  &.time-context{
@@ -207,6 +199,52 @@
207
199
  }
208
200
  }
209
201
 
202
+ .btn-icon-dot-set{
203
+ display: flex;
204
+ gap: 8px;
205
+ background-color: transparent;
206
+ background-image: none;
207
+ box-shadow: none;
208
+ text-align: left;
209
+ white-space: nowrap;
210
+ cursor: pointer;
211
+ touch-action: manipulation;
212
+ color: inherit;
213
+ max-width: 100%;
214
+ appearance: none;
215
+ -webkit-user-select: none;
216
+ user-select: none;
217
+ border: 1px solid @form-control-border-color-default;
218
+ border-radius: @margin-16!important;
219
+ font-size: @font-size-small;
220
+ padding: 5px @margin-8;
221
+ transition: all 0.25s ease;
222
+ &:hover,
223
+ &:focus,
224
+ &:active {
225
+ outline-offset: -2px;
226
+ outline: 2px solid @form-control-border-color-focus!important;
227
+ }
228
+ &.active{
229
+ .default{
230
+ background: @component-background-default;
231
+ color: @component-color-default;
232
+ }
233
+ .auto-refresh{
234
+ background: @component-pulse-color;
235
+ color: var(--c8y-palette-high);
236
+ }
237
+ .time-context{
238
+ background: @status-info;
239
+ color: var(--c8y-palette-high);
240
+ }
241
+ .aggregation{
242
+ background: var(--c8y-palette-status-warning-high);
243
+ color: var(--c8y-palette-gray-10);
244
+ }
245
+ }
246
+ }
247
+
210
248
  // spacing buttons outside btn-group
211
249
  .btn+.btn:not(.btn-block) {
212
250
  margin-left: @margin-base;
@@ -17,6 +17,7 @@
17
17
  background-color: @component-pulse-color;
18
18
  content: '';
19
19
  transform: rotateZ(360deg);
20
+ animation: c8ypulse 2s infinite;
20
21
  }
21
22
  &--md{
22
23
  width: @margin-16;
@@ -33,20 +33,7 @@
33
33
  clip: rect(0, 10000px, 2000px, 0);
34
34
  min-height: calc(@margin-base * 6);
35
35
  box-shadow: inset 0 -1px 0 0 @component-border-color, @header-shadow;
36
- &:has(.component-tabs) {
37
- box-shadow: inset 0 -1px 0 0 @component-border-color;
38
- .component-tabs {
39
- min-width: unset!important;
40
- padding: 0;
41
- &.nav-tabs > div, &.nav-tabs li{
42
- flex: 1;
43
- align-self: stretch;
44
- > a{
45
- height: 100%;
46
- }
47
- }
48
- }
49
- }
36
+
50
37
  &,
51
38
  &:after {
52
39
  .transition(left @open-menu-time-type);
@@ -83,6 +70,18 @@
83
70
  position: relative;
84
71
  }
85
72
 
73
+ c8y-widget-config-section{
74
+ .component-tabs{
75
+ min-width: unset!important;
76
+ > div, > li{
77
+ flex-shrink: 1;
78
+ .tab-description{
79
+ display: none;
80
+ }
81
+ }
82
+ }
83
+ }
84
+
86
85
  .tabs-slider {
87
86
  position: absolute;
88
87
  top: 0;
@@ -35,11 +35,13 @@
35
35
  // Wrapper for the tooltip content
36
36
  .tooltip-inner {
37
37
  padding: 3px 8px;
38
- max-width: @tooltip-max-width;
38
+ // max-width: @tooltip-max-width;
39
+ width: fit-content;
39
40
  border-radius: @tooltip-radius;
40
41
  background-color: @tooltip-background-default;
41
42
  color: @tooltip-color-default;
42
43
  text-align: center;
44
+ text-wrap: balance;
43
45
  white-space: pre-wrap;
44
46
  }
45
47