@appscode/design-system 1.0.43-alpha.12 → 1.0.43-alpha.16

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.
Files changed (52) hide show
  1. package/base/utilities/_default.scss +16 -17
  2. package/base/utilities/_derived-variables.scss +0 -12
  3. package/base/utilities/_initial-variables.scss +228 -47
  4. package/base/utilities/_mixin.scss +10 -1
  5. package/base/utilities/_typography.scss +10 -4
  6. package/components/_ac-accordion.scss +1 -0
  7. package/components/_ac-alert-box.scss +5 -5
  8. package/components/_ac-card.scss +16 -16
  9. package/components/_ac-code-highlight.scss +2 -0
  10. package/components/_ac-content-layout.scss +3 -3
  11. package/components/_ac-drag.scss +6 -6
  12. package/components/_ac-input.scss +20 -18
  13. package/components/_ac-modal.scss +5 -4
  14. package/components/_ac-multi-select.scss +9 -9
  15. package/components/_ac-options.scss +8 -8
  16. package/components/_ac-select-box.scss +2 -2
  17. package/components/_ac-table.scss +37 -33
  18. package/components/_ac-tabs.scss +33 -20
  19. package/components/_ac-tags.scss +2 -2
  20. package/components/_app-drawer.scss +4 -4
  21. package/components/_breadcumb.scss +5 -2
  22. package/components/_buttons.scss +21 -20
  23. package/components/_card-body-wrapper.scss +2 -2
  24. package/components/_dashboard-header.scss +1 -1
  25. package/components/_go-to-top.scss +1 -1
  26. package/components/_image-upload.scss +1 -1
  27. package/components/_left-sidebar-menu.scss +11 -11
  28. package/components/_monaco-editor.scss +1 -1
  29. package/components/_navbar.scss +21 -19
  30. package/components/_overview-page.scss +1 -2
  31. package/components/_pagination.scss +2 -2
  32. package/components/_payment-card.scss +18 -11
  33. package/components/_preview-modal.scss +6 -6
  34. package/components/_progress-bar.scss +1 -1
  35. package/components/_subscription-card.scss +4 -4
  36. package/components/_table-of-content.scss +1 -1
  37. package/components/_widget-menu.scss +9 -9
  38. package/components/_wizard.scss +17 -17
  39. package/components/ac-toaster/_ac-toasted.scss +4 -4
  40. package/components/bbum/_card-team.scss +4 -4
  41. package/components/bbum/_information-center.scss +2 -2
  42. package/components/bbum/_mobile-desktop.scss +5 -5
  43. package/components/bbum/_post.scss +5 -4
  44. package/components/bbum/_sign-up-notification.scss +3 -3
  45. package/components/bbum/_single-post-preview.scss +8 -8
  46. package/components/bbum/_user-profile.scss +2 -2
  47. package/components/ui-builder/_ui-builder.scss +10 -8
  48. package/layouts/_404.scss +2 -1
  49. package/layouts/_code-preview.scss +14 -7
  50. package/package.json +1 -1
  51. package/plugins/theme.js +138 -0
  52. package/vue-components/v3/dropdown/DropdownMenu.vue +1 -1
@@ -17,7 +17,7 @@
17
17
  top: 12px;
18
18
  left: 50%;
19
19
  transform: translate(-50%, -50%);
20
- background: $ac-white;
20
+ background-color: $ac-white;
21
21
  border-radius: 0 0 50px 50px;
22
22
  }
23
23
 
@@ -30,21 +30,21 @@
30
30
  left: 50%;
31
31
  top: 7px;
32
32
  transform: translate(-50%, -50%);
33
- background: $ac-bg;
33
+ background-color: $ac-bg;
34
34
  border-radius: 10px;
35
35
  }
36
36
 
37
37
  .content {
38
38
  width: 360px;
39
39
  height: 640px;
40
- background: white;
40
+ background-color: white;
41
41
  }
42
42
 
