Skip to content

Commit

Permalink
Merge pull request #581 from vyneer/fix/wrong-color-event-actions
Browse files Browse the repository at this point in the history
fix: event actions button being the wrong color sometimes
  • Loading branch information
11k authored Jan 7, 2025
2 parents 54d976c + 9ce844e commit d348c51
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
8 changes: 2 additions & 6 deletions assets/chat/css/chat/event-bar/_event-bar-event.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,17 @@
height: 2em;
border: 0.25em solid transparent;
opacity: 0.75;
filter: invert(100%);

&.subscription {
@include a.icon-background('../img/sub-regular.svg');
}

&.giftsub {
filter: invert(100%);

@include a.icon-background('../img/sub-gift.png');
}

&.massgift {
filter: invert(100%);

@include a.icon-background('../img/sub-mass-gift.png');
}
}
Expand All @@ -74,10 +71,9 @@
@each $amount, $color in donation.$amount-color-map {
&.amount-#{$amount} {
border-color: $color;
filter: invert(100%);

.event-icon {
filter: invert(100%);

@include a.icon-background('../img/donation-amount-#{$amount}.png');
}
}
Expand Down
4 changes: 2 additions & 2 deletions assets/chat/css/messages/event/_donation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ $amount-color-map: (
}

.donation-icon {
&.amount-#{$amount} {
filter: invert(100%);
filter: invert(100%);

&.amount-#{$amount} {
@include a.icon-background('../img/donation-amount-#{$amount}.png');
}
}
Expand Down
6 changes: 2 additions & 4 deletions assets/chat/css/messages/event/_subscription.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@
position: relative;

.subscription-icon {
filter: invert(100%);

&.regular {
@include a.icon-background('../img/sub-regular.svg');
}

&.gift {
filter: invert(100%);

@include a.icon-background('../img/sub-gift.png');
}

&.mass-gift {
filter: invert(100%);

@include a.icon-background('../img/sub-mass-gift.png');
}
}
Expand Down
12 changes: 6 additions & 6 deletions assets/chat/img/sub-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d348c51

Please sign in to comment.