@c8y/style 1022.10.1 → 1022.13.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/package.json +1 -1
- package/styles/_buttons.less +17 -1
- package/styles/_c8y-empty-state.less +1 -1
- package/styles/_c8y-switch.less +1 -0
- package/styles/_dropdowns.less +22 -0
- package/styles/_forms.less +2 -1
- package/styles/_input-groups.less +27 -1
- package/styles/_spinner-snake.less +2 -0
- package/styles/utilities/_contextual-colors.less +2 -2
- package/styles/utilities/_icon-utils.less +1 -0
package/package.json
CHANGED
package/styles/_buttons.less
CHANGED
|
@@ -162,6 +162,12 @@
|
|
|
162
162
|
margin-left: @margin-base;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
.d-flex, .d-col{
|
|
166
|
+
> .btn + .btn:not(.btn-block) {
|
|
167
|
+
margin:0;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
165
171
|
// Alternate buttons
|
|
166
172
|
.btn-default {
|
|
167
173
|
.button-variant(c8y-btn-default);
|
|
@@ -256,6 +262,9 @@ label > .btn-clean {
|
|
|
256
262
|
.box-shadow(none) !important;
|
|
257
263
|
transition: @btn-transition;
|
|
258
264
|
|
|
265
|
+
&.c8y-realtime{
|
|
266
|
+
color: inherit;
|
|
267
|
+
}
|
|
259
268
|
&:not(.btn-xs):not(.btn-sm) {
|
|
260
269
|
padding: @btn-padding-vertical @btn-padding-horizontal;
|
|
261
270
|
min-height: @form-control-height-base;
|
|
@@ -482,7 +491,14 @@ input[type='button'] {
|
|
|
482
491
|
&,
|
|
483
492
|
&:hover,
|
|
484
493
|
&:focus {
|
|
485
|
-
#gradient > .striped(var(--c8y-brand-70))
|
|
494
|
+
#gradient > .striped(var(--c8y-brand-70));
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
&.btn-danger {
|
|
498
|
+
&,
|
|
499
|
+
&:hover,
|
|
500
|
+
&:focus {
|
|
501
|
+
#gradient > .striped(var(--c8y-palette-status-danger-light));
|
|
486
502
|
}
|
|
487
503
|
}
|
|
488
504
|
}
|
package/styles/_c8y-switch.less
CHANGED
package/styles/_dropdowns.less
CHANGED
|
@@ -209,6 +209,9 @@ bs-dropdown-container,
|
|
|
209
209
|
|
|
210
210
|
animation: showDropdown 0.2s ease-out forwards;
|
|
211
211
|
|
|
212
|
+
&.dropdown-menu--select{
|
|
213
|
+
animation: showDropdownY 0.2s ease-out forwards;
|
|
214
|
+
}
|
|
212
215
|
&.dropdown-menu-right{
|
|
213
216
|
transform-origin: right top;
|
|
214
217
|
}
|
|
@@ -247,6 +250,25 @@ bs-dropdown-container,
|
|
|
247
250
|
box-shadow: var(--c8y-dropdown-elevation-hover);
|
|
248
251
|
}
|
|
249
252
|
}
|
|
253
|
+
//dropdown menu when added to body
|
|
254
|
+
@keyframes showDropdownY {
|
|
255
|
+
/* Starting state (0%) */
|
|
256
|
+
0% {
|
|
257
|
+
opacity: 0;
|
|
258
|
+
transform: translateY(-16px) scale(1,0);
|
|
259
|
+
box-shadow: var(--c8y-dropdown-elevation-default);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
75%{
|
|
263
|
+
opacity: 0.5;
|
|
264
|
+
}
|
|
265
|
+
/* Ending state (100%) */
|
|
266
|
+
100% {
|
|
267
|
+
transform: translateY(0) scale(1);
|
|
268
|
+
opacity: 1;
|
|
269
|
+
box-shadow: var(--c8y-dropdown-elevation-hover);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
250
272
|
|
|
251
273
|
bs-dropdown-container >.dropdown >.dropdown-menu {
|
|
252
274
|
animation-name: showDropdown;
|
package/styles/_forms.less
CHANGED
|
@@ -144,6 +144,16 @@
|
|
|
144
144
|
border-radius: calc(@form-control-height-base * 0.5);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
+
.form-control.input-lg {
|
|
148
|
+
&,
|
|
149
|
+
&:first-child,
|
|
150
|
+
&:last-child {
|
|
151
|
+
padding: @form-control-padding-large-vertical calc(@form-control-padding-large-horizontal * 2);
|
|
152
|
+
border-radius: @form-control-height-base;
|
|
153
|
+
font-size: @font-size-large;
|
|
154
|
+
|
|
155
|
+
}
|
|
156
|
+
}
|
|
147
157
|
|
|
148
158
|
.input-group-btn,
|
|
149
159
|
.input-group-addon {
|
|
@@ -161,7 +171,7 @@
|
|
|
161
171
|
width: 100%;
|
|
162
172
|
height: 100%;
|
|
163
173
|
line-height: 1;
|
|
164
|
-
border-radius: calc(@form-control-height-base * 0.5)
|
|
174
|
+
border-radius: calc(@form-control-height-base * 0.5);
|
|
165
175
|
&:hover {
|
|
166
176
|
box-shadow: inset 0 0 0 2px @component-brand-primary;
|
|
167
177
|
}
|
|
@@ -179,6 +189,22 @@
|
|
|
179
189
|
height: @form-control-height-sm;
|
|
180
190
|
}
|
|
181
191
|
}
|
|
192
|
+
|
|
193
|
+
&.input-group-lg {
|
|
194
|
+
// .form-control:not(.c8y-radio):not(.c8y-checkbox) {
|
|
195
|
+
// padding-left: 16px;
|
|
196
|
+
// }
|
|
197
|
+
|
|
198
|
+
.input-group-btn,
|
|
199
|
+
.input-group-addon {
|
|
200
|
+
height: @form-control-height-lg;
|
|
201
|
+
max-height: unset;
|
|
202
|
+
.btn{
|
|
203
|
+
border-radius: @form-control-height-base!important;
|
|
204
|
+
min-width: @form-control-height-lg;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
182
208
|
}
|
|
183
209
|
|
|
184
210
|
.input-group.input-group-password {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
.text-primary-light {
|
|
21
21
|
.text-emphasis-variant(@brand-primary-light);
|
|
22
22
|
}
|
|
23
|
-
.text-
|
|
24
|
-
.text-emphasis-variant(@brand-
|
|
23
|
+
.text-primary-dark {
|
|
24
|
+
.text-emphasis-variant(@brand-primary-dark);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
// Accent text colors
|