Skip to content

Commit 7b49fb1

Browse files
fix(card): Adding card css | JIRA: PT-101 (#56)
1 parent 9b87960 commit 7b49fb1

File tree

6 files changed

+110
-100
lines changed

6 files changed

+110
-100
lines changed

src/assets/css/el-button.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ body {
66
@apply px-1.5;
77
}
88
&:hover {
9-
transform: translateY(-1px);
9+
@apply -translate-y-px;
1010
}
1111
}
1212
.el-button.el-button--large {
13-
@apply h-13 rounded-lg #{!important};
13+
@apply h-13 rounded-lg font-semibold text-sm tracking-wide #{!important};
1414
}
1515
.el-button.el-button--small {
16-
@apply rounded max-w-fit #{!important};
16+
@apply rounded max-w-fit text-xs tracking-tight #{!important};
1717
}
1818
.el-button.el-button--default.el-button--small {
1919
@apply rounded max-w-fit h-[25px] #{!important};
@@ -136,7 +136,10 @@ body {
136136
}
137137

138138
.el-button.el-button--default {
139-
@apply bg-btn-default border border-btn-default text-white font-semibold h-11;
139+
@apply bg-btn-default border border-btn-default text-white font-semibold h-10.75 text-sm tracking-wide;
140+
span {
141+
@apply px-1.5 ;
142+
}
140143
&:active {
141144
@apply bg-btn-default-active drop-shadow-none;
142145
}

src/assets/css/el-card.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
body {
22
.el-card {
3+
@apply relative flex flex-col bg-clip-border break-words min-w-0 rounded-[5px] shadow-[0_0_2rem_0_rgba(136,152,170,0.15)] cursor-auto text-[#32325d] #{!important};
34
--el-card-bg-color: white !important
45
}
6+
.el-card .card-header {
7+
h3 {
8+
@apply mb-0 cursor-auto text-[#32325d];
9+
}
10+
}
11+
.el-card .el-card__header {
12+
@apply w-full py-5.75 px-6.75 mb-0 border-b-[#0000000d] ;
13+
}
14+
.el-card .el-card__body {
15+
@apply w-full py-6 px-6.75 grow shrink;
16+
}
517
}

src/layouts/default-layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</div>
6666
<router-view v-slot="{ Component }">
6767
<div class="h-20.5 bg-primary-blue px-4 sm:px-7.5 md:px-[29px]">
68-
<component :is="Component" class="pb-2.5" />
68+
<component :is="Component" class="py-2.5 px-px lg:px-1.5" />
6969
</div>
7070
</router-view>
7171
</div>

src/modules/buttons/views/index.vue

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
<template>
2-
<div class="block mx-auto h-auto w-full lg:max-w-2/3 py-2.5 px-1.5">
3-
<div
4-
class="flex flex-wrap flex-col bg-white shadow-xl drop-shadow-sm shadow-slate-200/60 mb-7 mx-auto rounded-md"
5-
>
6-
<div class="p-5 pl-6 border-b border-primary-white">
7-
<h3 class="cursor-auto">Styles</h3>
8-
</div>
9-
<div class="px-5 pl-6 py-6">
10-
<div class="flex flex-wrap gap-3">
11-
<div>
12-
<el-button type="primary" class="">Primary</el-button>
13-
</div>
14-
<div>
15-
<el-button type="primary" class="">
16-
<el-icon :size="17" class="mr-2"> <Shop /> </el-icon>With icon</el-button
17-
>
18-
</div>
19-
<div>
20-
<el-button type="primary" class="">
21-
<el-icon :size="17">
22-
<Tools />
23-
</el-icon>
24-
</el-button>
25-
</div>
2+
<div class="w-full block mx-auto h-auto lg:max-w-2/3">
3+
<el-card class="mb-7.5 border-white">
4+
<template #header>
5+
<h3 class="cursor-auto mb-0 text-[#32325d]">Styles</h3>
6+
</template>
7+
<div class="flex flex-wrap gap-3">
8+
<div>
9+
<el-button type="primary" class="">Button</el-button>
10+
</div>
11+
<div>
12+
<el-button type="primary" class="">
13+
<el-icon :size="17" class="mr-3"> <Shop /> </el-icon>With icon</el-button
14+
>
15+
</div>
16+
<div>
17+
<el-button type="primary" class="">
18+
<el-icon :size="17">
19+
<Tools />
20+
</el-icon>
21+
</el-button>
2622
</div>
2723
</div>
28-
</div>
24+
</el-card>
2925

3026
<div
3127
class="flex flex-wrap flex-col bg-white shadow-xl shadow-slate-200/60 mb-7 mx-auto rounded-lg"
@@ -351,7 +347,7 @@
351347
<div>
352348
<el-button
353349
circle
354-
class="px-1 py-4 h-9 bg-[#e4405f] border-[#e4405f] active:bg-[#e6536f] active:border-[#e6536f] text-white"
350+
class="px-1.25 py-4 h-9 bg-[#e4405f] border-[#e4405f] active:bg-[#e6536f] active:border-[#e6536f] text-white"
355351
>
356352
<font-awesome-icon :icon="['fab', 'instagram']" />
357353
</el-button>
@@ -367,7 +363,7 @@
367363
<div>
368364
<el-button
369365
circle
370-
class="px-1.25 py-4 h-9 bg-[#cd201f] border-[#cd201f] active:bg-[#de2928] active:border-[#de2928] text-white"
366+
class="px-1 py-4 h-9 bg-[#cd201f] border-[#cd201f] active:bg-[#de2928] active:border-[#de2928] text-white"
371367
>
372368
<font-awesome-icon :icon="['fab', 'youtube']" />
373369
</el-button>

0 commit comments

Comments
 (0)