43
43
  .circle-shape {
44
44
  width: 10px;
45
45
  height: 10px;
46
46
  border-radius: 50%;
47
- background: $ac-bg;
47
+ background-color: $ac-bg;
48
48
  display: block;
49
49
  position: absolute;
50
50
  top: 2px;
@@ -67,7 +67,7 @@
67
67
  position: absolute;
68
68
  width: calc(683px + 200px);
69
69
  height: 30px;
70
- background: $ac-white;
70
+ background-color: $ac-white;
71
71
  border-radius: 6px 6px 12px 12px;
72
72
  top: 390px;
73
73
  left: -100px;
@@ -5,8 +5,8 @@
5
5
  .textarea {
6
6
  height: 83px;
7
7
  width: 100%;
8
- background: $ac-white;
9
- border: 1px solid #e5e9f2;
8
+ background-color: $ac-white;
9
+ border: 1px solid $ac-white-light;
10
10
  border-radius: 4px;
11
11
  padding: 30px 170px 30px 30px;
12
12
  font-size: $font-size-normal;
@@ -41,12 +41,13 @@
41
41
 
42
42
  label {
43
43
  display: block;
44
- border-left: 1px solid #e5e9f2;
44
+ border-left: 1px solid $ac-white-light;
45
45
  padding: 30px;
46
46
  cursor: pointer;
47
47
 
48
48
  img {
49
- min-width: 24px;
49
+ width: auto;
50
+ height: 20px;
50
51
  }
51
52
  }
52
53
 
@@ -46,10 +46,10 @@
46
46
  background-color: lighten($color: $ac-danger, $amount: 40);
47
47
  font-size: $font-size-small;
48
48
  transition: 0.3s ease-in-out;
49
- &:hover{
49
+ &:hover {
50
50
  background-color: $ac-danger;
51
51
  color: $ac-white;
52
- img{
52
+ img {
53
53
  filter: brightness(100);
54
54
  }
55
55
  }
@@ -74,7 +74,7 @@
74
74
  }
75
75
 
76
76
  p {
77
- color: #74818d;
77
+ color: $ac-color-text;
78
78
  font-size: $font-size-small;
79
79
  margin-bottom: 10px;
80
80
  }
@@ -1,6 +1,6 @@
1
1
  .single-post-preview {
2
- background: $ac-white;
3
- border: 1px solid #e5e9f2;
2
+ background-color: $ac-white;
3
+ border: 1px solid $ac-white-light;
4
4
  border-radius: 4px;
5
5
  margin-bottom: 15px;
6
6
 
@@ -35,7 +35,7 @@
35
35
 
36
36
  a {
37
37
  font-size: $font-size-medium;
38
- color: #1c2d41;
38
+ color: $ac-color-heading;
39
39
  line-height: 1;
40
40
  font-weight: 500;
41
41
  }
@@ -68,10 +68,10 @@
68
68
 
69
69
  .post-body {
70
70
  padding: 0 20px 15px;
71
- border-bottom: 1px solid #ebeff5;
71
+ border-bottom: 1px solid $ac-white-light;
72
72
 
73
73
  p {
74
- color: #3c4858;
74
+ color: $ac-color-text;
75
75
  font-size: $font-size-small;
76
76
  line-height: 160%;
77
77
  }
@@ -90,7 +90,7 @@
90
90
 
91
91
  li {
92
92
  font-size: $font-size-normal;
93
- color: #3c4858;
93
+ color: $ac-color-value;
94
94
  }
95
95
  }
96
96
  }
@@ -220,13 +220,13 @@
220
220
  button {
221
221
  background-color: transparent;
222
222
  border: none;
223
- color: #3c4858;
223
+ color: $ac-color-value;
224
224
  transition: 0.3s;
225
225
  font-weight: 500;
226
226
  cursor: pointer;
227
227
  display: block;
228
228
  width: 50%;
229
- border-right: 1px solid #ebeff5 !important;
229
+ border-right: 1px solid $ac-white-light !important;
230
230
  padding: 10px;
231
231
 
232
232
  &:last-child {
@@ -48,7 +48,7 @@
48
48
  line-height: 1.5;
49
49
  font-weight: 400;
50
50
  display: block;
51
- color: #74818d;
51
+ color: $ac-color-text;
52
52
  }
53
53
  }
54
54
  }
@@ -59,7 +59,7 @@
59
59
 
60
60
  p {
61
61
  font-size: 14px;
62
- color: #74818d;
62
+ color: $ac-color-text;
63
63
  line-height: 160%;
64
64
  margin-bottom: 20px;
65
65
  }
@@ -18,6 +18,7 @@
18
18
  p {
19
19
  font-size: 13px;
20
20
  margin-bottom: 10px;
21
+ color: $ac-color-value;
21
22
  }
22
23
  }
23
24
  .key-value-save {
@@ -63,7 +64,7 @@
63
64
  top: 5px;
64
65
  width: 1px;
65
66
  height: calc(100% - 20px);
66
- border: 1px dashed #ddd;
67
+ border: 1px dashed $ac-white-light;
67
68
  z-index: -1;
68
69
  }
69
70
 
@@ -74,7 +75,7 @@
74
75
  bottom: 6px;
75
76
  width: 12px;
76
77
  height: 12px;
77
- background: #eee;
78
+ background-color: $ac-white-light;
78
79
  border-radius: 50%;
79
80
  z-index: -1;
80
81
  }
