diff options
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/main.css | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index a51da84..4e4ab7d 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -11,7 +11,7 @@ a { color: var(--text); --brackets-color: var(--accent); padding: 0.2rem; - clip-path: polygon(0% 0,0% calc(100% - 0.2rem), 0.2rem 100%,100% 100%, 100% 0%); + /* clip-path: polygon(0% 0,0% calc(100% - 0.2rem), 0.2rem 100%,100% 100%, 100% 0%); */ border-radius: 0rem; text-decoration: none; position: relative; @@ -57,14 +57,32 @@ a[target="_blank"]::after { content: "}"; } +.tooltip { + position:relative; + display:inline-block; +} + +.tooltiptext { + visibility: hidden; + color: var(--base); + background: var(--text); + text-align: center; + position: absolute; + z-index: 1; + top: 100%; + left: 50%; + margin-left: -50%; +} +.tooltip:hover .tooltiptext { + visibility: visible; +} a.active, a:focus, a:hover { + background: var(--text); color: var(--base); --brackets-color: var(--base-3); - clip-path: polygon(0% 0,0% calc(100% - 0.4rem), 0.4rem 100%,100% 100%, 100% 0%); - background-color: var(--text); } header { @@ -236,4 +254,4 @@ picture img { display: block; padding: 0.5rem; } -}
\ No newline at end of file +} |
