summaryrefslogtreecommitdiffhomepage
path: root/themes/luci-theme-openwrt/htdocs/luci-static
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-openwrt/htdocs/luci-static
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-openwrt/htdocs/luci-static')
-rw-r--r--themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css16
1 files changed, 12 insertions, 4 deletions
diff --git a/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css b/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css
index 5becfc5ba5..94d6b57296 100644
--- a/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css
+++ b/themes/luci-theme-openwrt/htdocs/luci-static/openwrt.org/cascade.css
@@ -231,18 +231,22 @@ hr {
padding: .5em;
border-radius: 3px;
border: 1px solid #a22;
- color: #a22;
- background: #fee;
margin: 0 0 .5em 0;
}
-.alert-message.notice {
+.alert-message, .cbi-tooltip.error {
+ border-color: #a22;
+ background: #fee;
+ color: #a22;
+}
+
+.alert-message.notice, .cbi-tooltip.notice {
border-color: #15a;
background: #e6f6ff;
color: #15a;
}
-.alert-message.warning {
+.alert-message.warning, .cbi-tooltip.warning {
border-color: #ed5;
background: #fe9;
color: #650;
@@ -1173,6 +1177,10 @@ select + .cbi-button {
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;