Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
portico: Isolate global plans-page styles in own file.
Karl Stolleyf5245285b484
diff --git a/web/styles/portico/plans_pages.css b/web/styles/portico/plans_pages.cssnew file mode 100644index 00000000000..88f27c222cb--- /dev/null+++ b/web/styles/portico/plans_pages.css@@ -0,0 +1,14 @@+/* While the portico pages design is in flux,+ we need to limit globally scoped CSS like this+ to its own file.++ The bulk of styles as well as CSS variables are+ in `pricing_plans.css`, which gets shared on+ non-plans pages such as /for/business/ */++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);+}diff --git a/web/styles/portico/pricing_plans.css b/web/styles/portico/pricing_plans.cssindex b65ace5f332..e3df8c17f1d 100644--- a/web/styles/portico/pricing_plans.css+++ b/web/styles/portico/pricing_plans.css@@ -1,3 +1,13 @@+: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%);+ }+}+.portico-pricing {--font-ss3: "Source Sans 3 VF", sans-serif;--font-ops: "Open Sans Variable", sans-serif;diff --git a/web/webpack.assets.json b/web/webpack.assets.jsonindex cf6136a50a8..a0a82dce8b5 100644--- a/web/webpack.assets.json+++ b/web/webpack.assets.json@@ -72,6 +72,7 @@"./styles/portico/hello.css","./styles/portico/navbar.css","./styles/portico/footer.css",+ "./styles/portico/plans_pages.css","./styles/portico/pricing_plans.css","./styles/portico/comparison_table.css"],