Skip to content

Commit 8707d90

Browse files
committed
Tokenize card style, so it can be easily overridden
1 parent bf655b5 commit 8707d90

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 2.64.9 (2024-03-11)
2+
3+
### Improvements
4+
5+
- **Card**: tokenize card style, so it can be easily overridden
6+
17
# 2.64.8 (2024-02-20)
28

39
### Improvements

projects/pastanaga-angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@guillotinaweb/pastanaga-angular",
33
"description": "Provides Pastanaga UI elements as Angular components",
4-
"version": "2.64.8",
4+
"version": "2.64.9",
55
"license": "MIT",
66
"keywords": [
77
"angular",

projects/pastanaga-angular/src/lib/card/card.component.scss

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
}
66

77
.pa-card-wrapper {
8-
background: $color-light-stronger;
9-
border: 1px solid $color-neutral-lighter;
10-
border-radius: $border-radius-default;
8+
background: $background-card;
9+
border: $border-card;
10+
border-radius: $border-radius-card;
1111
cursor: pointer;
12-
padding: rhythm(2);
12+
padding: $padding-card;
1313
transition: background $transition-hint;
1414

1515
.pa-card-content {
@@ -18,11 +18,11 @@
1818
}
1919

2020
&:hover {
21-
background: $color-neutral-lightest;
21+
background: $background-card-hover;
2222
}
2323

2424
&:active {
25-
background: $color-neutral-lighter;
25+
background: $background-card-active;
2626
}
2727

2828
&:disabled,

projects/pastanaga-angular/src/styles/_variables-component.scss

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import 'theme/avatar.tokens';
22
@import 'theme/body.tokens';
33
@import 'theme/button.tokens';
4+
@import 'theme/card.tokens';
45
@import 'theme/chips.tokens';
56
@import 'theme/icon.tokens';
67
@import 'theme/menu.tokens';
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@import 'palette.tokens';
2+
@import 'spacing.tokens';
3+
4+
$background-card: $color-light-stronger !default;
5+
$background-card-hover: $color-neutral-lightest !default;
6+
$background-card-active: $color-neutral-lighter !default;
7+
8+
$border-card: 1px solid $color-neutral-lighter !default;
9+
$border-radius-card: $border-radius-default !default;
10+
11+
$padding-card: rhythm(2) !default;

0 commit comments

Comments
 (0)