summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-freifunk-generic/htdocs/luci-static/freifunk-generic
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-10-18 16:14:35 +0200
committerJo-Philipp Wich <jo@mein.io>2018-11-05 11:01:45 +0100
commit7f613be5000e753e99ce5b829748fb43fca78754 (patch)
treea9615767db020a857f4b71e25632c236f7248bfd /themes/luci-theme-freifunk-generic/htdocs/luci-static/freifunk-generic
parent31bce2455fdeacefbb837d6abb95584df66c36a2 (diff)
luci-base, themes: add tooltip helpers & styles
Add the required JS and CSS infrastructure to support rich hover/focus tooltips for element. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'themes/luci-theme-freifunk-generic/htdocs/luci-static/freifunk-generic')
-rw-r--r--themes/luci-theme-freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css13
1 files changed, 11 insertions, 2 deletions
diff --git a/themes/luci-theme-freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css b/themes/luci-theme-freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css
index 3e1b1cd2f1..b9ac0f033d 100644
--- a/themes/luci-theme-freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css
+++ b/themes/luci-theme-freifunk-generic/htdocs/luci-static/freifunk-generic/cascade.css
@@ -156,12 +156,17 @@ a img {
color: #000;
}
-.alert-message.notice {
+.alert-message, .cbi-tooltip.error {
+ background: #fee;
+ color: #a22;
+}
+
+.alert-message.notice, .cbi-tooltip.notice {
background: linear-gradient(#ccc 0%, #eee 100%);
color: #4a6b7c;
}
-.alert-message.warning {
+.alert-message.warning, .cbi-tooltip.warning {
background: linear-gradient(#dda 0%, #dd8 100%);
color: #c00;
}
@@ -1354,6 +1359,10 @@ td.cbi-value-error {
position: absolute;
z-index: 1000;
left: -1000px;
+ border-radius: 3px;
+ background: #fff;
+ padding: 2px 5px;
+ white-space: pre;
opacity: 0;
transition: opacity .25s ease-out;
pointer-events: none;