Skip to content

Commit a7481b7

Browse files
committed
refactor(card) update the spacings around the actions
1 parent f2eaf05 commit a7481b7

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/components/card/themes/shared/container/card.bootstrap.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
$theme: $bootstrap;
55

66
:host {
7-
::slotted(igc-card-actions:last-child) {
8-
padding-block-start: rem(24px);
7+
::slotted(igc-card-content:only-child) {
8+
padding-block-end: rem(16px);
99
}
1010

11-
::slotted(igc-card-actions:only-child) {
12-
padding-block-start: rem(16px);
11+
::slotted(igc-card-content:last-child) {
12+
padding-block-end: rem(16px);
1313
}
1414
}
15+

src/components/card/themes/shared/content/card.content.bootstrap.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
:host {
44
@include type-style('body-1');
55

6-
padding: rem(16px);
6+
padding-inline: rem(16px);
7+
padding-block: rem(16px) rem(24px) ;
78
}
89

910
::slotted(*) {

src/components/card/themes/shared/header/card.header.bootstrap.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
@use 'styles/utilities' as *;
22

33
::slotted([slot='title']) {
4-
@include type-style('h5');
4+
@include type-style('h5') {
5+
margin: 0;
6+
};
57
}
68

79
::slotted([slot='subtitle']) {

0 commit comments

Comments
 (0)