@appscode/design-system 1.1.0-beta.36 → 1.1.0-beta.38

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.
@@ -142,9 +142,9 @@ $red-5: hsl($red-hue, $red-saturation, 5%);
142
142
  $red-10: hsl($red-hue, $red-saturation, 10%);
143
143
  $red-20: hsl($red-hue, $red-saturation, 20%);
144
144
  $red-30: hsl($red-hue, $red-saturation, 30%);
145
+ $danger: hsl($red-hue, $red-saturation, 40%);
145
146
  $red-40: hsl($red-hue, $red-saturation, 40%);
146
147
  $red-50: hsl($red-hue, $red-saturation, 50%);
147
- $danger: hsl($red-hue, $red-saturation, 50%);
148
148
  $red-60: hsl($red-hue, $red-saturation, 60%);
149
149
  $red-70: hsl($red-hue, $red-saturation, 70%);
150
150
  $red-80: hsl($red-hue, $red-saturation, 80%);
@@ -185,149 +185,185 @@ $black-97: hsl($black-hue, $black-saturation, 97%);
185
185
  }
186
186
 
187
187
  // for primary classes
188
- @include generate-color-classes("text",
188
+ @include generate-color-classes(
189
+ "text",
189
190
  "primary",
190
191
  $primary-hue,
191
192
  $primary-saturation,
192
193
  10,
193
194
  90,
194
- 10);
195
+ 10
196
+ );
195
197
 
196
- @include generate-color-classes("bg",
198
+ @include generate-color-classes(
199
+ "bg",
197
200
  "primary",
198
201
  $primary-hue,
199
202
  $primary-saturation,
200
203
  10,
201
204
  90,
202
- 10);
205
+ 10
206
+ );
203
207
 
204
- @include generate-color-classes("text",
208
+ @include generate-color-classes(
209
+ "text",
205
210
  "primary",
206
211
  $primary-hue,
207
212
  $primary-saturation,
208
213
  5,
209
214
  5,
210
- 1);
215
+ 1
216
+ );
211
217
 
212
- @include generate-color-classes("bg",
218
+ @include generate-color-classes(
219
+ "bg",
213
220
  "primary",
214
221
  $primary-hue,
215
222
  $primary-saturation,
216
223
  5,
217
224
  5,
218
- 1);
225
+ 1
226
+ );
219
227
 
220
- @include generate-color-classes("text",
228
+ @include generate-color-classes(
229
+ "text",
221
230
  "primary",
222
231
  $primary-hue,
223
232
  $primary-saturation,
224
233
  93,
225
234
  97,
226
- 2);
235
+ 2
236
+ );
227
237
 
228
- @include generate-color-classes("bg",
238
+ @include generate-color-classes(
239
+ "bg",
229
240
  "primary",
230
241
  $primary-hue,
231
242
  $primary-saturation,
232
243
  93,
233
244
  97,
234
- 2);
245
+ 2
246
+ );
235
247
 
236
248
  // for green classes
237
- @include generate-color-classes("text",
249
+ @include generate-color-classes(
250
+ "text",
238
251
  "green",
239
252
  $green-hue,
240
253
  $green-saturation,
241
254
  10,
242
255
  90,
243
- 10);
244
- @include generate-color-classes("bg",
256
+ 10
257
+ );
258
+ @include generate-color-classes(
259
+ "bg",
245
260
  "green",
246
261
  $green-hue,
247
262
  $green-saturation,
248
263
  10,
249
264
  90,
250
- 10);
265
+ 10
266
+ );
251
267
 
252
- @include generate-color-classes("text",
268
+ @include generate-color-classes(
269
+ "text",
253
270
  "green",
254
271
  $green-hue,
255
272
  $green-saturation,
256
273
  5,
257
274
  5,
258
- 1);
275
+ 1
276
+ );
259
277
 
260
- @include generate-color-classes("bg",
278
+ @include generate-color-classes(
279
+ "bg",
261
280
  "green",
262
281
  $green-hue,
263
282
  $green-saturation,
264
283
  5,
265
284
  5,
266
- 1);
285
+ 1
286
+ );
267
287
 
268
- @include generate-color-classes("text",
288
+ @include generate-color-classes(
289
+ "text",
269
290
  "green",
270
291
  $green-hue,
271
292
  $green-saturation,
272
293
  93,
273
294
  97,
274
- 2);
295
+ 2
296
+ );
275
297
 
276
- @include generate-color-classes("bg",
298
+ @include generate-color-classes(
299
+ "bg",
277
300
  "green",
278
301
  $green-hue,
279
302
  $green-saturation,
280
303
  93,
281
304
  97,
282
- 2);
305
+ 2
306
+ );
283
307
 
284
308
  // for purple classes
285
- @include generate-color-classes("text",
309
+ @include generate-color-classes(
310
+ "text",
286
311
  "purple",
287
312
  $purple-hue,
288
313
  $purple-saturation,
289
314
  10,
290
315
  90,
291
- 10);
292
- @include generate-color-classes("bg",
316
+ 10
317
+ );
318
+ @include generate-color-classes(
319
+ "bg",
293
320
  "purple",
294
321
  $purple-hue,
295
322
  $purple-saturation,
296
323
  10,
297
324
  90,
298
- 10);
325
+ 10
326
+ );
299
327
 
300
- @include generate-color-classes("text",
328
+ @include generate-color-classes(
329
+ "text",
301
330
  "purple",
302
331
  $purple-hue,
303
332
  $purple-saturation,
304
333
  5,
305
334
  5,
306
- 1);
335
+ 1
336
+ );
307
337
 
308
- @include generate-color-classes("bg",
338
+ @include generate-color-classes(
339
+ "bg",
309
340
  "purple",
310
341
  $purple-hue,
311
342
  $purple-saturation,
312
343
  5,
313
344
  5,
314
- 1);
345
+ 1
346
+ );
315
347
 
316
- @include generate-color-classes("text",
348
+ @include generate-color-classes(
349
+ "text",
317
350
  "purple",
318
351
  $purple-hue,
319
352
  $purple-saturation,
320
353
  93,
321
354
  97,
322
- 2);
355
+ 2
356
+ );
323
357
 
324
- @include generate-color-classes("bg",
358
+ @include generate-color-classes(
359
+ "bg",
325
360
  "purple",
326
361
  $purple-hue,
327
362
  $purple-saturation,
328
363
  93,
329
364
  97,
330
- 2);
365
+ 2
366
+ );
331
367
 
332
368
  // Box Shadow
333
369
  $ac-shadow-1: 0 1px 4px rgba(26, 80, 151, 0.16);
@@ -338,4 +374,4 @@ $ac-shadow-3: 0 3px 4px 0 rgba(0, 0, 0, 0.18),
338
374
  $shadow-sm: 0 1px 4px rgba(26, 80, 151, 0.16);
339
375
  $shadow-xl: 0px 8px 57px rgba(0, 0, 0, 0.16);
340
376
  $shadow-lg: 0 3px 4px 0 rgba(0, 0, 0, 0.18), 0 3px 3px -2px rgba(0, 0, 0, 0.16),
341
- 0 1px 6px 0 rgba(0, 0, 0, 0.12);
377
+ 0 1px 6px 0 rgba(0, 0, 0, 0.12);
@@ -6,16 +6,14 @@ $positions: (
6
6
  "r": "right",
7
7
  );
8
8
 
9
- @each $key,
10
- $position in $positions {
9
+ @each $key, $position in $positions {
11
10
  .b-#{$key}-n {
12
11
  border-#{$position}: none !important;
13
12
  }
14
13
  }
15
14
 
16
15
  // border position 1px
