Skip to content

Commit

Permalink
Merge pull request #228 from appwrite/feat-xs-card-padding
Browse files Browse the repository at this point in the history
feat: extra small card padding
  • Loading branch information
TorstenDittmann authored Oct 21, 2024
2 parents e1276ac + f44c416 commit e1c564f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion v2/pink-sb/src/lib/card/Base.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export type BaseCardProps = Partial<{
variant: 'primary' | 'secondary';
radius: 'small' | 'medium' | 'large';
padding: 'none' | 'small' | 'medium' | 'large';
padding: 'none' | 'x-small' | 'small' | 'medium' | 'large';
}>;
</script>

Expand All @@ -23,6 +23,7 @@
class:radius-medium={radius === 'medium'}
class:radius-large={radius === 'large'}
class:padding-none={padding === 'none'}
class:padding-x-small={padding === 'x-small'}
class:padding-small={padding === 'small'}
class:padding-medium={padding === 'medium'}
class:padding-large={padding === 'large'}
Expand Down
3 changes: 3 additions & 0 deletions v2/pink-sb/src/lib/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
&-none {
padding: 0;
}
&x-small {
padding: var(--space-4);
}
&small {
padding: var(--space-7);
}
Expand Down

0 comments on commit e1c564f

Please sign in to comment.