Skip to content

Commit

Permalink
docs(card): simplify css
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Aug 6, 2023
1 parent c16cf0f commit 2b3eec5
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions docs/patterns/card/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,29 +129,10 @@ A card can be used in light and dark themes.
max-width: 360px;
}

rh-card.alt,
rh-context-provider[color-palette^="light"] rh-card.alt {
rh-card.alt {
--rh-card-background-color: #f0f0f0;
}

rh-context-provider[color-palette^="dark"] rh-card.alt {
--rh-card-background-color: #3c3f42;
}

rh-card.bar::part(header) {
background-color: var(--_background-color, #f0f0f0);
text-transform: uppercase;
font-weight: var(--rh-font-weight-heading-regular, 300);
font-size: var(--rh-font-size-body-text-md, 1rem);
}

rh-card.bar::part(header) {
background-color: var(--_header-background-color);
text-transform: uppercase;
font-weight: var(--rh-font-weight-heading-regular, 300);
font-size: var(--rh-font-size-body-text-md, 1rem);
}

rh-card.bar::part(header) {
background-color: var(--_header-background-color);
text-transform: uppercase;
Expand Down

0 comments on commit 2b3eec5

Please sign in to comment.