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.

portico: Extend proper background gradients to /plans.

Karl Stolley536d2f4e7f07
diff --git a/templates/corporate/plans.html b/templates/corporate/plans.html
index 3375b4dc274..bfb9344f296 100644
--- a/templates/corporate/plans.html
+++ b/templates/corporate/plans.html
@@ -16,6 +16,9 @@
{% 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 e261a8260b8..0e68bcfe633 100644
--- a/web/styles/portico/hello.css
+++ b/web/styles/portico/hello.css
@@ -40,6 +40,32 @@ 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%;
@@ -63,24 +89,6 @@ 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;
@@ -603,14 +611,6 @@ 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 e1fcf004689..d137710c468 100644
--- a/web/styles/portico/pricing_plans.css
+++ b/web/styles/portico/pricing_plans.css
@@ -1,3 +1,20 @@
+: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;
@@ -24,15 +41,15 @@
padding: 102px 0 58px;
background: linear-gradient(
180deg,
- hsl(209deg 40% 50%) 0%,
- hsl(210deg 48% 69%) 100%
+ var(--color-background-gradient-start) 0%,
+ var(--color-background-gradient-end) 100%
);
@media (prefers-color-scheme: dark) {
background: linear-gradient(
180deg,
- hsl(209deg 63% 40%) 30%,
- hsl(238deg 28% 50%) 100%
+ var(--color-background-gradient-start) 30%,
+ var(--color-background-gradient-end) 100%
);
}