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.

compse: Reduce transition timing, delay.

Karl Stolley0d357d3ecc65
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index dba44da1471..af1031bf591 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -522,6 +522,10 @@
--compose-send-controls-width: 28px;
}
+ /* Compose-specific transitions and delays. */
+ --compose-muted-recipient-row-transition-delay: 100ms;
+ --compose-muted-recipient-row-transition: 150ms ease;
+
/*
User group info popover elements and values.
*/
diff --git a/web/styles/compose.css b/web/styles/compose.css
index 36b6da2bb41..86764caa2a9 100644
--- a/web/styles/compose.css
+++ b/web/styles/compose.css
@@ -1231,14 +1231,18 @@ textarea.new_message_textarea {
#compose_select_recipient_widget,
#compose_recipient_box,
#compose-direct-recipient .pill-container {
- transition: 250ms ease;
- transition-delay: 150ms;
+ transition: var(--compose-muted-recipient-row-transition);
+ transition-delay: var(
+ --compose-muted-recipient-row-transition-delay
+ );
transition-property: background-color, border-color;
}
#compose-direct-recipient .pill {
- transition: 250ms ease;
- transition-delay: 150ms;
+ transition: var(--compose-muted-recipient-row-transition);
+ transition-delay: var(
+ --compose-muted-recipient-row-transition-delay
+ );
transition-property: outline-color;
}
@@ -1247,8 +1251,10 @@ textarea.new_message_textarea {
.zulip-icon-chevron-down,
.conversation-arrow,
#stream_message_recipient_topic {
- transition: 250ms ease;
- transition-delay: 150ms;
+ transition: var(--compose-muted-recipient-row-transition);
+ transition-delay: var(
+ --compose-muted-recipient-row-transition-delay
+ );
transition-property: opacity;
}
}