@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/style",
3
- "version": "1022.10.1",
3
+ "version": "1022.13.0",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity GmbH",
6
6
  "description": "Styles for Cumulocity IoT applications",
@@ -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
  }
@@ -22,7 +22,7 @@
22
22
  .btn-primary();
23
23
  }
24
24
 
25
- p{
25
+ p, .btn{
26
26
  margin-bottom: @margin-base;
27
27
  }
28
28
 
@@ -105,6 +105,7 @@
105
105
  min-height: @switch-sm;
106
106
  height: @switch-sm;
107
107
  line-height: @line-height-base;
108
+ display: inline-flex;
108
109
 
109
110
  & input[type='checkbox'] + span {
110
111
  position: absolute;
@@ -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;
@@ -994,9 +994,10 @@ label.editable {
994
994
  > label {
995
995
  margin-right: @margin-8;
996
996
  }
997
- + .form-group {
997
+ + .form-group, + .btn {
998
998
  margin-left: @margin-8;
999
999
  }
1000
+
1000
1001
  }
1001
1002
 
1002
1003
  label {
@@ -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) !important;
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 {
@@ -3,6 +3,8 @@
3
3
  margin: 16px auto;
4
4
  width: 4em;
5
5
  height: 4em;
6
+ min-width: 4em;
7
+ min-height: 4em;
6
8
  border-radius: 50%;
7
9
  box-shadow: inset 0 0 0 0.6em;
8
10
  color: @component-brand-primary;
@@ -20,8 +20,8 @@
20
20
  .text-primary-light {
21
21
  .text-emphasis-variant(@brand-primary-light);
22
22
  }
23
- .text-complementary {
24
- .text-emphasis-variant(@brand-complementary);
23
+ .text-primary-dark {
24
+ .text-emphasis-variant(@brand-primary-dark);
25
25
  }
26
26
 
27
27
  // Accent text colors
@@ -28,6 +28,7 @@
28
28
  > [class*=' dlt-c8y-icon-'],
29
29
  > .c8y-icon {
30
30
  margin-right: 4px;
31
+ transform: translateY(3px);
31
32
  }
32
33
  }
33
34