From 293992fe60a70385dff9ffa78db904cd1399a734 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Tue, 26 Mar 2024 03:54:50 +0000 Subject: [PATCH] portico: Enable tippy tooltips for all portico pages with common style. --- web/src/bundles/portico.ts | 1 + web/styles/portico/billing.css | 6 ------ web/styles/portico/portico.css | 6 ++++++ web/webpack.assets.json | 5 +---- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/web/src/bundles/portico.ts b/web/src/bundles/portico.ts index d2eaf0104f..5635188842 100644 --- a/web/src/bundles/portico.ts +++ b/web/src/bundles/portico.ts @@ -2,6 +2,7 @@ import "./common"; import "../portico/header"; import "../portico/google-analytics"; import "../portico/portico_modals"; +import "../portico/tippyjs"; import "../../third/bootstrap/css/bootstrap.portico.css"; import "../../styles/portico/portico_styles.css"; import "tippy.js/dist/tippy.css"; diff --git a/web/styles/portico/billing.css b/web/styles/portico/billing.css index f8db9e5612..ce9c3cae69 100644 --- a/web/styles/portico/billing.css +++ b/web/styles/portico/billing.css @@ -2,12 +2,6 @@ --color-background-modal: hsl(0deg 0% 98%); } -[data-tippy-root] .tippy-box .tippy-content { - font-size: 14px; - font-weight: normal; - color: hsl(0deg 0% 100%); -} - .billing-upgrade-page { font-family: "Source Sans 3 VF", sans-serif; background-color: hsl(0deg 0% 98%); diff --git a/web/styles/portico/portico.css b/web/styles/portico/portico.css index 71a6a366b0..6eab9c1811 100644 --- a/web/styles/portico/portico.css +++ b/web/styles/portico/portico.css @@ -2,6 +2,12 @@ --color-background-modal: hsl(0deg 0% 98%); } +[data-tippy-root] .tippy-box .tippy-content { + font-size: 14px; + font-weight: normal; + color: hsl(0deg 0% 100%); +} + body { background-color: hsl(0deg 0% 98%); font-family: "Source Sans 3 VF", sans-serif; diff --git a/web/webpack.assets.json b/web/webpack.assets.json index 2da9d0487f..a826cef354 100644 --- a/web/webpack.assets.json +++ b/web/webpack.assets.json @@ -21,7 +21,6 @@ ], "billing_auth": [ "./src/bundles/portico", - "./src/portico/tippyjs", "./src/billing/helpers", "jquery-validation", "./src/billing/remote_billing_auth", @@ -30,7 +29,6 @@ ], "upgrade": [ "./src/bundles/portico", - "./src/portico/tippyjs", "./src/billing/helpers", "./src/billing/upgrade", "jquery-validation", @@ -120,8 +118,7 @@ "stats": [ "./src/bundles/portico", "./styles/portico/stats.css", - "./src/stats/stats", - "tippy.js/dist/tippy.css" + "./src/stats/stats" ], "app": ["./src/bundles/app"], "digest": ["./src/bundles/portico"]