Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Refactor Tippy popover CSS.
Tim Abbottd3152800a6a0
diff --git a/web/styles/components.css b/web/styles/components.cssindex 7665427bb1f..00a6a82806d 100644--- a/web/styles/components.css+++ b/web/styles/components.css@@ -100,10 +100,8 @@ i.zulip-icon.zulip-icon-bot {}.tippy-content {- /* This actually sets the- * default font size of only- * tooltips; popovers should define- * font-size of their own.+ /* Set the default font size for tooltips. Popovers override this with+ a rule looking at the data-theme.*/font-size: 12px;}diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex fa107267acc..9e18dec4d62 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -1,3 +1,26 @@+/*+ Our Tippy popovers use the strangely named "light-border" Tippy+ theme, so this block defines the common styling for all of our Tippy+ popovers. (Tippy tooltips are defined in tooltips.css).+*/+.tippy-box[data-theme="light-border"] {+ /* TODO: Clean this logic up after drop Bootstrap styling */+ & ul.nav {+ /* Override default padding of tippyjs */+ margin: 0 -9px;++ /* Override bootstrap defaults */+ .nav-list > li > a {+ padding: 3px 15px;+ }++ /* Override bootstrap defaults */+ & hr {+ margin: 5px 0;+ }+ }+}+.popover {width: auto;max-width: 100%;@@ -206,19 +229,6 @@ ul {}.actions_popover {- /* Override default padding of tippyjs */- margin: 0 -9px;-- /* Override bootstrap defaults */- .nav-list > li > a {- padding: 3px 15px;- }-- /* Override bootstrap defaults */- & hr {- margin: 5px 0;- }-.mark_as_unread {.unread_count {/* The icon for this menu item is in the form of an unread count from