portico: Isolate global plans-page styles in own file.

This commit is contained in:
Karl Stolley 2024-01-15 09:33:04 -06:00 committed by Tim Abbott
parent b10c611840
commit f5245285b4
3 changed files with 25 additions and 0 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -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"
],