Skip to content

Commit

Permalink
change(listing): populate css variables from styling objects only for…
Browse files Browse the repository at this point in the history
… listing classes

- this way if we have a content-box with an accordion we don't affect the accordion
  • Loading branch information
ichim-david committed Oct 1, 2022
1 parent 5cc1e9a commit 9cb9d39
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/less/listing-cards.less
Original file line number Diff line number Diff line change
Expand Up @@ -107,33 +107,33 @@ each(range(5), {
--image-max-width: 350px;
}

.has--rounded--true {
.has--rounded--true[class*="listing"] {
--image-width: 176px !important;
--image-height: 176px !important;
--border-radius: 50%;
}

.has--theme--primary {
.has--theme--primary[class*="listing"] {
--text-color: var(--text-color--primary, #fff);
--bg-color: var(--background-color, @primaryColor);
}

.has--theme--secondary {
.has--theme--secondary[class*="listing"] {
--text-color: var(--text-color--secondary, #fff);
--bg-color: var(--background-color, @secondaryColor);
}

.has--theme--tertiary {
.has--theme--tertiary[class*="listing"] {
--text-color: var(--text-color--tertiary, #fff);
--bg-color: var(--background-color, @tertiaryColor);
}

.has--inverted--:not(.has--theme--) {
.has--inverted--:not(.has--theme--)[class*="listing"] {
--text-color: #fff;
--theme-padding: 32px 1.5rem;
}

.has--inverted--true {
.has--inverted--true[class*="listing"] {
--text-color--primary: @primaryColor;
--text-color--secondary: @secondaryColor;
--text-color--tertiary: @tertiaryColor;
Expand Down

0 comments on commit 9cb9d39

Please sign in to comment.