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: Move settings page CSS out of subscriptions.css.

Evy Kassirera5c77cc017b6
diff --git a/web/styles/settings.css b/web/styles/settings.css
index bd9c98d13c3..bdcb409e992 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -1815,8 +1815,8 @@ label.preferences-radio-choice-label {
}
}
-/* This value needs to match with the same in subscriptions.css, as
- we have some shared styles declared there */
+/* We should eventually consolidate some of these styles with the styles
+ in subscriptions.css, using shared classnames. */
@container settings-overlay (width < $settings_overlay_sidebar_collapse_breakpoint) {
.profile-settings-form {
.user-avatar-section {
@@ -1868,9 +1868,25 @@ label.preferences-radio-choice-label {
#settings_content {
height: 100%;
}
+ }
+
+ .content-wrapper.right {
+ position: absolute;
+ display: block;
+ left: 101%;
+ margin: 0;
+ width: 100%;
+ height: calc(100% - var(--settings-overlay-header-height));
+
+ top: var(--settings-overlay-header-height);
+ background-color: var(--color-background-modal);
+ border: none;
+
+ transition: left 0.3s ease; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
+ z-index: 10;
- &.right {
- top: 47px;
+ &.show {
+ left: 0%;
}
}
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index 97f30d2777c..a1b58d055d5 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -1405,11 +1405,8 @@ div.settings-radio-input-parent {
}
}
-/* Note that this block has settings_page CSS as well, and thus needs
- to match the media queries in settings.css
-
- We should eventually consolidate some of these styles with the settings
- menu, using shared classnames. */
+/* We should eventually consolidate some of these styles with the styles
+ in settings.css, using shared classnames. */
@container settings-overlay (width < $settings_overlay_sidebar_collapse_breakpoint) {
.two-pane-settings-container {
position: relative;
@@ -1446,26 +1443,6 @@ div.settings-radio-input-parent {
}
}
- #settings_page .content-wrapper.right {
- position: absolute;
- display: block;
- left: 101%;
- margin: 0;
- width: 100%;
- height: calc(100% - var(--settings-overlay-header-height));
-
- top: var(--settings-overlay-header-height);
- background-color: var(--color-background-modal);
- border: none;
-
- transition: left 0.3s ease; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
- z-index: 10;
-
- &.show {
- left: 0%;
- }
- }
-
.two-pane-settings-overlay .settings {
overflow: auto;
-webkit-overflow-scrolling: touch;