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 message_length_toggle styles to message_row.css.

Tim Abbott7f391b8530d1
diff --git a/web/styles/message_row.css b/web/styles/message_row.css
index 99d1fb6b41b..99d09cedfaf 100644
--- a/web/styles/message_row.css
+++ b/web/styles/message_row.css
@@ -226,6 +226,31 @@
}
}
+ .message_length_toggle {
+ width: 100%;
+ height: 1.714em; /* 24px / 14px em */
+ margin-bottom: var(--message-box-markdown-aligned-vertical-space);
+ color: var(--color-text-show-more-less-button);
+ background-color: var(--color-show-more-less-button-background);
+ border-radius: 4px;
+ border: none;
+ outline: none;
+ font-variant: all-small-caps;
+
+ &:hover {
+ background-color: var(
+ --color-show-more-less-button-background-hover
+ );
+ }
+
+ &:active {
+ background-color: var(
+ --color-show-more-less-button-background-active
+ );
+ scale: 0.98;
+ }
+ }
+
&.content_edit_mode .message_length_controller {
/* If entering edit mode on a collapsed message,
just hide the controller area. This preserves
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 7b96081ddac..77b6493556a 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -890,33 +890,6 @@ div.focused-message-list.is-conversation-view .recipient_row {
outline: none;
}
-.message_length_controller {
- .message_length_toggle {
- width: 100%;
- height: 1.714em; /* 24px / 14px em */
- margin-bottom: var(--message-box-markdown-aligned-vertical-space);
- color: var(--color-text-show-more-less-button);
- background-color: var(--color-show-more-less-button-background);
- border-radius: 4px;
- border: none;
- outline: none;
- font-variant: all-small-caps;
-
- &:hover {
- background-color: var(
- --color-show-more-less-button-background-hover
- );
- }
-
- &:active {
- background-color: var(
- --color-show-more-less-button-background-active
- );
- scale: 0.98;
- }
- }
-}
-
.information-settings .user-profile-picture,
.user_sidebar_entry.with_avatar .user-profile-picture,
.inline_profile_picture {