Last active
June 26, 2024 22:42
-
-
Save consoleSkunk/6dc000e39a364c69b01dd258f054b64b to your computer and use it in GitHub Desktop.
Cohost Alt Text: Shows an "ALT" indicator for images with alt text.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name Cohost Alt Text | |
@author Erika | |
@namespace github.com/openstyles/stylus | |
@version 1.0.2 | |
@description Shows an "ALT" indicator for images with alt text. | |
@homepageURL https://gist.github.com/consoleSkunk/6dc000e39a364c69b01dd258f054b64b | |
@updateURL https://gist.githubusercontent.com/consoleSkunk/6dc000e39a364c69b01dd258f054b64b/raw/cohost-alt-text.user.css | |
@license CC0-1.0 | |
==/UserStyle== */ | |
@-moz-document domain("cohost.org") { | |
button:has(img[data-attachment-id][alt]:not([alt=""])):before { | |
content: "ALT"; | |
position: absolute; | |
bottom: 8px; | |
left: 8px; | |
background-color: rgba(0,0,0,0.75); | |
color: white; | |
font-weight: bold; | |
padding: 0 4px; | |
border-radius: 4px; | |
pointer-events: none; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment