Skip to content

Commit

Permalink
feat: better tooltips for top buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
vyneer committed Nov 5, 2023
1 parent 2c7943c commit e2c2f5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
9 changes: 1 addition & 8 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ body {
}

#lwod-button, #copy-button, #disable-chat-button, #enable-chat-button {
--microtip-font-size: 13pt;
color: #DDD;
font-size: 20px;
padding: 15px;
Expand All @@ -56,18 +57,10 @@ body {
display: none;
}

#copy-button .text-disabled, #disable-chat-button .text-disabled, #enable-chat-button .text-disabled {
display: none;
}

#lwod-button:hover, #copy-button:hover, #disable-chat-button:hover, #enable-chat-button:hover {
color: white;
}

#copy-button:hover .text-disabled, #disable-chat-button:hover .text-disabled, #enable-chat-button:hover .text-disabled {
display: inline;
}

#header-links {
display: flex;
justify-content: space-between;
Expand Down
10 changes: 4 additions & 6 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<link href='https://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/css?family=Ubuntu+Mono" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,600,700" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/microtip@0.2.2/microtip.min.css" rel="stylesheet">

<script src="https://player.twitch.tv/js/embed/v1.js"></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
Expand Down Expand Up @@ -188,17 +189,14 @@

<div id="header" class="shadow">
<div id="main-links">
<div id="copy-button">
<div aria-label="Copy with time" data-microtip-position="bottom" data-microtip-size="fit" role="tooltip" id="copy-button">
<i class="fa-solid fa-stopwatch" title="Copy with time"></i>
<span class="text-disabled">Copy with time</span>
</div>
<div id="disable-chat-button">
<div aria-label="Disable chat" data-microtip-position="bottom" data-microtip-size="fit" role="tooltip" id="disable-chat-button">
<i class="fa-solid fa-comment-slash" title="Disable chat"></i>
<span class="text-disabled">Disable chat</span>
</div>
<div id="enable-chat-button">
<div aria-label="Enable chat" data-microtip-position="bottom" data-microtip-size="fit" role="tooltip" id="enable-chat-button">
<i class="fa-solid fa-comment" title="Enable chat"></i>
<span class="text-disabled">Enable chat</span>
</div>
<div id="lwod-button"><a>LWOD</a></div>
</div>
Expand Down

0 comments on commit e2c2f5a

Please sign in to comment.