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: Consolidate date row and bookend styles to message_row.css.

Sayam Samal71609a303259
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 81b1a811a79..4d23734a0d8 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -1062,12 +1062,60 @@ of the base style defined for a read-only textarea in dark mode. */
color: var(--color-date);
/* Right padding matches time in message row and date in recipient row. */
padding: 8px 6px 8px 4px;
+
+ &::before {
+ width: 100%;
+ }
+
+ &::after {
+ width: 6px;
+ left: 0.25em;
+ /* Align date with message time and recipient bar date. */
+ margin-right: -1px;
+ }
}
}
.bookend {
margin-top: 10px;
background-color: transparent;
+ padding-bottom: 10px;
+ text-align: center;
+
+ .stream-status {
+ opacity: 0.6;
+
+ & i {
+ font-size: 0.7143em; /* 10px at 14px / em */
+ /* TODO: Don't use relative positioning here. */
+ position: relative;
+ top: 0.1em; /* 1px at 10px / em */
+ margin-left: 0.2em; /* 2px at 10px / em */
+ }
+
+ .zulip-icon.zulip-icon-lock {
+ font-size: 0.8571em; /* 12px at 14px / em */
+ top: 0.0833em; /* 1px at 12px / em */
+ margin-left: 0.1667em; /* 2px at 12px / em */
+ }
+ }
+}
+
+.bookend-label {
+ font-size: 1em;
+ display: block;
+ padding: 4px;
+ overflow: hidden;
+
+ &::before,
+ &::after {
+ width: 50%;
+ }
+
+ &::after {
+ left: 0.25em;
+ margin-right: -50%;
+ }
}
/* Only show links on the trailing bookend. */
@@ -1078,3 +1126,22 @@ of the base style defined for a read-only textarea in dark mode. */
.trailing_bookend .bookend-channel-settings-link {
display: inline;
}
+
+.bookend-label::before,
+.bookend-label::after,
+.date_row .timerender-content::before,
+.date_row .timerender-content::after {
+ display: inline-block;
+ position: relative;
+ content: " ";
+ vertical-align: middle;
+ height: 0;
+ opacity: 0.15;
+ border-bottom: 1px solid hsl(0deg 0% 0%);
+}
+
+.bookend-label::before,
+.date_row .timerender-content::before {
+ right: 0.25em;
+ margin-left: -50%;
+}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index ebe9e278b3b..25b48360fbe 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1415,80 +1415,6 @@ div.toggle_resolve_topic_spinner .loading_indicator_spinner {
margin-bottom: 0;
}
-.date_row {
- .timerender-content {
- &::before {
- width: 100%;
- }
-
- &::after {
- width: 6px;
- left: 0.25em;
- /* Align date with message time and recipient bar date. */
- margin-right: -1px;
- }
- }
-}
-
-.bookend {
- padding-bottom: 10px;
- text-align: center;
-
- .stream-status {
- opacity: 0.6;
-
- & i {
- font-size: 0.7143em; /* 10px at 14px / em */
- /* TODO: Don't use relative positioning here. */
- position: relative;
- top: 0.1em; /* 1px at 10px / em */
- margin-left: 0.2em; /* 2px at 10px / em */
- }
-
- .zulip-icon.zulip-icon-lock {
- font-size: 0.8571em; /* 12px at 14px / em */
- top: 0.0833em; /* 1px at 12px / em */
- margin-left: 0.1667em; /* 2px at 12px / em */
- }
- }
-}
-
-.bookend-label {
- font-size: 1em;
- display: block;
- padding: 4px;
- overflow: hidden;
-
- &::before,
- &::after {
- width: 50%;
- }
-
- &::after {
- left: 0.25em;
- margin-right: -50%;
- }
-}
-
-.bookend-label::before,
-.bookend-label::after,
-.date_row .timerender-content::before,
-.date_row .timerender-content::after {
- display: inline-block;
- position: relative;
- content: " ";
- vertical-align: middle;
- height: 0;
- opacity: 0.15;
- border-bottom: 1px solid hsl(0deg 0% 0%);
-}
-
-.bookend-label::before,
-.date_row .timerender-content::before {
- right: 0.25em;
- margin-left: -50%;
-}
-
.screen {
position: absolute;
left: 0;