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: Make subsection headings consistent.

Sahil Batra9cf43dea53ae
diff --git a/web/styles/settings.css b/web/styles/settings.css
index ecc6aaeb95e..d94f6119dd6 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -346,10 +346,6 @@ h3,
padding-bottom: 4px;
height: 1.4em; /* To match height of input elements */
}
-
- .account-settings-heading {
- margin-right: 10px;
- }
}
/* Make this one less wide because it's indented, so that the right
@@ -772,11 +768,6 @@ input[type="checkbox"] {
color: hsl(156deg 30% 50%);
padding: 3px 10px;
- &.account-alert-notification {
- margin: 0 0 10px;
- vertical-align: middle;
- }
-
&:not(:empty) {
border: 1px solid hsl(156deg 30% 50%);
}
@@ -1476,6 +1467,13 @@ label.preferences-radio-choice-label {
line-height: 1.5;
}
+ /* All non-table section headings sit in a '.subsection-header' and
+ share this margin; table-panel headings ('.settings_panel_list_header
+ h3') keep their own spacing. */
+ .subsection-header h3 {
+ margin: calc(0.3125 * var(--base-font-size-px)) 0; /* 5px 0 at 16px font size. */
+ }
+
& h5 {
font-size: 1em;
font-weight: normal;
diff --git a/web/templates/settings/account_settings.hbs b/web/templates/settings/account_settings.hbs
index f60a280b244..5f17341228e 100644
--- a/web/templates/settings/account_settings.hbs
+++ b/web/templates/settings/account_settings.hbs
@@ -2,8 +2,10 @@
<div class="alert" id="dev-account-settings-status"></div>
<div class="account-settings-form">
<div id="user_details_section">
- <h3 class="inline-block account-settings-heading">{{t "Account" }}</h3>
- <div class="alert-notification account-alert-notification" id="account-settings-status"></div>
+ <div class="subsection-header">
+ <h3>{{t "Account" }}</h3>
+ <div class="alert-notification account-alert-notification" id="account-settings-status"></div>
+ </div>
<form class="grid">
{{#if user_has_email_set}}
<div class="input-group">
@@ -108,7 +110,9 @@
{{> privacy_settings . for_realm_settings=false prefix="user_" read_receipts_help_icon_tooltip_text=send_read_receipts_tooltip hide_read_receipts_tooltip=realm.realm_enable_read_receipts}}
<div id="api_key_button_box">
- <h3>{{t "API key" }}</h3>
+ <div class="subsection-header">
+ <h3>{{t "API key" }}</h3>
+ </div>
<div class="input-group">
<p class="api-key-note">
diff --git a/web/templates/settings/data_exports_admin.hbs b/web/templates/settings/data_exports_admin.hbs
index 184833a5ea4..18c214c6963 100644
--- a/web/templates/settings/data_exports_admin.hbs
+++ b/web/templates/settings/data_exports_admin.hbs
@@ -1,7 +1,9 @@
<div id="data-exports" class="settings-section" data-name="data-exports-admin">
- <h3>{{t "Export organization" }}
- {{> ../help_link_widget link="/help/export-your-organization" }}
- </h3>
+ <div class="subsection-header">
+ <h3>{{t "Export organization" }}
+ {{> ../help_link_widget link="/help/export-your-organization" }}
+ </h3>
+ </div>
<p>
{{t 'Your organization’s data will be exported in a format designed for imports into Zulip Cloud or a self-hosted installation of Zulip.' }}
{{t 'You will be able to export all public data, and (optionally) private data from users who have given their permission.' }}
diff --git a/web/templates/settings/organization_profile_admin.hbs b/web/templates/settings/organization_profile_admin.hbs
index fdcde7c1a16..d1086dab84a 100644
--- a/web/templates/settings/organization_profile_admin.hbs
+++ b/web/templates/settings/organization_profile_admin.hbs
@@ -82,10 +82,12 @@
</div>
</div>
<div class="deactivate-realm-section">
- <h3>
- {{t "Deactivate organization" }}
- {{> ../help_link_widget link="/help/deactivate-your-organization" }}
- </h3>
+ <div class="subsection-header">
+ <h3>
+ {{t "Deactivate organization" }}
+ {{> ../help_link_widget link="/help/deactivate-your-organization" }}
+ </h3>
+ </div>
<div class="input-group">
<div id="deactivate_realm_button_container" class="inline-block">
{{> ../components/action_button
diff --git a/web/templates/settings/profile_settings.hbs b/web/templates/settings/profile_settings.hbs
index a8089c6b476..8af270c06c3 100644
--- a/web/templates/settings/profile_settings.hbs
+++ b/web/templates/settings/profile_settings.hbs
@@ -1,7 +1,9 @@
<div id="profile-settings" class="settings-section" data-name="profile">
<div class="profile-settings-form">
<div class="profile-main-panel inline-block">
- <h3 class="inline-block" id="user-profile-header">{{t "Profile" }}</h3>
+ <div class="subsection-header">
+ <h3 id="user-profile-header">{{t "Profile" }}</h3>
+ </div>
<div id="user_details_section">
<div class="full-name-change-container">
<div class="input-group inline-block grid user-name-parent">