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_header: Add short delay on hover.

whilstsomebody669a341b022a
diff --git a/web/styles/message_header.css b/web/styles/message_header.css
index 64484f9d92c..a888b63e822 100644
--- a/web/styles/message_header.css
+++ b/web/styles/message_header.css
@@ -78,23 +78,27 @@
.recipient_bar_controls {
opacity: 0;
+ transition: opacity 0.15s ease-out;
}
- /* When any of the actions are focused, don't hide them */
.recipient_bar_controls:focus-within {
opacity: 1;
+ transition: opacity 0.1s ease-in;
}
- /* Show the bar controls on hover and when the bar is sticky */
+ /* Show the bar controls on hover with a slight delay */
&:hover {
.recipient_bar_controls {
opacity: 1;
+ transition: opacity 0.15s ease-in 0.1s;
}
}
+ /* Always show controls when header is sticky */
&.sticky_header {
.recipient_bar_controls {
opacity: 1;
+ transition: opacity 0.15s ease-in;
}
}
}
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index 63322599138..db198e0b733 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -892,6 +892,7 @@ div.focused-message-list {
div.focused-message-list.is-conversation-view .recipient_row {
& .recipient_bar_controls {
opacity: 1;
+ transition: opacity 0.15s ease-in;
}
}