unread_count: Set class for legacy quiet counters.

This commit is contained in:
Karl Stolley 2024-11-06 11:41:18 -05:00 committed by Tim Abbott
parent 0e3be942b9
commit 4038832889
5 changed files with 7 additions and 17 deletions

View File

@ -1151,8 +1151,6 @@ textarea.new_message_textarea {
.unread_count { .unread_count {
margin: 1px 0 0 6px; margin: 1px 0 0 6px;
background-color: var(--color-background-unread-counter-quiet);
color: var(--color-unread-counter-quiet);
} }
} }

View File

@ -694,14 +694,6 @@ li.active-sub-filter {
} }
} }
.top_left_starred_messages .unread_count,
.top_left_drafts .unread_count,
.top_left_scheduled_messages .unread_count,
.condensed-views-popover-menu .unread_count {
background-color: var(--color-background-unread-counter-quiet);
color: var(--color-unread-counter-quiet);
}
/* Don't show unread counts on views... */ /* Don't show unread counts on views... */
.top_left_my_reactions, .top_left_my_reactions,
.top_left_inbox, .top_left_inbox,

View File

@ -42,7 +42,7 @@
<span class="filter-icon"> <span class="filter-icon">
<i class="zulip-icon zulip-icon-star" aria-hidden="true"></i> <i class="zulip-icon zulip-icon-star" aria-hidden="true"></i>
</span> </span>
<span class="unread_count"></span> <span class="unread_count quiet-count"></span>
</a> </a>
</li> </li>
</ul> </ul>
@ -115,7 +115,7 @@
</span> </span>
{{~!-- squash whitespace --~}} {{~!-- squash whitespace --~}}
<span class="left-sidebar-navigation-label">{{t 'Starred messages' }}</span> <span class="left-sidebar-navigation-label">{{t 'Starred messages' }}</span>
<span class="unread_count"></span> <span class="unread_count quiet-count"></span>
<span class="masked_unread_count"> <span class="masked_unread_count">
<i class="zulip-icon zulip-icon-masked-unread"></i> <i class="zulip-icon zulip-icon-masked-unread"></i>
</span> </span>
@ -129,7 +129,7 @@
</span> </span>
{{~!-- squash whitespace --~}} {{~!-- squash whitespace --~}}
<span class="left-sidebar-navigation-label">{{t 'Drafts' }}</span> <span class="left-sidebar-navigation-label">{{t 'Drafts' }}</span>
<span class="unread_count"></span> <span class="unread_count quiet-count"></span>
</a> </a>
<span class="arrow sidebar-menu-icon drafts-sidebar-menu-icon"><i class="zulip-icon zulip-icon-more-vertical" aria-hidden="true"></i></span> <span class="arrow sidebar-menu-icon drafts-sidebar-menu-icon"><i class="zulip-icon zulip-icon-more-vertical" aria-hidden="true"></i></span>
</li> </li>
@ -140,7 +140,7 @@
</span> </span>
{{~!-- squash whitespace --~}} {{~!-- squash whitespace --~}}
<span class="left-sidebar-navigation-label">{{t 'Scheduled messages' }}</span> <span class="left-sidebar-navigation-label">{{t 'Scheduled messages' }}</span>
<span class="unread_count"></span> <span class="unread_count quiet-count"></span>
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -11,7 +11,7 @@
<i class="popover-menu-icon zulip-icon zulip-icon-drafts" aria-hidden="true"></i> <i class="popover-menu-icon zulip-icon zulip-icon-drafts" aria-hidden="true"></i>
<span class="label-and-unread-wrapper"> <span class="label-and-unread-wrapper">
<span class="popover-menu-label">{{t 'Drafts' }}</span> <span class="popover-menu-label">{{t 'Drafts' }}</span>
<span class="unread_count"></span> <span class="unread_count quiet-count"></span>
</span> </span>
</a> </a>
</li> </li>
@ -21,7 +21,7 @@
<i class="popover-menu-icon zulip-icon zulip-icon-calendar-days" aria-hidden="true"></i> <i class="popover-menu-icon zulip-icon zulip-icon-calendar-days" aria-hidden="true"></i>
<span class="label-and-unread-wrapper"> <span class="label-and-unread-wrapper">
<span class="popover-menu-label">{{t 'Scheduled messages' }}</span> <span class="popover-menu-label">{{t 'Scheduled messages' }}</span>
<span class="unread_count"></span> <span class="unread_count quiet-count"></span>
</span> </span>
</a> </a>
</li> </li>

View File

@ -64,7 +64,7 @@
<a href="#drafts" role="menuitem" class="view_contextual_drafts popover-menu-link" tabindex="0"> <a href="#drafts" role="menuitem" class="view_contextual_drafts popover-menu-link" tabindex="0">
<i class="popover-menu-icon zulip-icon zulip-icon-drafts" aria-hidden="true"></i> <i class="popover-menu-icon zulip-icon zulip-icon-drafts" aria-hidden="true"></i>
<span class="popover-menu-label">{{t "View drafts" }}</span> <span class="popover-menu-label">{{t "View drafts" }}</span>
<span class="compose-drafts-count-container"><span class="unread_count compose-drafts-count"></span></span> <span class="compose-drafts-count-container"><span class="unread_count quiet-count compose-drafts-count"></span></span>
</a> </a>
</li> </li>
<li role="separator" class="popover-menu-separator"></li> <li role="separator" class="popover-menu-separator"></li>