From b5b5780e14f2b7121458eb915b4245a62480f992 Mon Sep 17 00:00:00 2001 From: Reuben Frankel Date: Sun, 28 Apr 2024 15:52:56 +0100 Subject: [PATCH] Show last commit date as tooltip --- src/assets/css/main.css | 29 +++++++++++++++++++++++++++++ src/templates/Plugins.vue | 39 ++++++++++++++++++++------------------- 2 files changed, 49 insertions(+), 19 deletions(-) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 23998a10c..ce4587f02 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -271,3 +271,32 @@ pre[class*="language-"] { content: "/"; color: #f963bc; } + +.tooltip { + position: relative; +} +.tooltip .tooltip-content { + visibility: hidden; + width: max-content; + background-color: #62626e; + text-align: center; + padding: 5px; + border-radius: 5px; + position: absolute; + z-index: 1; + left: 105%; + top: -5px; +} +.tooltip .tooltip-content::after { + content: " "; + position: absolute; + right: 100%; + top: 50%; + margin-top: -5px; + border-width: 5px; + border-style: solid; + border-color: transparent #62626e transparent transparent; +} +.tooltip:hover .tooltip-content { + visibility: visible; +} diff --git a/src/templates/Plugins.vue b/src/templates/Plugins.vue index 54cf2b21b..97e0de2ba 100644 --- a/src/templates/Plugins.vue +++ b/src/templates/Plugins.vue @@ -185,10 +185,29 @@