Skip to content

Commit 8cdcd9c

Browse files
authored
Use space tokens in ha-card (#27662)
1 parent a1e2ac1 commit 8cdcd9c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/ha-card.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,26 @@ export class HaCard extends LitElement {
4444
font-size: var(--ha-card-header-font-size, var(--ha-font-size-2xl));
4545
letter-spacing: -0.012em;
4646
line-height: var(--ha-line-height-expanded);
47-
padding: 12px 16px 16px;
47+
padding: var(--ha-space-3) var(--ha-space-4) var(--ha-space-4);
4848
display: block;
49-
margin-block-start: 0px;
50-
margin-block-end: 0px;
49+
margin-block-start: var(--ha-space-0);
50+
margin-block-end: var(--ha-space-0);
5151
font-weight: var(--ha-font-weight-normal);
5252
}
5353
5454
:host ::slotted(.card-content:not(:first-child)),
5555
slot:not(:first-child)::slotted(.card-content) {
56-
padding-top: 0px;
57-
margin-top: -8px;
56+
padding-top: var(--ha-space-0);
57+
margin-top: calc(var(--ha-space-2) * -1);
5858
}
5959
6060
:host ::slotted(.card-content) {
61-
padding: 16px;
61+
padding: var(--ha-space-4);
6262
}
6363
6464
:host ::slotted(.card-actions) {
6565
border-top: 1px solid var(--divider-color, #e8e8e8);
66-
padding: 8px;
66+
padding: var(--ha-space-2);
6767
}
6868
`;
6969

0 commit comments

Comments
 (0)