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.

settings: Improve help icons in settings.

Rishabh-7923f0b0ee88c72
diff --git a/static/styles/settings.css b/static/styles/settings.css
index 7d4189a708f..7fa998af1aa 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -8,14 +8,18 @@ label {
label,
h4,
-h3 {
+h3,
+/* We need settings-section-title here because some legacy settings
+ widgets use a <div> with this class for their heading. */
+.settings-section-title {
a {
color: inherit;
}
.fa-question-circle-o {
top: 1px;
- opacity: 0.4;
+ /* This should match .settings-info-icon. */
+ opacity: 0.6;
position: relative;
&:hover {
@@ -24,8 +28,32 @@ h3 {
}
}
-h3 .fa-question-circle-o {
- left: 5px;
+/* TODO: This should ideally be added to help_link_widget.hbs,
+ allowing us to deduplicate at least the opacity CSS with the
+ fa-question-circle-o logic above. */
+.settings-info-icon {
+ padding-left: 3px;
+ opacity: 0.6;
+
+ &:hover {
+ opacity: 1;
+ }
+}
+
+.email-change-form,
+.user-name-section {
+ .settings-info-icon {
+ position: relative;
+ top: 2px;
+ left: 1px;
+ }
+}
+
+h3,
+.settings-section-title {
+ .fa-question-circle-o {
+ left: 5px;
+ }
}
.new-style {
@@ -237,20 +265,6 @@ td .button {
box-shadow: none;
}
-.settings-info-icon {
- padding-left: 3px;
- opacity: 0.9;
-}
-
-.email-change-form,
-.user-name-section {
- .settings-info-icon {
- position: relative;
- top: 2px;
- left: 1px;
- }
-}
-
.settings-section {
display: none;
width: calc(100% - 40px);