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.

css: Move recipient-row unread markers to message row file.

Karl Stolleyab94bcb21be1
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 4fc933d3ca3..863e6a9eb3e 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -432,3 +432,21 @@ $time_column_max_width: 150px;
cursor: default;
}
}
+
+.recipient_row {
+ /* See https://stackoverflow.com/questions/2717480/css-selector-for-first-element-with-class/8539107#8539107
+ for details on how this works */
+ .message_row.unread {
+ .date_unread_marker {
+ display: none;
+ }
+ }
+
+ /* Select all but the first .message_row.unread,
+ and remove the properties set from the previous rule. */
+ .message_row.unread ~ .message_row.unread {
+ .date_unread_marker {
+ display: block;
+ }
+ }
+}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 53c202b9141..258aaff0268 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -3069,24 +3069,6 @@ select.invite-as {
}
}
-.recipient_row {
- /* See https://stackoverflow.com/questions/2717480/css-selector-for-first-element-with-class/8539107#8539107
- for details on how this works */
- .message_row.unread {
- .date_unread_marker {
- display: none;
- }
- }
-
- /* Select all but the first .message_row.unread,
- and remove the properties set from the previous rule. */
- .message_row.unread ~ .message_row.unread {
- .date_unread_marker {
- display: block;
- }
- }
-}
-
.simplebar-content-wrapper {
/* `simplebar-content-wrapper` has `tabindex=0` set, which makes it focusable
but we don't want it to have an outline when focused anywhere in the app. */