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.

left_sidebar: Show heading-row icons only on hover.

Karl Stolley455111e3a3e9
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index bb5f2c6e954..5a2b066fa61 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -220,7 +220,7 @@
#show-all-direct-messages {
color: var(--color-left-sidebar-heads-up-icon);
- display: flex;
+ display: none;
align-items: center;
justify-content: center;
text-decoration: none;
@@ -233,6 +233,14 @@
--background-color-left-sidebar-heads-up-icon-hover
);
}
+
+ @media (hover: none) {
+ display: flex;
+ }
+ }
+
+ &:hover #show-all-direct-messages {
+ display: flex;
}
}
@@ -1510,11 +1518,19 @@ li.topic-list-item {
}
#filter_streams_tooltip {
- display: flex;
+ display: none;
align-items: center;
justify-content: center;
grid-row: 1 / 1;
margin: 2px 0;
+
+ @media (hover: none) {
+ display: flex;
+ }
+ }
+
+ &:hover #filter_streams_tooltip {
+ display: flex;
}
#add_streams_tooltip {
@@ -1523,12 +1539,21 @@ li.topic-list-item {
}
#streams_inline_icon {
- display: flex;
+ display: none;
align-items: center;
justify-content: center;
/* Ensure the clickable area grows to
the height of the controls grid. */
height: 100%;
+
+
+ @media (hover: none) {
+ display: flex;
+ }
+ }
+
+ &:hover #streams_inline_icon {
+ display: flex;
}
.stream_search_section {