Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

inbox: Show focus underline for non-dm rows.

Aman Agrawal6c179bcc48ff
diff --git a/web/styles/inbox.css b/web/styles/inbox.css
index 0ece309ed0b..1d9f4e6100e 100644
--- a/web/styles/inbox.css
+++ b/web/styles/inbox.css
@@ -116,25 +116,22 @@
outline: 0;
& a {
- padding: 0 4px;
- border-radius: 5px;
+ margin: 0 4px;
+ padding: 1px 0;
text-overflow: ellipsis;
overflow: hidden;
}
&:focus a {
- color: hsl(0deg 0% 100%);
- background-color: hsl(0deg 0% 11%);
+ box-shadow: inset 0 -3px 0 var(--color-outline-focus);
}
}
&:focus {
outline: 0;
- box-shadow: inset 2px 0 0 0 var(--color-unread-marker);
.toggle-inbox-header-icon {
opacity: 1;
- color: hsl(0deg 0% 11%);
}
}
}
@@ -203,7 +200,10 @@
&:focus {
outline: 0;
padding: 0;
- box-shadow: inset 2px 0 0 0 var(--color-unread-marker);
+
+ .inbox-topic-name a {
+ box-shadow: inset 0 -3px 0 var(--color-outline-focus);
+ }
}
.inbox-left-part {
@@ -248,6 +248,10 @@
text-overflow: ellipsis;
white-space: nowrap;
width: 100%;
+
+ & a {
+ padding: 1px 0;
+ }
}
.inbox-left-part-wrapper {
@@ -255,6 +259,15 @@
width: 50%;
}
+ #inbox-direct-messages-container {
+ /* Since a direct message row can have span to multiple lines,
+ having an underline focus will not work very well.
+ */
+ .inbox-row:focus {
+ box-shadow: inset 2px 0 0 0 var(--color-outline-focus);
+ }
+ }
+
#inbox-direct-messages-container .inbox-left-part {
padding: 3px 0;
}