@appscode/design-system 1.1.0-beta.75 → 1.1.0-beta.77

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.
@@ -1,397 +1,3 @@
1
- // Input fields
2
-
3
- // .ac-file-upload {
4
- // margin-bottom: 20px;
5
-
6
- // &:last-child {
7
- // margin-bottom: 0;
8
- // }
9
-
10
- // &.style-2 {
11
- // label {
12
- // &.file-label {
13
- // position: relative;
14
- // z-index: 1;
15
-
16
- // span.ac-placeholder {
17
- // position: absolute;
18
- // left: 180px;
19
- // top: 10px;
20
- // z-index: 1;
21
- // font-size: 13px;
22
- // color: $primary-10;
23
- // font-weight: 400;
24
- // }
25
- // }
26
-
27
- // .file-cta {
28
- // background-color: $primary;
29
- // margin-top: 3.5px;
30
- // margin-left: 3px;
31
- // height: 26px;
32
-
33
- // .file-label {
34
- // color: $white-100;
35
- // font-weight: 400;
36
- // }
37
- // }
38
- // }
39
- // }
40
-
41
- // label {
42
- // background-color: transparent;
43
- // height: 36px;
44
- // font-weight: 400;
45
- // border-radius: 4px;
46
- // border: 1px solid $primary-10;
47
- // font-size: 13px;
48
-
49
- // .file-cta {
50
- // background-color: transparent;
51
- // border: none;
52
- // }
53
-
54
- // &:hover {
55
- // border-color: $black-80;
56
- // }
57
-
58
- // &.bg-white {
59
- // background-color: $white-100;
60
- // }
61
-
62
- // &:focus {
63
- // border: 1px solid $primary;
64
- // outline: none;
65
- // background-color: $white-100;
66
- // }
67
- // }
68
- // }
69
-
70
- // input#captcha {
71
- // background-color: $white-100;
72
- // height: 36px;
73
- // font-weight: 400;
74
- // width: 100%;
75
- // border-radius: 4px;
76
- // border: 1px solid $primary-90;
77
- // padding: 8px 15px;
78
- // font-size: 13px;
79
- // transition: background-color 0.3s ease-in-out;
80
-
81
- // &:focus {
82
- // outline: none;
83
- // border-bottom: 1px solid $primary-10;
84
- // }
85
- // }
86
-
87
- // // AC-Checkbox
88
- // .ac-single-checkbox {
89
- // .is-checkradio {
90
- // position: unset !important;
91
- // }
92
-
93
- // .is-checkradio[type="checkbox"].ac-checkbox + label::before {
94
- // height: 16px;
95
- // width: 16px;
96
- // background-color: $primary-90;
97
- // }
98
-
99
- // .is-checkradio[type="checkbox"].ac-checkbox:checked + label::before {
100
- // background-color: $primary;
101
- // border-color: $primary;
102
- // }
103
-
104
- // .is-checkradio[type="checkbox"].ac-checkbox + label::after {
105
- // top: 6px;
106
- // left: 6px;
107
- // border-color: $black-80;
108
- // width: 0.3rem;
109
- // height: 0.5rem;
110
- // }
111
-
112
- // .is-checkradio[type="checkbox"].ac-checkbox:checked + label::after {
113
- // border-color: $white-100;
114
- // }
115
-
116
- // .is-checkradio[type="checkbox"].ac-checkbox + label {
117
- // color: $primary-10;
118
- // font-size: 13px !important;
119
- // padding-left: 25px;
120
- // user-select: none;
121
- // }
122
-
123
- // .is-checkradio[type="checkbox"].ac-checkbox:checked + label {
124
- // color: $primary !important;
125
- // }
126
-
127
- // .is-checkradio[type="checkbox"].ac-checkbox + label {
128
- // color: $primary-10;
129
- // font-size: 13px;
130
- // padding-left: 25px;
131
- // user-select: none;
132
- // }
133
-
134
- // .is-checkradio[type="checkbox"],
135
- // .is-checkradio[type="radio"] {
136
- // display: none;
137
- // }
138
- // }
139
-
140
- // .ac-single-radio {
141
- // &.is-selected {
142
- // .is-checkradio[type="radio"].ac-radio + label {
143
- // color: $primary;
144
- // }
145
- // }
146
- // }
147
-
148
- // .is-checkradio[type="checkbox"] + label::before,
149
- // .is-checkradio[type="checkbox"] + label:before {
150
- // top: 3px;
151
- // }
152
-
153
- // // AC-Switch
154
- // .ac-single-switch {
155
- // label {
156
- // user-select: none;
157
- // font-size: 13px;
158
- // font-weight: 400;
159
- // color: $primary-10;
160
-
161
- // &::before {
162
- // background-color: #cad3df;
163
- // }
164
- // }
165
-
166
- // .button.is-information {
167
- // margin-top: 6px;
168
- // }
169
-
170
- // &.is-small {
171
- // label {
172
- // font-size: 13px !important;
173
- // }
174
- // .switch[type="checkbox"] + label {
175
- // font-size: 13px;
176
- // padding-top: 0;
177
- // padding-left: 40px;
178
- // height: auto;
179
-
180
- // &::before {
181
- // width: 30px;
182
- // height: 16.2px;
183
- // }
184
-
185
- // &::after {
186
- // top: 2px;
187
- // left: 2px;
188
- // width: 12px;
189
- // height: 12px;
190
- // }
191
- // }
192
-
193
- // .switch[type="checkbox"]:checked + label {
194
- // &::after {
195
- // left: 15px;
196
- // }
197
- // }
198
- // }
199
-
200
- // .switch {
201
- // &[type="checkbox"] + label {
202
- // padding-top: 3px;
203
- // &::before {
204
- // background-color: $black-50;
205
- // }
206
- // }
207
-
208
- // &.ac-switch {
209
- // &.is-primary {
210
- // @include ac-switch($primary);
211
- // }
212
-
213
- // &.is-link {
214
- // @include ac-switch($info);
215
- // }
216
-
217
- // &.is-info {
218
- // @include ac-switch($info);
219
- // }
220
-
221
- // &.is-success {
222
- // @include ac-switch($success);
223
- // }
224
-
225
- // &.is-warning {
226
- // @include ac-switch($warning);
227
- // }
228
-
229
- // &.is-danger {
230
- // @include ac-switch($danger);
231
- // }
232
- // }
233
- // }
234
- // }
235
-
236
- // .ac-single-switch.is-small .switch[type="checkbox"] + label,
237
- // .buttons.are-small
238
- // .ac-single-switch.button.ac-button
239
- // .switch[type="checkbox"]
240
- // + label {
241
- // height: 19px;
242
- // }
243
-
244
- // // transparent input
245
- // .transparent-input {
246
- // display: flex;
247
- // align-items: center;
248
- // width: calc(100% - 100px);
249
-
250
- // span {
251
- // width: 100%;
252
- // }
253
-
254
- // input {
255
- // border: none;
256
- // background-color: transparent;
257
- // font-size: 18px;
258
- // font-weight: 400;
259
- // font-family: $font-heading;
260
- // color: $primary-20;
261
- // width: 100%;
262
- // padding: 5px 0;
263
-
264
- // &:focus {
265
- // outline: none;
266
- // border-bottom: 1px solid $primary-10;
267
- // }
268
- // }
269
- // }
270
-
271
- // // AC-Radio
272
- // .ac-single-radio {
273
- // .is-checkradio[type="radio"] {
274
- // & + label {
275
- // padding-left: 25px;
276
- // font-size: 13px;
277
- // padding: 0.3rem 0.5rem 0.2rem 1.5rem;
278
-
279
- // &::after {
280
- // background-color: $primary;
281
- // width: 16px;
282
- // height: 16px;
283
- // top: 5px;
284
- // }
285
-
286
- // &:after {
287
- // background-color: $primary;
288
- // }
289
-
290
- // &:before {
291
- // border-color: $primary;
292
- // width: 16px;
293
- // height: 16px;
294
- // top: 5px;
295
- // }
296
- // }
297
-
298
- // &:hover {
299
- // &:not([disabled]) {
300
- // & + label {
301
- // &:before {
302
- // border-color: $primary !important;
303
- // }
304
- // }
305
- // }
306
- // }
307
- // }
308
-
309
- // .is-checkradio[type="radio"]:checked {
310
- // & + label {
311
- // color: $primary;
312
- // }
313
- // }
314
- // }
315
- // // dark theme start
316
- // .is-dark-theme {
317
- // .ac-single-input {
318
- // input,
319
- // .file-input,
320
- // .ac-dropdown-content {
321
- // background-color: transparent;
322
- // }
323
-
324
- // label {
325
- // color: $primary-10;
326
- // }
327
- // .button.is-information:focus {
328
- // background-color: $black-80;
329
- // }
330
- // }
331
- // }
332
- // // dark theme end
333
- // /****************************************
334
- // Responsive Classes
335
- // *****************************************/
336
- // // Extra small devices (portrait phones, less than 576px)
337
- // @media (max-width: 575.98px) {
338
- // .ac-single-input {
339
- // input {
340
- // height: 36px;
341
- // font-size: 13px;
342
- // font-weight: 400;
343
- // }
344
-
345
- // label {
346
- // top: 9px;
347
- // font-size: 13px;
348
-
349
- // &.show-label {
350
- // top: -9px;
351
- // font-size: 12px;
352
- // }
353
- // }
354
-
355
- // textarea {
356
- // font-size: 13px;
357
- // }
358
-
359
- // span {
360
- // &.eye {
361
- // i.fa {
362
- // padding: 10px;
363
- // }
364
- // }
365
- // }
366
-
367
- // .ac-search-button {
368
- // margin-top: -18px;
369
- // }
370
- // }
371
-
372
- // .ac-file-upload {
373
- // label {
374
- // height: 36px;
375
- // font-size: 13px;
376
- // }
377
- // }
378
- // }
379
-
380
- // // Small devices (landscape phones, 576px and up)
381
- // @media (min-width: 576px) and (max-width: 767.98px) {
382
- // }
383
-
384
- // // Medium devices (tablets, 768px and up)
385
- // @media (min-width: 768px) and (max-width: 991.98px) {
386
- // }
387
-
388
- // // Large devices (desktops, 992px and up)
389
- // @media (min-width: 992px) and (max-width: 1199.98px) {
390
- // }
391
-
392
- // // Extra large devices (large desktops, 1200px and up)
393
- // @media (min-width: 1200px) {
394
- // }
395
1
  .ac-single-input {
396
2
  position: relative;
397
3
  z-index: 1;
@@ -422,7 +28,6 @@
422
28
  }
