Skip to content

Commit

Permalink
fix(styles): has classes should only set variables not css properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ichim-david committed Sep 26, 2022
1 parent 2eb5d28 commit b1c78d0
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/less/listing-cards.less
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ each(range(5), {
}

// listing theme styling alongside inverse options

.listing .listing-item .ui.image {
width: var(--image-width, auto);
height: var(--image-height, auto);
Expand All @@ -112,22 +113,20 @@ each(range(5), {
--image-height: 176px !important;
--border-radius: 50%;
}

.has--theme--primary {
--text-color: var(--text-color--primary, #fff);
background-color: var(--background-color, @primaryColor);
color: var(--text-color, #fff);
--bg-color: var(--background-color, @primaryColor);
}

.has--theme--secondary {
--text-color: var(--text-color--secondary, #fff);
background-color: var(--background-color, @secondaryColor);
color: var(--text-color--secondary, #fff);
--bg-color: var(--background-color, @secondaryColor);
}

.has--theme--tertiary {
--text-color: var(--text-color--tertiary, #fff);
background-color: var(--background-color, @tertiaryColor);
color: var(--text-color);
--bg-color: var(--background-color, @tertiaryColor);
}

.has--inverted--:not(.has--theme--) {
Expand All @@ -143,6 +142,10 @@ each(range(5), {
--background-color: #fff;
}

.listing {
color: var(--text-color, @tertiaryColor);
background-color: var(--bg-color, #FFF);
}
.image.left {
margin-right: 24px;
}
Expand Down

0 comments on commit b1c78d0

Please sign in to comment.