@appscode/design-system 1.1.0-alpha.6 → 1.1.0-alpha.8

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,6 +1,7 @@
1
1
  @import "initial-variables";
2
2
  @import "derived-variables";
3
3
  @import "mixin";
4
+ @import "extended";
4
5
  @import "typography";
5
6
  @import "default";
6
7
  @import "grid";
@@ -0,0 +1,34 @@
1
+ %card-hover {
2
+ &::before {
3
+ content: '';
4
+ position: absolute;
5
+ top: 0;
6
+ right: 0;
7
+ bottom: 0;
8
+ left: 0;
9
+ border-top: solid 1px;
10
+ border-bottom: solid 1px;
11
+ transition: 0.3s;
12
+ transform: scaleX(0);
13
+ border-color: #1971bd;
14
+ }
15
+ &::after {
16
+ content: '';
17
+ position: absolute;
18
+ top: 0;
19
+ right: 0;
20
+ bottom: 0;
21
+ left: 0;
22
+ border-left: solid 1px;
23
+ border-right: solid 1px;
24
+ transition: 0.3s;
25
+ transform: scaleY(0);
26
+ border-color: #1971bd;
27
+ }
28
+ &:hover {
29
+ &::before,
30
+ &::after{
31
+ transform: scale(1);
32
+ }
33
+ }
34
+ }
@@ -47,7 +47,7 @@ $swift-primary: #3f51b6;
47
47
  --ac-gray-dark: #5f5f5f;
48
48
  --ac-gray-light: #8d8d8d;
49
49
  --ac-gray-lightest: #d1d1d1;
50
- --ac-white-light: #e7e7e7;
50
+ --ac-white-light: #d2e7f9;
51
51
  --ac-white-lighter: #f2f5f8;
52
52
  --ac-white-lightest: #f8f9fb;
53
53
 
@@ -3,6 +3,7 @@
3
3
  @import "buttons";
4
4
  @import "breadcumb";
5
5
  @import "ac-card";
6
+ @import "basic-card";
6
7
  @import "ac-multi-select";
7
8
  @import "ac-code-highlight";
8
9
  @import "navbar";
@@ -0,0 +1,124 @@
1
+ .card-details {
2
+ border: 1px solid #d2e7f9;
3
+ padding: 30px 20px;
4
+ width: calc(33.3% - 8px);
5
+ min-width: 400px;
6
+ max-width: 525px;
7
+ // border-radius: 4px;
8
+ transition: 0.3s ease-in-out;
9
+ position: relative;
10
+ z-index: 1;
11
+ @extend %card-hover;
12
+
13
+ // &:hover {
14
+ // border: 1px solid #1971bd;
15
+ // }
16
+
17
+ .c-header {
18
+ display: flex;
19
+ margin-bottom: 20px;
20
+
21
+ .c-logo {
22
+ width: 54px;
23
+ height: 54px;
24
+ background: #e8f3fc;
25
+ border-radius: 50%;
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: center;
29
+ margin-right: 24px;
30
+
31
+ img {
32
+ height: 24px;
33
+ }
34
+ }
35
+
36
+ .c-content {
37
+ width: calc(100% - 78px);
38
+ h4 {
39
+ font-size: 18px;
40
+ line-height: 130%;
41
+ color: #030d17;
42
+ }
43
+ .icon {
44
+ color: #0c365a;
45
+ cursor: pointer;
46
+ position: relative;
47
+ z-index: 1;
48
+ &:after {
49
+ position: absolute;
50
+ content: "";
51
+ border-radius: 50%;
52
+ width: 32px;
53
+ height: 32px;
54
+ background: #e8f3fc;
55
+ opacity: 0;
56
+ visibility: hidden;
57
+ transition: 0.3s ease-in-out;
58
+ z-index: -1;
59
+ }
60
+ &:hover {
61
+ &:after {
62
+ opacity: 1;
63
+ visibility: visible;
64
+ }
65
+ }
66
+ }
67
+ .tags {
68
+ margin-top: 12px;
69
+ }
70
+ }
71
+ }
72
+
73
+ .c-body {
74
+ display: flex;
75
+ flex-wrap: wrap;
76
+ gap: 20px;
77
+ justify-content: space-between;
78
+ p {
79
+ width: calc(25% - 16px);
80
+
81
+ span {
82
+ font-size: 11px;
83
+ color: #666666;
84
+ display: block;
85
+ }
86
+ strong {
87
+ color: #061b2d;
88
+ font-size: 13px;
89
+ font-weight: 400;
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ // ac card
96
+ .card-basic {
97
+ padding: 20px;
98
+ width: calc(25% - 8px);
99
+ max-width: 390px;
100
+ min-width: 290px;
101
+ position: relative;
102
+ @extend %card-hover;
103
+
104
+ .required {
105
+ position: absolute;
106
+ left: 20px;
107
+ top: -9px;
108
+ }
109
+ .c-header {
110
+ .c-title {
111
+
112
+ h4 {
113
+ font-size: 18px;
114
+ color: #061b2d;
115
+ }
116
+ }
117
+ }
118
+
119
+ .c-body {
120
+ p {
121
+ color: #0C365A;
122
+ }
123
+ }
124
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.1.0-alpha.6",
3
+ "version": "1.1.0-alpha.8",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -32,6 +32,7 @@
32
32
  <!-- modal body start -->
33
33
  <div
34
34
  class="ac-modal-body ac-vscrollbar"
35
+ :class="modifierBodyClasses"
35
36
  data-testid="ac-modal-content-with-scroll"
36
37
  >
37
38
  <div class="ac-modal-content">
@@ -45,11 +46,7 @@
45
46
  <!-- modal footer start -->
46
47
  <div
47
48
  v-if="!hideActionFooter"
48
- class="
49
- ac-modal-footer
50
- action-footer
51
- is-flex is-align-items-center is-justify-content-space-between
52
- "
49
+ class="ac-modal-footer action-footer is-flex is-align-items-center is-justify-content-space-between"
53
50
  >
54
51
  <div>
55
52
  <slot name="modal-footer-left" />
@@ -91,6 +88,10 @@ export default {
91
88
  type: Boolean,
92
89
  default: false,
93
90
  },
91
+ modifierBodyClasses: {
92
+ type: String,
93
+ default: "",
94
+ },
94
95
  },
95
96
 
96
97
  components: {
@@ -30,6 +30,7 @@
30
30
  <!-- modal body start -->
31
31
  <div
32
32
  class="ac-modal-body ac-vscrollbar"
33
+ :class="modifierBodyClasses"
33
34
  data-testid="ac-modal-content-with-scroll"
34
35
  >
35
36
  <div class="ac-modal-content">
@@ -92,6 +93,10 @@ export default defineComponent({
92
93
  type: Boolean,
93
94
  default: false,
94
95
  },
96
+ modifierBodyClasses: {
97
+ type: String,
98
+ default: "",
99
+ },
95
100
  },
96
101
  emits: ["closemodal"],
97
102