Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tooltips: Change tooltips styling to incorporate the redesign.

sayamsamal7d5d151b999b
diff --git a/static/styles/dark_theme.css b/static/styles/dark_theme.css
index aaab1449916..780740c890c 100644
--- a/static/styles/dark_theme.css
+++ b/static/styles/dark_theme.css
@@ -137,6 +137,26 @@
}
}
+ .tippy-box:not([data-theme]) {
+ background: hsla(0, 0%, 0%, 1);
+
+ &[data-placement^="top"] > .tippy-arrow::before {
+ border-top-color: hsla(0, 0%, 0%, 1);
+ }
+
+ &[data-placement^="bottom"] > .tippy-arrow::before {
+ border-bottom-color: hsla(0, 0%, 0%, 1);
+ }
+
+ &[data-placement^="left"] > .tippy-arrow::before {
+ border-left-color: hsla(0, 0%, 0%, 1);
+ }
+
+ &[data-placement^="right"] > .tippy-arrow::before {
+ border-right-color: hsla(0, 0%, 0%, 1);
+ }
+ }
+
body,
.app-main,
.header-main,
diff --git a/static/styles/tooltips.css b/static/styles/tooltips.css
index c19f200e3d2..e9e1d499afc 100644
--- a/static/styles/tooltips.css
+++ b/static/styles/tooltips.css
@@ -8,43 +8,32 @@
/* Affects all tippy tooltips not using any theme. */
.tippy-box:not([data-theme]) {
- background-color: hsl(0, 0%, 12%);
+ background: hsla(0, 0%, 20%, 1);
+ border-radius: 5px;
- &[data-placement^="top"] {
- > .tippy-arrow {
- &::before {
- border-top-color: hsl(0, 0%, 12%);
- }
- }
+ > .tippy-content {
+ display: inline-block;
+ padding: 5px 10px;
+ font-size: 14px;
+ line-height: 15px;
+ color: #FFFFFF;
}
- &[data-placement^="bottom"] {
- > .tippy-arrow {
- &::before {
- border-bottom-color: hsl(0, 0%, 12%);
- }
- }
+ &[data-placement^="top"] > .tippy-arrow::before {
+ border-top-color: hsla(0, 0%, 20%, 1);
}
- &[data-placement^="left"] {
- > .tippy-arrow {
- &::before {
- border-left-color: hsl(0, 0%, 12%);
- }
- }
+ &[data-placement^="bottom"] > .tippy-arrow::before {
+ border-bottom-color: hsla(0, 0%, 20%, 1);
}
- &[data-placement^="right"] {
- > .tippy-arrow {
- &::before {
- border-right-color: hsl(0, 0%, 12%);
- }
- }
+ &[data-placement^="left"] > .tippy-arrow::before {
+ border-left-color: hsla(0, 0%, 20%, 1);
}
- }
- .tippy-content {
- font-size: 13px;
+ &[data-placement^="right"] > .tippy-arrow::before {
+ border-right-color: hsla(0, 0%, 20%, 1);
+ }
}
.tippy-arrow::before {