Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tippyjs: Add light theme for tippyjs.
Aman Agrawal7e814f487725
diff --git a/static/js/bundles/app.js b/static/js/bundles/app.jsindex 8cb43919d12..8eb6e92de97 100644--- a/static/js/bundles/app.js+++ b/static/js/bundles/app.js@@ -23,6 +23,7 @@ import "../zulip_test";// Import stylesimport "tippy.js/dist/tippy.css";+import "tippy.js/themes/light-border.css";import "../../third/bootstrap-tooltip/tooltip.css";import "spectrum-colorpicker/spectrum.css";import "katex/dist/katex.css";diff --git a/static/styles/night_mode.css b/static/styles/night_mode.cssindex 165957f1fa5..5ed287851c6 100644--- a/static/styles/night_mode.css+++ b/static/styles/night_mode.css@@ -28,6 +28,44 @@ body.night-mode {}}+ /* Extend the 'light-border' TippyJS theme, which is intended for+ popovers/menus that should use default background colors, to use+ our night theme colors in Zulip's night theme.+ */+ .tippy-box[data-theme~="light-border"] {+ .tippy-content a {+ color: hsl(236, 33%, 90%);+ }+ &[data-placement^="top"] {+ > .tippy-arrow {+ &::before {+ border-top-color: hsl(235, 18%, 7%);+ }+ }+ }+ &[data-placement^="bottom"] {+ > .tippy-arrow {+ &::before {+ border-bottom-color: hsl(235, 18%, 7%);+ }+ }+ }+ &[data-placement^="left"] {+ > .tippy-arrow {+ &::before {+ border-left-color: hsl(235, 18%, 7%);+ }+ }+ }+ &[data-placement^="right"] {+ > .tippy-arrow {+ &::before {+ border-right-color: hsl(235, 18%, 7%);+ }+ }+ }+ }+.app-main,.header-main,#message_view_header_underpadding,@@ -316,6 +354,7 @@ on a dark background, and don't change the dark labels dark either. */box-shadow: 0 0 30px hsl(212, 32%, 7%);}+ .tippy-box[data-theme~="light-border"],.dropdown-menu ul,.dropdown .dropdown-menu,.popover,