From b8e61e641a48ec6576001bd1e6fd9a8933d9f9eb Mon Sep 17 00:00:00 2001 From: Kevin Nobel Date: Wed, 11 Jan 2017 15:09:24 +0100 Subject: [PATCH] Fixed tooltip bug (only worked with hyperlinks before --- website/styles/main.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/website/styles/main.css b/website/styles/main.css index e43e5d3..69629f5 100644 --- a/website/styles/main.css +++ b/website/styles/main.css @@ -125,11 +125,12 @@ td { } /* Custom title box, appears instantaneously */ -a:hover { +a:hover, img:hover, span:hover, div:hover { position: relative; } -a[data-title]:hover:after { +a[data-title]:hover:after, img[data-title]:hover:after, span[data-title]:hover:after, +div[data-title]:hover:after{ content: attr(data-title); padding: 4px 4px; color: #FFFFFF; @@ -145,4 +146,7 @@ a[data-title]:hover:after { -webkit-box-shadow: 0px 0px 4px #222; box-shadow: 0px 0px 4px #222; background-color: #333; + font-size: 15px; + line-height: normal; + font-family: Arial, sans-serif; }