17
- @each $key,
18
- $position in $positions {
16
+ @each $key, $position in $positions {
19
17
  .b-#{$key}-1 {
20
18
  border-#{$position}: 1px solid $primary-90;
21
19
  }
@@ -188,7 +186,6 @@ hr {
188
186
  align-items: center;
189
187
  }
190
188
 
191
-
192
189
  .ac-hscrollbar {
193
190
  padding: 15px;
194
191
  transition: 0.3s ease-in-out;
@@ -430,7 +427,6 @@ button {
430
427
 
431
428
  // Shake animation
432
429
  @keyframes shake {
433
-
434
430
  10%,
435
431
  90% {
436
432
  transform: translate3d(-1px, 0, 0);
@@ -731,7 +727,7 @@ $border_color_4: transparent transparent #585d6e transparent;
731
727
  }
732
728
 
733
729
  &.is-danger {
734
- background-color: #eb5757;
730
+ background-color: $danger;
735
731
  }
736
732
  }
737
733
 
@@ -770,7 +766,8 @@ Responsive Classes
770
766
  }
771
767
 
772
768
  // Small devices (landscape phones, 576px and up)
773
- @media (min-width: 576px) and (max-width: 767.98px) {}
769
+ @media (min-width: 576px) and (max-width: 767.98px) {
770
+ }
774
771
 
775
772
  // Medium devices (tablets, 768px and up)
776
773
  @media (min-width: 768px) and (max-width: 991.98px) {
@@ -789,7 +786,8 @@ Responsive Classes
789
786
  }
790
787
 
791
788
  // Extra large devices (large desktops, 1200px and up)
792
- @media (min-width: 1200px) {}
789
+ @media (min-width: 1200px) {
790
+ }
793
791
 
794
792
  // FHD devices
795
793
  @media (min-width: 1408px) and (max-width: 1600) {
@@ -797,4 +795,4 @@ Responsive Classes
797
795
  // grid-gap: 0px;
798
796
  // grid-template-columns: 240px calc(100% - 260px);
799
797
  // }
800
- }
798
+ }
@@ -429,7 +429,7 @@
429
429
  // border: none;
430
430
  // padding: 0;
431
431
  // font-size: 11px;
432
- // color: #eb5757;
432
+ // color: $danger;
433
433
  // background-color: transparent;
434
434
  // }
435
435
  // }
@@ -783,4 +783,4 @@
783
783
 
784
784
  // // Extra large devices (large desktops, 1200px and up)
785
785
  // @media (min-width: 1200px) {
786
- // }
786
+ // }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.1.0-beta.36",
3
+ "version": "1.1.0-beta.38",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -58,7 +58,22 @@ const handleClick = (e: Event) => {
58
58
  padding: 8px 16px;
59
59
  font-weight: 500;
60
60
  line-height: 1;
61
+ &.is-primary {
62
+ &.is-light {
63
+ color: $primary;
64
+ }
65
+ }
66
+ &.is-warning {
67
+ &.is-light {
68
+ color: $yellow-30;
69
+ }
70
+ }
61
71
 
72
+ &.is-success {
73
+ &.is-light {
74
+ color: $green-30;
75
+ }
76
+ }
62
77
  &.is-light {
63
78
  &.is-loading {
64
79
  &::after {
@@ -80,7 +80,7 @@
80
80
  border: none;
81
81
  padding: 0;
82
82
  font-size: 11px;
83
- color: #eb5757;
83
+ color: $danger;
84
84
  background-color: transparent;
85
85
  }
86
86
  }
@@ -59,20 +59,7 @@
59
59
  opacity: 1;
60
60
  visibility: visible;
61
61
  }
62
- }
63
- &.is-error {
64
- color: $danger;
65
- &:hover {
66
- &::after {
67
- background-color: $red-90;
68
- }
69
- }
70
- &:after {
71
- opacity: 1;
72
- visibility: visible;
73
- background-color: transparent;
74
- }
75
- &.is-active {
62
+ &.is-danger {
76
63
  color: $danger;
77
64
  &:hover {
78
65
  &::after {
@@ -85,6 +72,45 @@
85
72
  background-color: $red-95;
86
73
  }
87
74
  }
75
+ &.is-success {
76
+ color: $success;
77
+ &:hover {
78
+ &::after {
79
+ background-color: $green-90;
80
+ }
81
+ }
82
+ &:after {
83
+ opacity: 1;
84
+ visibility: visible;
85
+ background-color: $green-95;
86
+ }
87
+ }
88
+ &.is-warning {
89
+ color: $warning;
90
+ &:hover {
91
+ &::after {
92
+ background-color: $yellow-90;
93
+ }
94
+ }
95
+ &:after {
96
+ opacity: 1;
97
+ visibility: visible;
98
+ background-color: $yellow-95;
99
+ }
100
+ }
101
+ }
102
+ &.is-danger {
103
+ color: $danger;
104
+ &:hover {
105
+ &::after {
106
+ background-color: $red-90;
107
+ }
108
+ }
109
+ &:after {
110
+ opacity: 1;
111
+ visibility: visible;
112
+ background-color: transparent;
113
+ }
88
114
  }
89
115
  &.is-success {
90
116
  color: $success;
@@ -99,6 +125,19 @@
99
125
  background-color: transparent;
100
126
  }
101
127
  }
128
+ &.is-warning {
129
+ color: $warning;
130
+ &:hover {
131
+ &::after {
132
+ background-color: $yellow-90;
133
+ }
134
+ }
135
+ &:after {
136
+ opacity: 1;
137
+ visibility: visible;
138
+ background-color: transparent;
139
+ }
140
+ }
102
141
  }
103
142
  &.is-open {
104
143
  transition: 0.3s ease-in-out;