@c8y/style 1023.71.1 → 1023.76.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/helper-scripts/convert-scss-to-less.sh +15 -6
- package/img/event-list-widget.png +0 -0
- package/package.json +1 -1
- package/styles/components/data-display-and-visualization/lists/_c8y-list-group.less +2 -0
- package/styles/components/data-display-and-visualization/lists/_c8y-list-group.scss +2 -0
- package/styles/components/data-display-and-visualization/tables/_responsive-grid-table.less +189 -0
- package/styles/components/data-display-and-visualization/tables/_responsive-grid-table.scss +196 -0
- package/styles/components/data-input/_c8y-ai-chat.less +0 -1
- package/styles/components/navigation-and-layout/cards/_card-dashboard.less +2 -6
- package/styles/components/navigation-and-layout/cards/_card-dashboard.scss +1 -1
- package/styles/core/buttons/_button-groups.scss +1 -1
- package/styles/core/forms/_forms.scss +3 -0
- package/styles/core/forms/_input-groups.less +260 -147
- package/styles/core/forms/_input-groups.scss +259 -147
- package/styles/index.less +1 -0
- package/styles/index.scss +1 -0
- package/styles/mixins/_c8y-scrollbar.less +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
|
-
@use "../../../variables/index"
|
|
2
|
+
@use "../../../variables/index"as *;
|
|
3
3
|
@use "../../../variables/dlt-c8y-icons-vars";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -43,27 +43,31 @@
|
|
|
43
43
|
padding-left: 0;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.form-control
|
|
46
|
+
.form-control+.form-control {
|
|
47
47
|
margin-left: -1px;
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
|
|
50
|
+
>.form-control,
|
|
51
|
+
>.c8y-select-wrapper,
|
|
52
|
+
>.form-group,
|
|
53
|
+
>div[c8y-device-group-selector] {
|
|
53
54
|
position: relative;
|
|
54
55
|
z-index: 2;
|
|
55
56
|
flex: 1 1 auto;
|
|
56
57
|
margin-bottom: 0;
|
|
57
58
|
height: $form-control-height-base !important;
|
|
58
59
|
min-width: 0;
|
|
60
|
+
|
|
59
61
|
&:not(:first-child) {
|
|
60
62
|
margin-left: -1px;
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
|
-
|
|
65
|
+
|
|
66
|
+
>.color-input {
|
|
64
67
|
flex-grow: 0;
|
|
65
68
|
flex-basis: 39px;
|
|
66
69
|
}
|
|
70
|
+
|
|
67
71
|
.form-control.inner-scroll {
|
|
68
72
|
box-shadow: none;
|
|
69
73
|
border: 1px solid $form-control-border-color-default;
|
|
@@ -71,7 +75,8 @@
|
|
|
71
75
|
padding-bottom: 0;
|
|
72
76
|
align-items: center;
|
|
73
77
|
background-color: $form-control-background-default;
|
|
74
|
-
|
|
78
|
+
|
|
79
|
+
>.tag {
|
|
75
80
|
align-self: unset;
|
|
76
81
|
flex-shrink: 0;
|
|
77
82
|
}
|
|
@@ -85,7 +90,7 @@
|
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
92
|
|
|
88
|
-
&.typeahead
|
|
93
|
+
&.typeahead>div:not(.input-group-btn) {
|
|
89
94
|
flex: 1;
|
|
90
95
|
|
|
91
96
|
.form-control {
|
|
@@ -119,6 +124,7 @@
|
|
|
119
124
|
font-size: $font-size-small;
|
|
120
125
|
height: $form-control-height-sm;
|
|
121
126
|
}
|
|
127
|
+
|
|
122
128
|
.form-group-lg &,
|
|
123
129
|
.input-group-lg &,
|
|
124
130
|
&.input-lg {
|
|
@@ -132,8 +138,8 @@
|
|
|
132
138
|
margin: 0;
|
|
133
139
|
line-height: 1;
|
|
134
140
|
|
|
135
|
-
input[type='checkbox']
|
|
136
|
-
input[type='radio']
|
|
141
|
+
input[type='checkbox']+span::before,
|
|
142
|
+
input[type='radio']+span::before {
|
|
137
143
|
margin: 0;
|
|
138
144
|
}
|
|
139
145
|
}
|
|
@@ -143,16 +149,21 @@
|
|
|
143
149
|
display: flex;
|
|
144
150
|
align-items: stretch;
|
|
145
151
|
max-height: $form-control-height-base;
|
|
152
|
+
|
|
146
153
|
&:not(:first-child) {
|
|
147
154
|
margin-left: -1px;
|
|
148
155
|
}
|
|
149
|
-
|
|
156
|
+
|
|
157
|
+
&--last,
|
|
158
|
+
+.input-group-btn {
|
|
150
159
|
margin-left: -1px;
|
|
151
160
|
}
|
|
161
|
+
|
|
152
162
|
.input-group-sm & {
|
|
153
163
|
max-height: $form-control-height-sm;
|
|
154
164
|
}
|
|
155
|
-
|
|
165
|
+
|
|
166
|
+
>.btn-default {
|
|
156
167
|
--c8y-btn-default-background-default: #{$form-control-background-default};
|
|
157
168
|
}
|
|
158
169
|
}
|
|
@@ -163,6 +174,7 @@
|
|
|
163
174
|
&:not(:first-child):not(:last-child) {
|
|
164
175
|
border-radius: 0;
|
|
165
176
|
}
|
|
177
|
+
|
|
166
178
|
.btn:not(.btn-dot) {
|
|
167
179
|
border-radius: $form-control-border-radius;
|
|
168
180
|
}
|
|
@@ -174,6 +186,7 @@
|
|
|
174
186
|
display: flex !important;
|
|
175
187
|
|
|
176
188
|
.form-control {
|
|
189
|
+
|
|
177
190
|
&,
|
|
178
191
|
&:first-child,
|
|
179
192
|
&:last-child {
|
|
@@ -182,7 +195,9 @@
|
|
|
182
195
|
border-radius: calc($form-control-height-base * 0.5);
|
|
183
196
|
}
|
|
184
197
|
}
|
|
198
|
+
|
|
185
199
|
.form-control.input-lg {
|
|
200
|
+
|
|
186
201
|
&,
|
|
187
202
|
&:first-child,
|
|
188
203
|
&:last-child {
|
|
@@ -194,6 +209,7 @@
|
|
|
194
209
|
|
|
195
210
|
&:has(.input-group-btn > .btn + .btn) {
|
|
196
211
|
.form-control {
|
|
212
|
+
|
|
197
213
|
&,
|
|
198
214
|
&:first-child,
|
|
199
215
|
&:last-child {
|
|
@@ -220,28 +236,33 @@
|
|
|
220
236
|
line-height: 1;
|
|
221
237
|
border-radius: calc($form-control-height-base * 0.5);
|
|
222
238
|
text-overflow: initial;
|
|
239
|
+
|
|
223
240
|
&:hover {
|
|
224
241
|
box-shadow: inset 0 0 0 2px $component-brand-primary;
|
|
225
242
|
}
|
|
226
243
|
}
|
|
227
244
|
}
|
|
228
245
|
|
|
229
|
-
&.input-group-sm,
|
|
246
|
+
&.input-group-sm,
|
|
247
|
+
.input-group-sm & {
|
|
230
248
|
.form-control:not(.c8y-radio):not(.c8y-checkbox) {
|
|
231
249
|
padding-left: 12px;
|
|
232
250
|
}
|
|
233
251
|
|
|
234
252
|
.input-group-btn,
|
|
235
|
-
.input-group-addon,
|
|
253
|
+
.input-group-addon,
|
|
254
|
+
.form-group {
|
|
236
255
|
height: $form-control-height-sm !important;
|
|
237
256
|
}
|
|
238
257
|
}
|
|
239
258
|
|
|
240
259
|
&.input-group-lg {
|
|
260
|
+
|
|
241
261
|
.input-group-btn,
|
|
242
262
|
.input-group-addon {
|
|
243
263
|
height: $form-control-height-lg;
|
|
244
264
|
max-height: unset;
|
|
265
|
+
|
|
245
266
|
.btn {
|
|
246
267
|
border-radius: $form-control-height-base !important;
|
|
247
268
|
min-width: $form-control-height-lg;
|
|
@@ -262,12 +283,13 @@
|
|
|
262
283
|
}
|
|
263
284
|
|
|
264
285
|
.input-group-search {
|
|
265
|
-
.input-group-btn
|
|
286
|
+
.input-group-btn>.btn {
|
|
266
287
|
border-top-right-radius: calc($form-control-height-base * 0.5) !important;
|
|
267
288
|
border-bottom-right-radius: calc($form-control-height-base * 0.5) !important;
|
|
268
289
|
}
|
|
290
|
+
|
|
269
291
|
&.input-group-lg {
|
|
270
|
-
.input-group-btn
|
|
292
|
+
.input-group-btn>.btn {
|
|
271
293
|
border-top-right-radius: $form-control-height-base !important;
|
|
272
294
|
border-bottom-right-radius: $form-control-height-base !important;
|
|
273
295
|
}
|
|
@@ -277,9 +299,11 @@
|
|
|
277
299
|
//smaller search input when using the c8y-search-input component
|
|
278
300
|
c8y-search-input.input-group-sm {
|
|
279
301
|
.input-group-search {
|
|
302
|
+
|
|
280
303
|
.form-control,
|
|
281
304
|
.input-group-addon,
|
|
282
|
-
.input-group-btn
|
|
305
|
+
.input-group-btn>.btn {
|
|
306
|
+
|
|
283
307
|
// Inline .input-sm styles (was @extend .input-sm)
|
|
284
308
|
&:not(.c8y-radio):not(.c8y-checkbox) {
|
|
285
309
|
padding: $form-control-padding-small-vertical $form-control-padding-small-horizontal;
|
|
@@ -289,6 +313,7 @@ c8y-search-input.input-group-sm {
|
|
|
289
313
|
}
|
|
290
314
|
}
|
|
291
315
|
}
|
|
316
|
+
|
|
292
317
|
// add smaller left and right margins in the search dropdown
|
|
293
318
|
c8y-li.m-l-32.m-r-32 {
|
|
294
319
|
margin-left: $size-8 !important;
|
|
@@ -300,6 +325,7 @@ c8y-search-input.input-group-sm {
|
|
|
300
325
|
display: flex !important;
|
|
301
326
|
|
|
302
327
|
.form-control {
|
|
328
|
+
|
|
303
329
|
&,
|
|
304
330
|
&:first-child,
|
|
305
331
|
&:last-child {
|
|
@@ -341,6 +367,7 @@ c8y-search-input.input-group-sm {
|
|
|
341
367
|
|
|
342
368
|
// dropdown without round corners
|
|
343
369
|
.input-group.input-group-dropdown {
|
|
370
|
+
|
|
344
371
|
.input-group-btn,
|
|
345
372
|
.input-group-addon {
|
|
346
373
|
position: absolute;
|
|
@@ -358,9 +385,15 @@ c8y-search-input.input-group-sm {
|
|
|
358
385
|
height: 100%;
|
|
359
386
|
border: 0;
|
|
360
387
|
border-radius: $form-control-border-radius;
|
|
388
|
+
|
|
389
|
+
+.btn {
|
|
390
|
+
margin-left: 0;
|
|
391
|
+
}
|
|
361
392
|
}
|
|
362
393
|
}
|
|
394
|
+
|
|
363
395
|
&.input-group-sm {
|
|
396
|
+
|
|
364
397
|
.input-group-btn,
|
|
365
398
|
.input-group-addon {
|
|
366
399
|
height: $form-control-height-sm;
|
|
@@ -371,22 +404,22 @@ c8y-search-input.input-group-sm {
|
|
|
371
404
|
// Reset rounded corners
|
|
372
405
|
.input-group .form-control:first-child,
|
|
373
406
|
.input-group-addon:first-child,
|
|
374
|
-
.input-group-btn:first-child
|
|
375
|
-
.input-group-btn:first-child
|
|
376
|
-
.input-group-btn:first-child
|
|
377
|
-
.input-group-btn:last-child
|
|
378
|
-
.input-group-btn:last-child
|
|
407
|
+
.input-group-btn:first-child>.btn,
|
|
408
|
+
.input-group-btn:first-child>.btn-group>.btn,
|
|
409
|
+
.input-group-btn:first-child>.dropdown-toggle,
|
|
410
|
+
.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle):not(.btn-dot),
|
|
411
|
+
.input-group-btn:last-child>.btn-group:not(:last-child)>.btn {
|
|
379
412
|
border-top-right-radius: 0;
|
|
380
413
|
border-bottom-right-radius: 0;
|
|
381
414
|
}
|
|
382
415
|
|
|
383
416
|
.input-group .form-control:last-child,
|
|
384
417
|
.input-group-addon:last-child,
|
|
385
|
-
.input-group-btn:last-child
|
|
386
|
-
.input-group-btn:last-child
|
|
387
|
-
.input-group-btn:last-child
|
|
388
|
-
.input-group-btn:first-child
|
|
389
|
-
.input-group-btn:first-child
|
|
418
|
+
.input-group-btn:last-child>.btn:not(.btn-dot),
|
|
419
|
+
.input-group-btn:last-child>.btn-group>.btn,
|
|
420
|
+
.input-group-btn:last-child>.dropdown-toggle,
|
|
421
|
+
.input-group-btn:first-child>.btn:not(:first-child),
|
|
422
|
+
.input-group-btn:first-child>.btn-group:not(:first-child)>.btn {
|
|
390
423
|
border-top-left-radius: 0;
|
|
391
424
|
border-bottom-left-radius: 0;
|
|
392
425
|
}
|
|
@@ -394,15 +427,107 @@ c8y-search-input.input-group-sm {
|
|
|
394
427
|
//Input group editable
|
|
395
428
|
// supports a save button and a cancel button inside a input-group
|
|
396
429
|
.input-group-editable {
|
|
397
|
-
|
|
430
|
+
position: relative;
|
|
431
|
+
|
|
432
|
+
textarea.form-control {
|
|
433
|
+
max-height: unset;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
input[type='number']:not(:focus) {
|
|
437
|
+
-moz-appearance: textfield;
|
|
438
|
+
|
|
439
|
+
&::-webkit-inner-spin-button {
|
|
440
|
+
margin: 0;
|
|
441
|
+
-webkit-appearance: none;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.form-control, .form-control:first-child{
|
|
446
|
+
field-sizing: content;
|
|
447
|
+
min-width: 3ch;
|
|
448
|
+
max-width: 100%;
|
|
449
|
+
width: auto;
|
|
450
|
+
transition: all 0.25s ease;
|
|
451
|
+
flex: 0 1 auto;
|
|
452
|
+
|
|
453
|
+
+ span{
|
|
454
|
+
opacity: 1;
|
|
455
|
+
transition: all 0.25s ease;
|
|
456
|
+
display: flex;
|
|
457
|
+
align-items: flex-end;
|
|
458
|
+
&::after {
|
|
459
|
+
z-index: 5;
|
|
460
|
+
display: inline-block;
|
|
461
|
+
align-self: center;
|
|
462
|
+
margin-left: calc(-1 * $size-8);
|
|
463
|
+
color: $component-brand-primary;
|
|
464
|
+
opacity: 1;
|
|
465
|
+
line-height: $form-control-height-base;
|
|
466
|
+
transition: all 0.25s ease;
|
|
467
|
+
content: dlt-c8y-icons-vars.$dlt-c8y-icon-pencil;
|
|
468
|
+
font-family: dlt-c8y-icons-vars.$icon-font-family;
|
|
469
|
+
font-style: normal;
|
|
470
|
+
font-weight: normal;
|
|
471
|
+
text-rendering: auto;
|
|
472
|
+
-webkit-font-smoothing: antialiased;
|
|
473
|
+
-moz-osx-font-smoothing: grayscale;
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
&:hover, &:focus-within{
|
|
478
|
+
+ span {
|
|
479
|
+
opacity: 0;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
.form-control:not(:hover):not(:focus):not(.ng-dirty) {
|
|
484
|
+
z-index: 2;
|
|
485
|
+
overflow: hidden;
|
|
486
|
+
margin-right: 12px;
|
|
487
|
+
padding-left: 0;
|
|
488
|
+
padding-right: 0;
|
|
489
|
+
border-radius: $form-control-border-radius;
|
|
490
|
+
width: auto;
|
|
491
|
+
background-color: transparent;
|
|
492
|
+
box-shadow: none;
|
|
493
|
+
text-overflow: ellipsis;
|
|
494
|
+
+ span{
|
|
495
|
+
display: flex;
|
|
496
|
+
align-items: flex-end;
|
|
497
|
+
}
|
|
498
|
+
&[disabled],
|
|
499
|
+
&[read-only] {
|
|
500
|
+
width: 100%;
|
|
501
|
+
+span::after {
|
|
502
|
+
opacity: 0;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
.input-group-btn{
|
|
507
|
+
opacity: 0;
|
|
508
|
+
pointer-events: none;
|
|
509
|
+
transition: all 0.25s ease;
|
|
510
|
+
padding: $size-4;
|
|
511
|
+
display: flex;
|
|
512
|
+
|
|
398
513
|
.btn-clean {
|
|
399
514
|
position: relative;
|
|
400
|
-
padding:
|
|
515
|
+
padding: 0!important;
|
|
516
|
+
width: auto;
|
|
517
|
+
margin: 0!important;
|
|
518
|
+
max-height: unset;
|
|
519
|
+
height: auto!important;
|
|
520
|
+
aspect-ratio: 1;
|
|
521
|
+
border-radius: 50%!important;
|
|
522
|
+
display: flex;
|
|
523
|
+
align-items: center;
|
|
524
|
+
justify-content: center;
|
|
525
|
+
align-self: stretch;
|
|
401
526
|
|
|
402
527
|
&::after {
|
|
403
528
|
position: absolute;
|
|
404
529
|
top: 50%;
|
|
405
|
-
|
|
530
|
+
left: -4px;
|
|
406
531
|
display: block;
|
|
407
532
|
margin-top: calc(-1 * $size-10);
|
|
408
533
|
width: 1px;
|
|
@@ -410,128 +535,111 @@ c8y-search-input.input-group-sm {
|
|
|
410
535
|
background-color: rgba($black, math.div(10, 100));
|
|
411
536
|
content: '';
|
|
412
537
|
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
&:last-child {
|
|
416
|
-
.btn-clean::after {
|
|
538
|
+
&:last-child::after {
|
|
417
539
|
display: none;
|
|
418
540
|
}
|
|
419
541
|
}
|
|
420
542
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
height: $form-control-height-base;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
input[type='number']:not(:focus) {
|
|
430
|
-
-moz-appearance: textfield;
|
|
431
|
-
|
|
432
|
-
&::-webkit-inner-spin-button {
|
|
543
|
+
&:has(.ng-dirty){
|
|
544
|
+
.input-group-btn{
|
|
545
|
+
opacity: 1;
|
|
546
|
+
pointer-events: auto;
|
|
547
|
+
z-index: 10;
|
|
433
548
|
margin: 0;
|
|
434
|
-
|
|
435
|
-
-webkit-appearance: none;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.form-control:not(.ng-dirty) {
|
|
440
|
-
transition: all 0.25s ease;
|
|
441
|
-
|
|
442
|
-
&[disabled] {
|
|
443
|
-
padding-left: 0;
|
|
444
|
-
box-shadow: none;
|
|
445
|
-
opacity: $component-disabled-opacity;
|
|
446
|
-
transition: none;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
~ .input-group-btn {
|
|
450
|
-
display: none;
|
|
451
549
|
}
|
|
452
550
|
}
|
|
453
|
-
|
|
454
|
-
&:not(:hover) {
|
|
551
|
+
&:not(:has(.form-control:hover)):not(:focus-within) {
|
|
455
552
|
textarea.form-control {
|
|
456
553
|
resize: none;
|
|
457
554
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
&[disabled],
|
|
474
|
-
&[read-only] {
|
|
475
|
-
width: 100%;
|
|
555
|
+
}
|
|
556
|
+
.form-control.ng-dirty{
|
|
557
|
+
padding-right: calc($form-control-height-base * 2)!important;
|
|
558
|
+
border-top-right-radius: $form-control-height-sm;
|
|
559
|
+
border-bottom-right-radius: $form-control-height-sm;
|
|
560
|
+
+ span{
|
|
561
|
+
opacity: 0;
|
|
562
|
+
}
|
|
563
|
+
~.input-group-btn {
|
|
564
|
+
max-height: unset;
|
|
565
|
+
height: $form-control-height-base;
|
|
566
|
+
margin-left: calc($form-control-height-base * -2);
|
|
567
|
+
align-items: stretch;
|
|
568
|
+
.btn{
|
|
569
|
+
height: unset!important;
|
|
476
570
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
opacity: 0.5;
|
|
488
|
-
|
|
489
|
-
text-rendering: auto;
|
|
490
|
-
-webkit-font-smoothing: antialiased;
|
|
491
|
-
-moz-osx-font-smoothing: grayscale;
|
|
492
|
-
|
|
493
|
-
.form-group-lg & {
|
|
494
|
-
line-height: 40px;
|
|
495
|
-
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
&.input-group-sm,
|
|
574
|
+
.form-group-sm & {
|
|
575
|
+
.form-control.ng-dirty{
|
|
576
|
+
padding-right: calc($form-control-height-sm * 2)!important;
|
|
577
|
+
border-top-right-radius: $form-control-height-sm;
|
|
578
|
+
border-bottom-right-radius: $form-control-height-sm;
|
|
579
|
+
+ span{
|
|
580
|
+
opacity: 0;
|
|
496
581
|
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
582
|
+
~.input-group-btn {
|
|
583
|
+
height: $form-control-height-sm;
|
|
584
|
+
margin-left: calc($form-control-height-sm * -2);
|
|
585
|
+
.btn{
|
|
586
|
+
height: unset!important;
|
|
501
587
|
}
|
|
502
588
|
}
|
|
503
589
|
}
|
|
590
|
+
.form-control:not(.ng-dirty)+span::after {
|
|
591
|
+
line-height: $form-control-height-sm;
|
|
592
|
+
}
|
|
504
593
|
}
|
|
505
594
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
595
|
+
&.input-group-lg,
|
|
596
|
+
.form-group-lg & {
|
|
597
|
+
.form-control.ng-dirty{
|
|
598
|
+
padding-right: calc($form-control-height-lg * 2)!important;
|
|
599
|
+
border-top-right-radius: $form-control-height-lg;
|
|
600
|
+
border-bottom-right-radius: $form-control-height-lg;
|
|
601
|
+
+ span{
|
|
602
|
+
opacity: 0;
|
|
603
|
+
}
|
|
604
|
+
~.input-group-btn {
|
|
605
|
+
height: $form-control-height-lg;
|
|
606
|
+
margin-left: calc($form-control-height-lg * -2);
|
|
607
|
+
.btn{
|
|
608
|
+
height: unset!important;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
.form-control:not(.ng-dirty)+span::after {
|
|
613
|
+
line-height: $form-control-height-lg;
|
|
510
614
|
}
|
|
511
615
|
}
|
|
512
616
|
}
|
|
513
617
|
|
|
514
618
|
// Sizing options
|
|
515
619
|
// Remix the default form control sizing classes into new ones for easier manipulation.
|
|
516
|
-
.input-group-lg
|
|
517
|
-
.input-group-lg
|
|
518
|
-
.input-group-lg
|
|
519
|
-
.input-group-search.input-group-lg .input-group
|
|
520
|
-
.input-group-search.input-group-lg .input-group-btn
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
620
|
+
.input-group-lg>.form-control,
|
|
621
|
+
.input-group-lg>.input-group-addon,
|
|
622
|
+
.input-group-lg>.input-group-btn>.btn,
|
|
623
|
+
.input-group-search.input-group-lg .input-group>.form-control,
|
|
624
|
+
.input-group-search.input-group-lg .input-group-btn>.btn {
|
|
625
|
+
|
|
626
|
+
// Inline .input-lg styles (was @extend .input-lg)
|
|
627
|
+
&:not(.c8y-radio):not(.c8y-checkbox) {
|
|
628
|
+
padding: $form-control-padding-large-vertical $form-control-padding-large-horizontal;
|
|
629
|
+
max-height: unset !important;
|
|
630
|
+
height: $form-control-height-lg !important;
|
|
631
|
+
font-size: $font-size-large;
|
|
632
|
+
}
|
|
528
633
|
}
|
|
529
|
-
|
|
634
|
+
|
|
635
|
+
.input-group-lg>.form-group {
|
|
530
636
|
height: $form-control-height-lg !important;
|
|
531
637
|
}
|
|
532
|
-
|
|
533
|
-
.input-group-sm
|
|
534
|
-
.input-group-sm
|
|
638
|
+
|
|
639
|
+
.input-group-sm>.form-control,
|
|
640
|
+
.input-group-sm>.input-group-addon,
|
|
641
|
+
.input-group-sm>.input-group-btn>.btn {
|
|
642
|
+
|
|
535
643
|
// Inline .input-sm styles (was @extend .input-sm)
|
|
536
644
|
&:not(.c8y-radio):not(.c8y-checkbox) {
|
|
537
645
|
padding: $form-control-padding-small-vertical $form-control-padding-small-horizontal;
|
|
@@ -582,17 +690,16 @@ c8y-search-input.input-group-sm {
|
|
|
582
690
|
// `font-size` in combination with `inline-block` on buttons.
|
|
583
691
|
font-size: 0;
|
|
584
692
|
|
|
693
|
+
.btn+.btn {
|
|
694
|
+
margin-left: 0;
|
|
695
|
+
}
|
|
696
|
+
|
|
585
697
|
// element above the siblings.
|
|
586
|
-
|
|
698
|
+
>.btn {
|
|
587
699
|
position: relative;
|
|
588
700
|
padding: $size-5 12px;
|
|
589
701
|
height: 100%;
|
|
590
702
|
|
|
591
|
-
+ .btn {
|
|
592
|
-
margin-left: -1px;
|
|
593
|
-
border-left-color: rgba($black, math.div(15, 100));
|
|
594
|
-
}
|
|
595
|
-
|
|
596
703
|
// Bring the "active" button to the front
|
|
597
704
|
&:hover,
|
|
598
705
|
&:focus,
|
|
@@ -614,29 +721,33 @@ c8y-search-input.input-group-sm {
|
|
|
614
721
|
|
|
615
722
|
// No negative margins to show the complet input border
|
|
616
723
|
&:first-child {
|
|
617
|
-
|
|
618
|
-
|
|
724
|
+
|
|
725
|
+
>.btn,
|
|
726
|
+
>.btn-group {
|
|
619
727
|
margin-right: 0;
|
|
620
728
|
border-right-color: rgba($black, math.div(15, 100));
|
|
621
729
|
}
|
|
622
730
|
|
|
623
|
-
|
|
731
|
+
>.btn:last-child {
|
|
624
732
|
// border-right: 0;
|
|
625
733
|
}
|
|
626
734
|
}
|
|
627
735
|
|
|
628
736
|
&:last-child {
|
|
629
|
-
|
|
630
|
-
|
|
737
|
+
|
|
738
|
+
>.btn:not(:focus),
|
|
739
|
+
>.btn-group {
|
|
631
740
|
z-index: 2;
|
|
632
741
|
// border-left-color: rgba($black, 15/100);
|
|
633
742
|
}
|
|
634
|
-
|
|
743
|
+
|
|
744
|
+
>.btn:focus {
|
|
635
745
|
margin-left: -1px;
|
|
636
746
|
}
|
|
637
747
|
}
|
|
748
|
+
|
|
638
749
|
&:not(:first-child) {
|
|
639
|
-
|
|
750
|
+
>.btn:first-child:not(:focus) {
|
|
640
751
|
// border-left: 0;
|
|
641
752
|
}
|
|
642
753
|
}
|
|
@@ -658,7 +769,7 @@ c8y-search-input.input-group-sm {
|
|
|
658
769
|
}
|
|
659
770
|
|
|
660
771
|
// $TODO: JAWI validate
|
|
661
|
-
|
|
772
|
+
>.input-group-btn.delete-row {
|
|
662
773
|
margin-top: $size-24;
|
|
663
774
|
}
|
|
664
775
|
|
|
@@ -666,12 +777,12 @@ c8y-search-input.input-group-sm {
|
|
|
666
777
|
flex-grow: 1;
|
|
667
778
|
}
|
|
668
779
|
|
|
669
|
-
|
|
780
|
+
+.input-group-array {
|
|
670
781
|
.input-group-btn {
|
|
671
782
|
margin-top: 0;
|
|
672
783
|
}
|
|
673
784
|
|
|
674
|
-
.form-group
|
|
785
|
+
.form-group>label {
|
|
675
786
|
display: none;
|
|
676
787
|
}
|
|
677
788
|
}
|
|
@@ -682,10 +793,10 @@ c8y-search-input.input-group-sm {
|
|
|
682
793
|
.input-group-array {
|
|
683
794
|
gap: $size-base;
|
|
684
795
|
|
|
685
|
-
>
|
|
796
|
+
>formly-field {
|
|
686
797
|
display: contents;
|
|
687
798
|
|
|
688
|
-
>
|
|
799
|
+
>formly-group {
|
|
689
800
|
display: contents;
|
|
690
801
|
}
|
|
691
802
|
}
|
|
@@ -701,10 +812,11 @@ formly-field label.c8y-checkbox {
|
|
|
701
812
|
}
|
|
702
813
|
|
|
703
814
|
c8y-lwm2m-legend-wrapper formly-field {
|
|
704
|
-
>
|
|
815
|
+
>c8y-field-checkbox {
|
|
705
816
|
display: flex;
|
|
706
817
|
align-items: center;
|
|
707
818
|
margin: 0 0 $size-8 0;
|
|
819
|
+
|
|
708
820
|
& label.c8y-switch {
|
|
709
821
|
display: flex !important;
|
|
710
822
|
overflow: visible;
|
|
@@ -714,6 +826,6 @@ c8y-lwm2m-legend-wrapper formly-field {
|
|
|
714
826
|
}
|
|
715
827
|
|
|
716
828
|
// EXTENDABLE INPUT LIST
|
|
717
|
-
[c8yinputgrouplistcontainer]
|
|
829
|
+
[c8yinputgrouplistcontainer]>li:not(:last-child) .input-group-btn>.btn.text-primary {
|
|
718
830
|
display: none;
|
|
719
831
|
}
|