@@ -94,11 +95,12 @@
94
95
  display: inline-block;
95
96
  text-align: center;
96
97
  font-size: 10px;
97
- border: 1px solid #a6abbd;
98
+ border: 1px solid $ac-white-light;
98
99
  border-radius: 50%;
99
100
  margin-right: 10px;
100
101
  cursor: pointer;
101
- background-color: #fff;
102
+ background-color: $ac-white;
103
+ color: $ac-color-value;
102
104
  }
103
105
  }
104
106
  }
@@ -114,13 +116,13 @@
114
116
  .table-inner {
115
117
  min-width: 630px;
116
118
  .thead {
117
- background-color: #f1f1f1;
119
+ background-color: $ac-white-lighter;
118
120
  .tr {
119
121
  .th {
120
122
  font-weight: 600;
121
123
  }
122
- border-top: 1px solid #e7e7e7;
123
- border-bottom: 1px solid #e7e7e7;
124
+ border-top: 1px solid var(--ac-white-light);
125
+ border-bottom: 1px solid var(--ac-white-light);
124
126
  }
125
127
  }
126
128
  .thead,
@@ -143,7 +145,7 @@
143
145
 
144
146
  .tbody {
145
147
  .tr {
146
- border-bottom: 1px solid #e7e7e7;
148
+ border-bottom: 1px solid $ac-white-light;
147
149
  }
148
150
  }
149
151
  }
package/layouts/_404.scss CHANGED
@@ -80,7 +80,8 @@
80
80
  Full HD Min Width 1407
81
81
  **************************************************************** */
82
82
  /* Full HD Min Width 1408px */
83
- @media (min-width: 1408px) {}
83
+ @media (min-width: 1408px) {
84
+ }
84
85
 
85
86
  /****************************************************************
86
87
  Widescreen Between 1216px and 1407px
@@ -18,6 +18,10 @@
18
18
  .ac-html-preview {
19
19
  width: 100%;
20
20
 
21
+ i.is-block {
22
+ color: $ac-color-value;
23
+ }
24
+
21
25
  .ac-navbar-area {
22
26
  position: inherit;
23
27
  }
@@ -29,7 +33,7 @@
29
33
  }
30
34
 
31
35
  &.ac-bg-dark {
32
- background-color: $ac-bg-dark;
36
+ background-color: $ac-color-heading;
33
37
  }
34
38
 
35
39
  .ac-html-preview {
@@ -54,13 +58,13 @@
54
58
 
55
59
  /* Handle */
