From 7b98e7a1ffdc9c8c33716415dbd7cd890bdba85e Mon Sep 17 00:00:00 2001 From: MORIOKA Tomohiko Date: Tue, 7 Jun 2016 14:31:29 +0900 Subject: [PATCH] (www-display-object-desc): Add styles for tooltips. --- cwiki-view.el | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/cwiki-view.el b/cwiki-view.el index ae852ba..82fe7c6 100644 --- a/cwiki-view.el +++ b/cwiki-view.el @@ -102,6 +102,32 @@ ul { margin: 0 0; color: black; } li { margin: 0 0 0 2em; } .feature-name { font-family: sans-serif; font-weight: bold; } .feature-name a { color: black; } + +.tooltip { + position: relative; + display: inline-block; + border-bottom: 1px dotted black; +} + +.tooltip .tooltiptext { + visibility: hidden; + width: 120px; + top: 100%%; + left: 50%%; + margin-left: -60px; + background-color: black; + color: #fff; + text-align: center; + padding: 5px 0; + border-radius: 6px; + + position: absolute; + z-index: 1; +} + +.list .tooltip:hover .tooltiptext { + visibility: visible; +} --> -- 1.7.10.4