Skip to content

Commit

Permalink
Reduce specicifity of some CSS selectors for card elements
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Oct 23, 2024
1 parent 72f9af9 commit 9da595e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Updated header and global header HTML to allow adornable logos
- Reduced specicifity of some CSS selectors for card elements

### Deprecated
### Removed
Expand Down
8 changes: 4 additions & 4 deletions src/nationalarchives/components/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -201,23 +201,23 @@
@include media.on-larger-than-mobile {
@include horizontal-card-layout("--horizontal", 2);

&--horizontal#{&}--horizontal-small-image {
&--horizontal-small-image {
grid-template-columns: max(10rem, 25%) 1fr;
}

&--horizontal#{&}--horizontal-small-image#{&}--flipped {
&--horizontal-small-image#{&}--flipped {
grid-template-columns: 1fr max(10rem, 25%);
}
}

@include media.on-small {
@include horizontal-card-layout("--horizontal-on-small", 1);

&--horizontal-on-small#{&}--horizontal-small-image {
&--horizontal-small-image {
grid-template-columns: max(10rem, 25%) 1fr;
}

&--horizontal-on-small#{&}--horizontal-small-image#{&}--flipped {
&--horizontal-small-image#{&}--flipped {
grid-template-columns: 1fr max(10rem, 25%);
}
}
Expand Down

0 comments on commit 9da595e

Please sign in to comment.