56
60
  &::-webkit-scrollbar-thumb {
57
- background: #8392a5;
61
+ background-color: $ac-gray-light;
58
62
  border-radius: 10px;
59
63
  }
60
64
 
61
65
  /* Handle on hover */
62
66
  &::-webkit-scrollbar-thumb:hover {
63
- background: #8392a5;
67
+ background-color: $ac-gray-light;
64
68
  }
65
69
 
66
70
  .number {
@@ -91,7 +95,7 @@
91
95
  }
92
96
 
93
97
  .ac-code-preview-wrapper {
94
- border: 1px solid #e5e8ea;
98
+ border: 1px solid $ac-white-light;
95
99
  border-radius: 4px;
96
100
 
97
101
  .ac-code-header {
@@ -113,7 +117,7 @@
113
117
  .component-header {
114
118
  display: flex;
115
119
  justify-content: space-between;
116
- border-bottom: 1px solid #edf2f7;
120
+ border-bottom: 1px solid $ac-white-light;
117
121
  background-color: $ac-white;
118
122
 
119
123
  h3 {
@@ -121,7 +125,7 @@
121
125
  font-size: 16px;
122
126
  font-weight: 500;
123
127
  font-family: $ac-family-paragraph;
124
- color: #333;
128
+ color: $ac-color-value;
125
129
  }
126
130
 
127
131
  .component-switch {
@@ -145,18 +149,21 @@
145
149
  z-index: 1;
146
150
  max-height: 500px;
147
151
  overflow-y: auto;
152
+
148
153
  .copy-button {
149
154
  position: absolute;
150
155
  right: 5px;
151
156
  top: 5px;
157
+
152
158
  &:hover {
153
159
  box-shadow: none;
154
160
  }
155
161
  }
162
+
156
163
  pre {
157
164
  margin: 0;
158
165
  border-radius: 4px;
159
- font-size: 12px;
166
+ font-size: 14px;
160
167
 
161
168
  .token {
162
169
  &.tag {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.0.43-alpha.12",
3
+ "version": "1.0.43-alpha.16",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -0,0 +1,138 @@
1
+ export function HSLToHex(h, s, l) {
2
+ s /= 100;
3
+ l /= 100;
4
+
5
+ const c = (1 - Math.abs(2 * l - 1)) * s,
6
+ x = c * (1 - Math.abs(((h / 60) % 2) - 1)),
7
+ m = l - c / 2;
8
+
9
+ let r = 0,
10
+ g = 0,
11
+ b = 0;
12
+
13
+ if (0 <= h && h < 60) {
14
+ r = c;
15
+ g = x;
16
+ b = 0;
17
+ } else if (60 <= h && h < 120) {
18
+ r = x;
19
+ g = c;
20
+ b = 0;
21
+ } else if (120 <= h && h < 180) {
22
+ r = 0;
23
+ g = c;
24
+ b = x;
25
+ } else if (180 <= h && h < 240) {
26
+ r = 0;
27
+ g = x;
28
+ b = c;
29
+ } else if (240 <= h && h < 300) {
30
+ r = x;
31
+ g = 0;
32
+ b = c;
33
+ } else if (300 <= h && h < 360) {
34
+ r = c;
35
+ g = 0;
36
+ b = x;
37
+ }
38
+ // Having obtained RGB, convert channels to hex
39
+ r = Math.round((r + m) * 255).toString(16);
40
+ g = Math.round((g + m) * 255).toString(16);
41
+ b = Math.round((b + m) * 255).toString(16);
42
+
43
+ // Prepend 0s, if necessary
44
+ if (r.length == 1) r = "0" + r;
45
+ if (g.length == 1) g = "0" + g;
46
+ if (b.length == 1) b = "0" + b;
47
+
48
+ return "#" + r + g + b;
49
+ }
50
+ export function HexToHSL(H) {
51
+ // Convert hex to RGB first
52
+ let r = 0,
53
+ g = 0,
54
+ b = 0;
55
+ if (H.length == 4) {
56
+ r = parseInt("0x" + H[1] + H[1]);
57
+ g = parseInt("0x" + H[2] + H[2]);
58
+ b = parseInt("0x" + H[3] + H[3]);
59
+ } else if (H.length == 7) {
60
+ r = parseInt("0x" + H[1] + H[2]);
61
+ g = parseInt("0x" + H[3] + H[4]);
62
+ b = parseInt("0x" + H[5] + H[6]);
63
+ }
64
+ // Then to HSL
65
+ r /= 255;
66
+ g /= 255;
67
+ b /= 255;
68
+ const cmin = Math.min(r, g, b),
69
+ cmax = Math.max(r, g, b),
70
+ delta = cmax - cmin;
71
+ let h = 0,
72
+ s = 0,
73
+ l = 0;
74
+
75
+ if (delta == 0) h = 0;
76
+ else if (cmax == r) h = ((g - b) / delta) % 6;
77
+ else if (cmax == g) h = (b - r) / delta + 2;
78
+ else h = (r - g) / delta + 4;
79
+
80
+ h = Math.round(h * 60);
81
+
82
+ if (h < 0) h += 360;
83
+
84
+ l = (cmax + cmin) / 2;
85
+ s = delta == 0 ? 0 : delta / (1 - Math.abs(2 * l - 1));
86
+ s = +(s * 100).toFixed(1);
87
+ l = +(l * 100).toFixed(1);
88
+
89
+ return {
90
+ hue: `${h}`,
91
+ saturation: `${s}%`,
92
+ lightness: `${l}%`,
93
+ };
94
+ }
95
+ export function getThemeHSL() {
96
+ const hue = getComputedStyle(document.documentElement).getPropertyValue(
97
+ "--hsl-hue"
98
+ );
99
+ const saturation = getComputedStyle(
100
+ document.documentElement
101
+ ).getPropertyValue("--hsl-saturation");
102
+ const lightness = getComputedStyle(
103
+ document.documentElement
104
+ ).getPropertyValue("--hsl-lightness");
105
+
106
+ return {
107
+ hue,
108
+ saturation,
109
+ lightness,
110
+ };
111
+ }
112
+ export function setThemeHSL(h, s, l) {
113
+ document.documentElement.style.setProperty("--hsl-hue", h);
114
+ document.documentElement.style.setProperty("--hsl-saturation", s);
115
+ document.documentElement.style.setProperty("--hsl-lightness", l);
116
+ }
117
+ export function setFontHSL(h, s, l) {
118
+ document.documentElement.style.setProperty("--font-hsl-hue", h);
119
+ document.documentElement.style.setProperty("--font-hsl-saturation", s);
120
+ document.documentElement.style.setProperty("--font-hsl-lightness", l);
121
+ }
122
+ export function getFontHSL() {
123
+ const hue = getComputedStyle(document.documentElement).getPropertyValue(
124
+ "--font-hsl-hue"
125
+ );
126
+ const saturation = getComputedStyle(
127
+ document.documentElement
128
+ ).getPropertyValue("--font-hsl-saturation");
129
+ const lightness = getComputedStyle(
130
+ document.documentElement
131
+ ).getPropertyValue("--font-hsl-lightness");
132
+
133
+ return {
134
+ hue,
135
+ saturation,
136
+ lightness,
137
+ };
138
+ }
@@ -57,9 +57,9 @@ export default defineComponent({
57
57
 
58
58
  // attach click event listener on window, and close the dropdown
59
59
  function deactivateDropdown(e: Event) {
60
- e.preventDefault();
61
60
  const { target } = e;
62
61
  if (
62
+ isDropdownActive.value &&
63
63
  dropdown.value &&
64
64
  dropdown.value !== target &&
65
65
  !dropdown.value.contains(target as Node)