@appscode/design-system 1.1.0-alpha.24 → 1.1.0-alpha.26
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,9 +1,6 @@
|
|
|
1
1
|
.card-details {
|
|
2
2
|
border: 1px solid #d2e7f9;
|
|
3
3
|
padding: 30px 20px;
|
|
4
|
-
width: calc(33.3% - 8px);
|
|
5
|
-
min-width: 400px;
|
|
6
|
-
max-width: 525px;
|
|
7
4
|
// border-radius: 4px;
|
|
8
5
|
transition: 0.3s ease-in-out;
|
|
9
6
|
position: relative;
|
|
@@ -29,7 +26,7 @@
|
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
.c-content {
|
|
32
|
-
width: calc(100% -
|
|
29
|
+
width: calc(100% - 100px);
|
|
33
30
|
h4 {
|
|
34
31
|
font-size: 18px;
|
|
35
32
|
line-height: 130%;
|
|
@@ -102,7 +99,6 @@
|
|
|
102
99
|
}
|
|
103
100
|
.c-header {
|
|
104
101
|
.c-title {
|
|
105
|
-
|
|
106
102
|
h4 {
|
|
107
103
|
font-size: 18px;
|
|
108
104
|
color: #061b2d;
|
|
@@ -112,7 +108,7 @@
|
|
|
112
108
|
|
|
113
109
|
.c-body {
|
|
114
110
|
p {
|
|
115
|
-
color: #
|
|
111
|
+
color: #0c365a;
|
|
116
112
|
}
|
|
117
113
|
}
|
|
118
114
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { toRefs } from "vue";
|
|
3
|
+
const props = withDefaults(
|
|
4
|
+
defineProps<{ hasOptionButtons: boolean; disabled: boolean }>(),
|
|
5
|
+
{ hasOptionButtons: false, disabled: false }
|
|
6
|
+
);
|
|
7
|
+
const { hasOptionButtons, disabled } = toRefs(props);
|
|
6
8
|
</script>
|
|
7
9
|
<template>
|
|
8
10
|
<div class="card-details-wrapper">
|
|
9
11
|
<div class="options-wrapper">
|
|
10
12
|
<slot v-if="hasOptionButtons" name="option-buttons" />
|
|
11
13
|
</div>
|
|
12
|
-
<div
|
|
14
|
+
<div
|
|
15
|
+
class="card-details has-hover-style"
|
|
16
|
+
:class="{ 'is-disabled': disabled }"
|
|
17
|
+
>
|
|
13
18
|
<div class="c-header">
|
|
14
19
|
<div class="c-logo">
|
|
15
20
|
<slot name="card-logo" />
|
|
@@ -17,7 +22,6 @@
|
|
|
17
22
|
<div class="c-content">
|
|
18
23
|
<div class="is-flex is-justify-content-space-between">
|
|
19
24
|
<h4><slot name="card-title" /></h4>
|
|
20
|
-
|
|
21
25
|
</div>
|
|
22
26
|
<div class="tags">
|
|
23
27
|
<slot name="card-tags" />
|
|
@@ -34,12 +38,13 @@
|
|
|
34
38
|
<style lang="scss">
|
|
35
39
|
.card-details-wrapper {
|
|
36
40
|
position: relative;
|
|
37
|
-
|
|
41
|
+
width: 420px;
|
|
42
|
+
height: 100%;
|
|
43
|
+
.options-wrapper {
|
|
38
44
|
position: absolute;
|
|
39
45
|
right: 15px;
|
|
40
|
-
top:
|
|
46
|
+
top: 30px;
|
|
41
47
|
z-index: 9;
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
|
-
|
|
45
50
|
</style>
|