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: Relocate and consolidate sender-related selectors.

Karl Stolley058ff15ee275
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 9237371cc76..e229fbd705f 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -402,21 +402,50 @@
align-items: baseline;
.zulip-icon.zulip-icon-bot {
+ font-size: 12px;
align-self: center;
padding: 0 0 0 5px;
}
.sender_name {
+ display: inline-flex;
+ font-weight: 700;
+ color: var(--color-text-sender-name);
+ column-gap: 3px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
outline: none;
align-self: baseline;
+
+ .sender_name_text {
+ overflow: hidden;
+ white-space: nowrap;
+ display: inline-flex;
+
+ .user-name {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+ }
}
}
}
}
+ &.sender_info_hovered {
+ .sender_name {
+ cursor: pointer;
+ /* TODO: Refactor the teetering nested classes
+ above so that !important can be removed. */
+ color: hsl(200deg 100% 40%) !important;
+ }
+
+ .message-avatar {
+ cursor: pointer;
+ }
+ }
+
/* Locally echoed messages. */
&.locally-echoed .message-time {
opacity: 0;
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 54f080baa5f..d72e208810c 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1390,41 +1390,6 @@ td.pointer {
}
}
-.message_sender {
- & i.zulip-icon.zulip-icon-bot {
- font-size: 12px;
- }
-}
-
-.sender_name {
- display: inline-flex;
- font-weight: 700;
- color: var(--color-text-sender-name);
- column-gap: 3px;
-
- .sender_name_text {
- overflow: hidden;
- white-space: nowrap;
- display: inline-flex;
-
- .user-name {
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
-}
-
-.sender_info_hovered {
- .sender_name {
- cursor: pointer;
- color: hsl(200deg 100% 40%);
- }
-
- .message-avatar {
- cursor: pointer;
- }
-}
-
.always_visible_topic_edit,
.on_hover_topic_read,
.stream_unmuted.on_hover_topic_unmute,