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.

message_row: Flatten unread_marker selectors.

Karl Stolley0b68a1ee423a
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 8ef654aee6c..3d418b3c170 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -53,48 +53,6 @@
}
}
- .unread_marker {
- margin-left: var(--unread-marker-left);
- opacity: 0;
- transition: all 0.3s ease-out;
-
- &.slow_fade {
- transition: all 2s ease-out;
- }
-
- &.fast_fade {
- transition: all 0.3s ease-out;
- }
-
- &.date_unread_marker {
- grid-area: date_unread_marker;
-
- .unread-marker-fill {
- border-radius: 0 !important;
- height: 100% !important;
- }
- }
-
- &.message_unread_marker {
- grid-area: message_unread_marker;
- }
- }
-
- .unread-marker-fill {
- height: 100%;
- width: 2px;
- background: linear-gradient(
- 90deg,
- var(--color-unread-marker) 30%,
- hsl(217deg 64% 59% / 0%)
- );
- }
-
- &.unread .unread_marker {
- transition: all 0.3s ease-out;
- opacity: 1;
- }
-
.messagebox {
grid-area: messagebox;
word-wrap: break-word;
@@ -516,6 +474,48 @@
}
}
+.unread_marker {
+ margin-left: var(--unread-marker-left);
+ opacity: 0;
+ transition: all 0.3s ease-out;
+
+ &.slow_fade {
+ transition: all 2s ease-out;
+ }
+
+ &.fast_fade {
+ transition: all 0.3s ease-out;
+ }
+
+ &.date_unread_marker {
+ grid-area: date_unread_marker;
+
+ .unread-marker-fill {
+ border-radius: 0 !important;
+ height: 100% !important;
+ }
+ }
+
+ &.message_unread_marker {
+ grid-area: message_unread_marker;
+ }
+}
+
+.unread-marker-fill {
+ height: 100%;
+ width: 2px;
+ background: linear-gradient(
+ 90deg,
+ var(--color-unread-marker) 30%,
+ hsl(217deg 64% 59% / 0%)
+ );
+}
+
+.unread .unread_marker {
+ transition: all 0.3s ease-out;
+ opacity: 1;
+}
+
.message-time {
justify-self: end;
padding-right: 5px;