mirror of https://github.com/zulip/zulip.git
unread_counts: Scale unread counts with UI.
This commit is contained in:
parent
b9539621d8
commit
18e5b3ab6b
|
@ -588,9 +588,11 @@ div.overlay {
|
|||
.unread_count {
|
||||
float: right;
|
||||
padding: 0 4px;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
font-size: 12px;
|
||||
/* 12px at 14px/em */
|
||||
font-size: 0.8571em;
|
||||
/* 16px at 12px/em, owing to font-size above. */
|
||||
height: 1.3333em;
|
||||
line-height: 1.3333em;
|
||||
font-weight: normal;
|
||||
border-radius: 4px;
|
||||
background-color: var(--color-background-unread-counter);
|
||||
|
|
|
@ -324,6 +324,12 @@
|
|||
}
|
||||
|
||||
.unread-count-focus-outline {
|
||||
/* Because the inbox view font-size will
|
||||
never be smaller than the em-equivalent
|
||||
of 15px, we restate the base font-size
|
||||
here so that unreads match others in
|
||||
the UI at legacy size (14px). */
|
||||
font-size: var(--base-font-size-px);
|
||||
grid-area: unread_count;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
@ -542,8 +542,9 @@ li.active-sub-filter {
|
|||
background: var(--color-background-hover-narrow-filter);
|
||||
|
||||
.unread_count {
|
||||
top: -6px;
|
||||
right: -6px;
|
||||
/* 6px at 12px/1em */
|
||||
top: -0.5em;
|
||||
right: -0.5em;
|
||||
background: var(--color-background-unread-counter-no-alpha);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue