@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.
- package/base/utilities/_all.scss +1 -0
- package/base/utilities/_extended.scss +34 -0
- package/base/utilities/_initial-variables.scss +1 -1
- package/components/_all.scss +1 -0
- package/components/_basic-card.scss +124 -0
- package/package.json +1 -1
- package/vue-components/v2/modal/Modal.vue +6 -5
- package/vue-components/v3/modal/Modal.vue +5 -0
package/base/utilities/_all.scss
CHANGED
|
@@ -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
|
+
}
|
package/components/_all.scss
CHANGED
|
@@ -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
|
@@ -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
|
|