Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
help-beta: Better align icon with the rest of the text for ZulipTip.
Shubham Padia28cb68117f58
diff --git a/help-beta/src/components/ZulipTip.astro b/help-beta/src/components/ZulipTip.astroindex d0c43132342..375a286c2fe 100644--- a/help-beta/src/components/ZulipTip.astro+++ b/help-beta/src/components/ZulipTip.astro@@ -13,12 +13,8 @@ assert.ok(lightbulb_icon_first_child.type === "element" &&lightbulb_icon_first_child.tagName === "svg",);-lightbulb_icon_first_child.properties.class = "zulip-unplugin-icon";-// We need to make the fill transparent for the bulb to look hollow-// and the default vertical-align of text-bottom was not looking-// good beside the `Tip` text.-lightbulb_icon_first_child.properties.style =- "vertical-align: text-top; fill: transparent; stroke: currentColor;";+lightbulb_icon_first_child.properties.class =+ "zulip-unplugin-icon aside-icon-lightbulb";let prefix_element_list = [lightbulb_icon_first_child,diff --git a/help-beta/src/styles/main.css b/help-beta/src/styles/main.cssindex 2ced6095518..96b9f4ed523 100644--- a/help-beta/src/styles/main.css+++ b/help-beta/src/styles/main.css@@ -57,6 +57,21 @@fill: currentcolor;}+.aside-icon-lightbulb {+ /* We need to make the fill transparent for the bulb to look hollow+ and the default vertical-align of text-bottom was not looking+ good beside the `Tip` text. */+ vertical-align: text-top;+ fill: transparent;+ stroke: currentcolor;+ /* In cases where content spanned across multiple lines, the+ icon and the content just below it did not look aligned. */+ margin-left: -3px;+ /* Using any of the default vertical-align did not give desired+ results, text-top + this margin looked the best. */+ margin-top: 2px;+}+.sl-markdown-content {img {vertical-align: top;