Skip to content

Commit

Permalink
Add green/red indicator in the follow/unfollow button in notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ronilaukkarinen committed Mar 13, 2023
1 parent 3cb362c commit fd35eef
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### 1.1.9rc2: 2023-03-13
### 1.1.9rc3: 2023-03-13

* Fix blur overlay on iPad
* Fix compose form z-index on mobile
* Add green/red indicator in the follow/unfollow button in notifications
* Add missing stylelint-order package

### 1.1.8: 2023-03-12

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@ronilaukkarinen/stylelint-value-no-unknown-custom-properties": "^4.0.1",
"postcss": "^8.4.21",
"stylelint": "^15.2.0",
"stylelint-config-standard": "^30.0.1"
"stylelint-config-standard": "^30.0.1",
"stylelint-order": "^6.0.3"
}
}
}
28 changes: 27 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Mastodon Bird UI by @[email protected]
1.1.9rc2 */
1.1.9rc3 */

/* CSS variables */
:root {
Expand Down Expand Up @@ -1134,12 +1134,38 @@ a.status-card.compact .status-card__description {
font-size: 24px;
}

/* Follow/unfollow button in notifications */
.layout-single-column .notification .account__relationship .icon-button:focus,
.layout-single-column .notification .account__relationship .icon-button:hover {
background-color: transparent;
}

.layout-single-column .notification .account__relationship .fa::before {
/* stylelint-disable-next-line */
color: var(--color-dim) !important;
font-size: 20px;
}

.layout-single-column .notification .account__relationship .icon-button.active .fa::before {
/* stylelint-disable-next-line */
color: var(--color-green) !important;
opacity: .75;
}

.layout-single-column .notification .account__relationship .icon-button:focus .fa::before,
.layout-single-column .notification .account__relationship .icon-button:hover .fa::before {
opacity: 1;
/* stylelint-disable-next-line */
color: var(--color-red) !important;
}

.layout-single-column .notification .account__relationship .icon-button:not(.active):focus .fa::before,
.layout-single-column .notification .account__relationship .icon-button:not(.active):hover .fa::before {
opacity: 1;
/* stylelint-disable-next-line */
color: var(--color-green) !important;
}

.layout-single-column .account__relationship .button:hover {
background-color: transparent;
}
Expand Down

0 comments on commit fd35eef

Please sign in to comment.