@appscode/design-system 1.1.0-beta.35 → 1.1.0-beta.37

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
+ // }
@@ -55,7 +55,7 @@
55
55
 
56
56
  .tabs {
57
57
  padding: 0 20px 0 20px;
58
- background-color: $primary-90;
58
+ background-color: $primary-10;
59
59
  overflow: inherit;
60
60
  height: 40px;
61
61
 
@@ -151,11 +151,12 @@
151
151
  top: 5px;
152
152
  left: 35px;
153
153
  position: absolute;
154
- background: #333;
154
+ background: $primary-20;
155
155
  width: 150px;
156
156
  border-radius: 4px;
157
157
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
158
158
  z-index: 99;
159
+ border-color: $primary-20;
159
160
 
160
161
  .items-inner {
161
162
  border: none;
@@ -163,7 +164,7 @@
163
164
  li {
164
165
  border: none;
165
166
  border-right: none !important;
166
- border-bottom: 1px solid $primary-90;
167
+ border-bottom: 1px solid $primary-30;
167
168
  width: 100%;
168
169
 
169
170
  &:last-child {
@@ -174,7 +175,8 @@
174
175
  font-size: 13px;
175
176
  padding: 10px 20px;
176
177
  justify-content: flex-start;
177
- border-bottom: 1px solid #444;
178
+ border-bottom: 1px solid $primary-20;
179
+ color: $primary-97;
178
180
 
179
181
  &:last-child {
180
182
  border-bottom: none;
@@ -187,10 +189,8 @@
187
189
  }
188
190
  }
189
191
  }
190
-
191
192
  }
192
193
 
193
-
194
194
  .right-control {
195
195
  .button {
196
196
  .fa {
@@ -287,45 +287,14 @@
287
287
  }
288
288
  }
289
289
 
290
-
291
-
292
290
  .notification-inner {
293
291
  h3 {
294
292
  color: $primary-97;
295
293
  }
296
294
  }
297
295
 
298
- // dark theme start
299
- // .is-dark-theme {
300
-
301
- // // ac-terminal
302
- // .ac-terminal {
303
- // .terminal-setting {
304
- // --ac-color-value: var(--dark-bg-light);
305
-
306
- // .left-content .ac-select-box-wrapper .multiselect .multiselect__tags {
307
- // .multiselect__input {
308
- // background-color: var(--dark-bg-light);
309
- // color: var(--ac-white-text);
310
- // }
311
-
312
- // .multiselect__single {
313
- // background-color: var(--dark-bg-light);
314
- // color: var(--ac-white-text);
315
- // }
316
- // }
317
- // }
318
-
319
- // .multiselect {
320
- // .multiselect__tags {
321
- // background-color: transparent;
322
-
323
- // span {
324
- // color: var(--ac-white-text);
325
- // }
326
- // }
327
- // }
328
- // }
329
- // }
330
-
331
- // dark theme end
296
+ .sidebar-collapsed {
297
+ .ac-terminal {
298
+ width: calc(100% - 60px);
299
+ }
300
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.1.0-beta.35",
3
+ "version": "1.1.0-beta.37",
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 {
@@ -395,7 +395,7 @@ watch(longRunningTaskStatus, (n) => {
395
395
  .task-log {
396
396
  width: 70%;
397
397
  height: 100%;
398
- border-radius: 1rem;
398
+ border-radius: 4px;
399
399
  font-size: 13px;
400
400
  }
401
401
  }
@@ -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
  }
@@ -197,34 +197,6 @@ withDefaults(defineProps<Props>(), {
197
197
  }
198
198
  }
199
199
  }
200
-
201
- // .ac-options.is-right {
202
- // .option-dots {
203
- // transition: 0.3s;
204
-
205
- // i.fa {
206
- // &.fa-angle-left {
207
- // font-size: 18px;
208
- // }
209
- // }
210
-
211
- // &:active {
212
- // i.fa {
213
- // background-color: $primary-90;
214
- // width: 25px;
215
- // height: 25px;
216
- // text-align: center;
217
- // line-height: 25px;
218
- // border-radius: 50%;
219
- // }
220
- // }
221
-
222
- // &:hover {
223
- // color: $primary !important;
224
- // transform: scale(1.2);
225
- // }
226
- // }
227
- // }
228
200
  }
229
201
 
230
202
  .sidebar-collapsed {
@@ -73,8 +73,11 @@ const AccentColorPicker = defineAsyncComponent(
73
73
  .accent-color-picker {
74
74
  display: none;
75
75
  }
76
- .sidebar-footer .back-button {
77
- width: 100%;
76
+ .sidebar-footer {
77
+ .back-button {
78
+ width: 100%;
79
+ transform: rotate(180deg);
80
+ }
78
81
  }
79
82
  }
80
83
  </style>
@@ -98,6 +98,45 @@
98
98
  visibility: visible;
99
99
  background-color: transparent;
100
100
  }
101
+ &.is-active {
102
+ color: $success;
103
+ &:hover {
104
+ &::after {
105
+ background-color: $green-90;
106
+ }
107
+ }
108
+ &:after {
109
+ opacity: 1;
110
+ visibility: visible;
111
+ background-color: $green-95;
112
+ }
113
+ }
114
+ }
115
+ &.is-warning {
116
+ color: $warning;
117
+ &:hover {
118
+ &::after {
119
+ background-color: $yellow-90;
120
+ }
121
+ }
122
+ &:after {
123
+ opacity: 1;
124
+ visibility: visible;
125
+ background-color: transparent;
126
+ }
127
+ &.is-active {
128
+ color: $warning;
129
+ &:hover {
130
+ &::after {
131
+ background-color: $yellow-90;
132
+ }
133
+ }
134
+ &:after {
135
+ opacity: 1;
136
+ visibility: visible;
137
+ background-color: $yellow-95;
138
+ }
139
+ }
101
140
  }
102
141
  }
103
142
  &.is-open {
@@ -1,4 +1,11 @@
1
- <script lang="ts" setup></script>
1
+ <script lang="ts" setup>
2
+ interface Props {
3
+ isSidebarVisible: boolean;
4
+ }
5
+ withDefaults(defineProps<Props>(), {
6
+ isSidebarVisible: true,
7
+ });
8
+ </script>
2
9
 
3
10
  <template>
4
11
  <div class="sidebar-tabs-layout is-flex">
@@ -8,7 +15,7 @@
8
15
  </div>
9
16
  <!-- sidebar tabs -->
10
17
 
11
- <div class="content-wrapper">
18
+ <div class="content-wrapper" :class="isSidebarVisible ? 'pl-220' : 'pl-0'">
12
19
  <!-- sidebar content -->
13
20
  <slot name="tabs-content" />
14
21
  <!-- sidebar content -->
@@ -21,8 +28,10 @@
21
28
  position: fixed;
22
29
  background-color: $white-100;
23
30
  }
24
- .content-wrapper {
31
+ .pl-220 {
25
32
  padding-left: 220px;
33
+ }
34
+ .content-wrapper {
26
35
  padding-bottom: 40px;
27
36
  width: 100%;
28
37
  }