Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
portico: Remove Bootstrap dependency from API/policies pages.
Alya Abbott7322b55243c6
diff --git a/web/src/bundles/help_bundle.ts b/web/src/bundles/help_bundle.tsnew file mode 100644index 00000000000..327b21b3804--- /dev/null+++ b/web/src/bundles/help_bundle.ts@@ -0,0 +1,11 @@+import "./common.ts";+import "../portico/legacy_header.ts";+import "../portico/google-analytics.ts";+import "../portico/portico_modals.ts";+import "../portico/tippyjs.ts";+import "../portico/help.ts";+import "../../styles/portico/portico_variables.css";+import "../../styles/components.css";+import "../../styles/portico/legacy_portico.css";+import "../../styles/portico/markdown.css";+import "tippy.js/dist/tippy.css";diff --git a/web/styles/portico/legacy_portico.css b/web/styles/portico/legacy_portico.cssindex b7feb6532cd..39234d3b28b 100644--- a/web/styles/portico/legacy_portico.css+++ b/web/styles/portico/legacy_portico.css@@ -13,6 +13,7 @@}body {+ margin: 0;background-color: hsl(0deg 0% 98%);font-family: "Source Sans 3 VF", sans-serif;line-height: 150%;@@ -274,6 +275,50 @@ html {width: calc(100vw - 300px);height: calc(100% - 59px);+ /* Restore element styles that Bootstrap previously provided. */+ & p {+ margin: 0 0 10px;+ }++ & p:empty {+ margin: 0;+ }++ & h1 {+ margin-top: 10px;+ }++ & h4 {+ margin: 15px 0 5px;+ }++ & hr {+ margin: 20px 0;+ border: 0;+ border-top: 1px solid hsl(0deg 0% 93%);+ }++ & ul,+ ol {+ padding: 0;+ }++ & pre {+ padding: 9.5px;+ margin: 0 0 10px;+ word-break: break-all;+ line-height: 20px;+ background-color: hsl(0deg 0% 96%);+ border: 1px solid hsl(0deg 0% 0% / 15%);+ border-radius: 4px;+ }++ .tabbed-section .blocks pre {+ margin: 0;+ padding-top: 0;+ padding-bottom: 0;+ }+& :target {scroll-margin-top: 59px;}diff --git a/web/webpack.assets.json b/web/webpack.assets.jsonindex 6588f255038..e5ff3627f65 100644--- a/web/webpack.assets.json+++ b/web/webpack.assets.json@@ -45,12 +45,7 @@"./styles/portico/legacy_portico_styles_bundle.css"],"common": ["./src/bundles/common.ts"],- "help": [- "./src/bundles/legacy_portico_bundle.ts",- "simplebar/dist/simplebar.css",- "simplebar",- "./src/portico/help.ts"- ],+ "help": ["./src/bundles/help_bundle.ts", "simplebar/dist/simplebar.css", "simplebar"],"marketing-page": ["./src/bundles/marketing_page_bundle.ts","./src/portico/legacy_landing_page.ts",