diff --git a/src/css/main.css b/src/css/main.css index 4e69d6c77..f0219d9c0 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -180,21 +180,32 @@ th { font-weight: bold; font-size: 1.1em; margin: 0.5em 0; + position: relative; } .big-text #mainResult:hover { /* indicates the presence of click-to-copy function */ cursor: pointer; opacity: 0.7; } #tooltipText { + position: absolute; + left: 42%; + top: -170%; font-size: 0.8em; visibility: hidden; border-radius: 5px; - width: 120px; - background-color: black; + background-color: rgba(0, 0, 0, 0.7); color: white; text-align: center; padding: 5px; - margin-left: 10px; + font-weight: normal; +} +#tooltipText::after { + position: absolute; + left: 45%; + top: 100%; + content: ''; + border: 6px solid transparent; + border-top-color: rgba(0, 0, 0, 0.7); } .small-text { font-size: 0.8em; diff --git a/src/index.template.html b/src/index.template.html index 6d62e299b..e799c7db0 100644 --- a/src/index.template.html +++ b/src/index.template.html @@ -132,9 +132,9 @@