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.

Revert "portico: Extend proper background gradients to /plans."

Tim Abbott40f99d0990c7
diff --git a/templates/corporate/plans.html b/templates/corporate/plans.html
index 69e0254241f..8aa439bd769 100644
--- a/templates/corporate/plans.html
+++ b/templates/corporate/plans.html
@@ -16,9 +16,6 @@
{% endif %}
<div class="portico-pricing plans {% if is_self_hosted_realm %} showing-self-hosted {% else %} showing-cloud {% endif %}">
- <div class="body-bg">
- <div class="body-bg__layer"></div>
- </div>
<div class="main">
{% include "corporate/pricing_model.html" %}
</div>
diff --git a/web/styles/portico/hello.css b/web/styles/portico/hello.css
index 0e68bcfe633..e261a8260b8 100644
--- a/web/styles/portico/hello.css
+++ b/web/styles/portico/hello.css
@@ -40,32 +40,6 @@ ul {
margin: 0;
}
-.body-bg {
- position: relative;
- width: 0;
- height: 0;
-}
-
-.body-bg__layer {
- position: fixed;
- z-index: -1;
- width: 100vw;
- height: 100vh;
- background: linear-gradient(
- 180deg,
- hsl(209.4deg 40.2% 50.2%) 30%,
- hsl(238.4deg 27.9% 26.7%) 70%
- );
-
- @media (prefers-color-scheme: dark) {
- background: linear-gradient(
- 180deg,
- hsl(209deg 63% 40%) 30%,
- hsl(238deg 28% 21%) 70%
- );
- }
-}
-
.portico-hello-page {
._full-height-no-scroll {
height: 100%;
@@ -89,6 +63,24 @@ ul {
border-style: none;
}
+ .body-bg {
+ position: relative;
+ width: 0;
+ height: 0;
+ }
+
+ .body-bg__layer {
+ position: fixed;
+ z-index: -1;
+ width: 100vw;
+ height: 100vh;
+ background: linear-gradient(
+ 180deg,
+ hsl(209.4deg 40.2% 50.2%) 30%,
+ hsl(238.4deg 27.9% 26.7%) 70%
+ );
+ }
+
.page-wrapper {
height: 100vh;
overflow: scroll;
@@ -611,6 +603,14 @@ ul {
background: hsl(209deg 63% 40%);
}
+ .body-bg__layer {
+ background: linear-gradient(
+ 180deg,
+ hsl(209deg 63% 40%) 30%,
+ hsl(238deg 28% 21%) 70%
+ );
+ }
+
.screen-1 {
background: linear-gradient(
180deg,
diff --git a/web/styles/portico/pricing_plans.css b/web/styles/portico/pricing_plans.css
index 9f7902bc82a..b65ace5f332 100644
--- a/web/styles/portico/pricing_plans.css
+++ b/web/styles/portico/pricing_plans.css
@@ -1,20 +1,3 @@
-:root {
- --color-background-gradient-start: hsl(209deg 40% 50%);
- --color-background-gradient-end: hsl(210deg 48% 69%);
-
- @media (prefers-color-scheme: dark) {
- --color-background-gradient-start: hsl(209deg 63% 40%);
- --color-background-gradient-end: hsl(238deg 28% 50%);
- }
-}
-
-html {
- /* Set the background on HTML to the starting
- color for the plans-page gradient, so that the
- top overscroll is undetectable. */
- background: var(--color-background-gradient-start);
-}
-
.portico-pricing {
--font-ss3: "Source Sans 3 VF", sans-serif;
--font-ops: "Open Sans Variable", sans-serif;
@@ -41,15 +24,15 @@ html {
padding: 102px 0 58px;
background: linear-gradient(
180deg,
- var(--color-background-gradient-start) 0%,
- var(--color-background-gradient-end) 100%
+ hsl(209deg 40% 50%) 0%,
+ hsl(210deg 48% 69%) 100%
);
@media (prefers-color-scheme: dark) {
background: linear-gradient(
180deg,
- var(--color-background-gradient-start) 30%,
- var(--color-background-gradient-end) 100%
+ hsl(209deg 63% 40%) 30%,
+ hsl(238deg 28% 50%) 100%
);
}