423
29
 
424
30
  &.is-success {
425
-
426
31
  input,
427
32
  .ac-card,
428
33
  textarea {
@@ -435,7 +40,6 @@
435
40
  }
436
41
 
437
42
  &.is-danger {
438
-
439
43
  input,
440
44
  .ac-card,
441
45
  textarea {
@@ -448,7 +52,6 @@
448
52
  }
449
53
 
450
54
  &.is-loading {
451
-
452
55
  input,
453
56
  .ac-card,
454
57
  textarea {
@@ -770,10 +373,12 @@
770
373
  transition: 0.3s;
771
374
 
772
375
  &:hover {
773
- background-color: hsla(var(--hsl-hue),
774
- var(--hsl-saturation),
775
- var(--hsl-lightness),
776
- 0.2);
376
+ background-color: hsla(
377
+ var(--hsl-hue),
378
+ var(--hsl-saturation),
379
+ var(--hsl-lightness),
380
+ 0.2
381
+ );
777
382
  color: $primary;
778
383
  }
779
384
  }
@@ -903,7 +508,7 @@
903
508
  // check radio
904
509
 
905
510
  .ac-single-radio {
906
- .is-checkradio[type="radio"]+label {
511
+ .is-checkradio[type="radio"] + label {
907
512
  padding-left: 25px;
908
513
 
909
514
  &:before {
@@ -921,27 +526,48 @@
921
526
  }
922
527
  }
923
528
 
924
- .is-checkradio[type="radio"]+label::after,
925
- .is-checkradio[type="radio"]+label:after {
529
+ .is-checkradio[type="radio"] + label::after,
530
+ .is-checkradio[type="radio"] + label:after {
926
531
  background: $primary;
927
532
  }
928
533
 
929
- .is-checkradio[type="checkbox"]:checked+label::before,
930
- .is-checkradio[type="checkbox"]:checked+label:before,
931
- .is-checkradio[type="radio"]:checked+label::before,
932
- .is-checkradio[type="radio"]:checked+label:before {
534
+ .is-checkradio[type="checkbox"]:checked + label::before,
535
+ .is-checkradio[type="checkbox"]:checked + label:before,
536
+ .is-checkradio[type="radio"]:checked + label::before,
537
+ .is-checkradio[type="radio"]:checked + label:before {
933
538
  border: 0.2rem solid $primary;
934
539
  }
935
540
 
936
- .is-checkradio[type="checkbox"]:hover:not([disabled])+label::before,
937
- .is-checkradio[type="checkbox"]:hover:not([disabled])+label:before,
938
- .is-checkradio[type="radio"]:hover:not([disabled])+label::before,
939
- .is-checkradio[type="radio"]:hover:not([disabled])+label:before {
541
+ .is-checkradio[type="checkbox"]:hover:not([disabled]) + label::before,
542
+ .is-checkradio[type="checkbox"]:hover:not([disabled]) + label:before,
543
+ .is-checkradio[type="radio"]:hover:not([disabled]) + label::before,
544
+ .is-checkradio[type="radio"]:hover:not([disabled]) + label:before {
940
545
  border-color: $primary-30 !important;
941
546
  }
942
547
 
943
- .is-checkradio[type="checkbox"]+label::after,
944
- .is-checkradio[type="checkbox"]+label:after {
548
+ .is-checkradio[type="checkbox"] + label::after,
549
+ .is-checkradio[type="checkbox"] + label:after {
945
550
  border-width: 0.2rem;
946
551
  border-color: $primary;
947
- }
552
+ }
553
+
554
+ // file upload
555
+ .file.ac-file {
556
+ .file-name {
557
+ border-color: $primary-80;
558
+ max-width: 100%;
559
+ width: 100%;
560
+ height: 36px;
561
+ display: flex;
562
+ align-items: center;
563
+ }
564
+ .file-label {
565
+ width: 100%;
566
+ }
567
+
568
+ .file-cta {
569
+ color: $primary-10;
570
+ height: 100%;
571
+ background-color: $primary-95;
572
+ }
573
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.1.0-beta.75",
3
+ "version": "1.1.0-beta.77",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -24,7 +24,7 @@ withDefaults(defineProps<Props>(), {
24
24
  <div class="ac-cheader-left">
25
25
  <!-- title -->
26
26
  <div class="ac-content-title">
27
- <h5 class="is-flex is-align-items-center">
27
+ <h5 class="is-flex is-align-items-center gap-8">
28
28
  <slot name="header-icon" />
29
29
  {{ headerTitle }}
30
30
  <slot name="title-right-actions" />
@@ -347,7 +347,7 @@ onUpdated(() => {
347
347
  color: $black-5;
348
348
  transition: 0.3s ease-in-out;
349
349
  .tag {
350
- background-color: $primary;
350
+ background-color: $primary-80;
351
351
  }
352
352
  &:hover {
353
353
  background-color: $primary-95 !important;