Skip to content

Commit

Permalink
fix: bring back focus styles
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Oct 22, 2024
1 parent 71f9d5a commit 144df6f
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/chat/css/messages/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ $link-color-map: (
opacity: 1;
}
}

.focus & {
opacity: 0.3;
}
}

.pref-showtime .time {
Expand Down
11 changes: 11 additions & 0 deletions assets/chat/css/messages/emote/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
text-indent: -999em;
}

.watching-focus:not(.focus) {
.msg-emote {
opacity: 0.3;

&.watching-same,
&.msg-highlight {
opacity: 1;
}
}
}

.pref-disableanimations {
.emote,
.emote:hover,
Expand Down
4 changes: 4 additions & 0 deletions assets/chat/css/messages/pinned/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
#unpin-btn .btn-icon {
@include a.icon-background('../img/icon-unpin.svg');
}

.focus & {
opacity: 1;
}
}

.onstreamchat {
Expand Down
11 changes: 11 additions & 0 deletions assets/chat/css/messages/user/_death.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@
@include a.msg-icon(-32px, -0px);
}
}

.watching-focus:not(.focus) {
.msg-death {
opacity: 0.3;

&.watching-same,
&.msg-highlight {
opacity: 1;
}
}
}
11 changes: 11 additions & 0 deletions assets/chat/css/messages/user/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@
}
}

.watching-focus:not(.focus) {
.msg-user {
opacity: 0.3;

&.watching-same,
&.msg-highlight {
opacity: 1;
}
}
}

.pref-hideflairicons .features {
display: none;
}
Expand Down

0 comments on commit 144df6f

Please sign in to comment.