Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Move subheader CSS out of main CSS block.
evykassirer6b0dd9e0633c
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.cssindex 0fc80f5e08b..1e9aa29a78c 100644--- a/web/styles/subscriptions.css+++ b/web/styles/subscriptions.css@@ -338,6 +338,77 @@ h4.user_group_setting_subsection_title {}}+/* Subheader styles. These aren't in a separate subheader div yet,+ so we add `.overlay-container` for now to apppease the linter in+ differentiating from the main container styles below. */+.two-pane-settings-container.overlay-container {+ .list-toggler-container {+ align-items: center;+ padding: 0 8px;+ border-bottom: 1px solid var(--color-border-modal-bar);+ display: flex;+ justify-content: space-between;+ height: var(--settings-overlay-subheader-height);+ }++ #add_new_subscription {+ height: var(--settings-overlay-header-button-height);+ }++ .display-type {+ height: var(--settings-overlay-subheader-height);+ display: flex;+ justify-content: center;+ align-items: center;+ font-weight: 600;+ border-bottom: 1px solid var(--color-border-modal-bar);++ & a {+ color: inherit;++ &:hover {+ color: inherit;+ text-decoration: none;+ }+ }++ &.preview::after {+ content: "Preview";+ }++ &.preferences::after {+ content: "Preferences";+ }++ .stream-info-title,+ .user-group-info-title {+ display: none;+ font-size: 1.5em; /* 21px at 14px/em */+ line-height: 1.25;+ font-weight: 600;+ overflow-wrap: break-word;+ line-clamp: 2;+ -webkit-line-clamp: 2;+ -webkit-box-orient: vertical;+ overflow: hidden;+ margin: 20px 10px 0;++ &.showing-info-title {+ display: -webkit-box;+ }++ .large-icon {+ display: inline-block;+ margin-left: 5px;++ .zulip-icon {+ font-size: 0.75em; /* 18px at 24px/em */+ }+ }+ }+ }+}+#subscription_overlay .two-pane-settings-container {container: subscriptions / inline-size;}@@ -499,19 +570,6 @@ h4.user_group_setting_subsection_title {.left {border-right: 1px solid var(--color-border-modal-bar);-- .list-toggler-container {- align-items: center;- padding: 0 8px;- border-bottom: 1px solid var(--color-border-modal-bar);- display: flex;- justify-content: space-between;- height: var(--settings-overlay-subheader-height);-- #add_new_subscription {- height: var(--settings-overlay-header-button-height);- }- }}.right {@@ -527,59 +585,6 @@ h4.user_group_setting_subsection_title {.main-view-banner.group_deactivated {margin-bottom: 10px;}-- .display-type {- height: var(--settings-overlay-subheader-height);- display: flex;- justify-content: center;- align-items: center;- font-weight: 600;- border-bottom: 1px solid var(--color-border-modal-bar);-- & a {- color: inherit;-- &:hover {- color: inherit;- text-decoration: none;- }- }-- &.preview::after {- content: "Preview";- }-- &.preferences::after {- content: "Preferences";- }-- .stream-info-title,- .user-group-info-title {- display: none;- font-size: 1.5em; /* 21px at 14px/em */- line-height: 1.25;- font-weight: 600;- overflow-wrap: break-word;- line-clamp: 2;- -webkit-line-clamp: 2;- -webkit-box-orient: vertical;- overflow: hidden;- margin: 20px 10px 0;-- &.showing-info-title {- display: -webkit-box;- }-- .large-icon {- display: inline-block;- margin-left: 5px;-- .zulip-icon {- font-size: 0.75em; /* 18px at 24px/em */- }- }- }- }}& input[type="text"].small {