Skip to content

Instantly share code, notes, and snippets.

@passcod
Last active October 5, 2020 18:16
Show Gist options
  • Save passcod/920fc24420e994eba36aa23c80fc801a to your computer and use it in GitHub Desktop.
Save passcod/920fc24420e994eba36aa23c80fc801a to your computer and use it in GitHub Desktop.
ALT indicator for Tweetdeck (see https://twitter.com/passcod/status/1313156656465735680)
/* Public Domain (or CC0) */
a.media-image[title]::after,
a.media-item[title]::after {
content: 'ALT';
position: absolute;
bottom: 0.2em;
background: rgba(0, 0, 0, 0.6);
padding: 0.2em 0.3em;
font-size: 0.7em;
font-weight: 800;
color: white;
font-variant: all-small-caps;
letter-spacing: 0.05em;
line-height: 1;
left: 0.2em;
border-radius: 0.2em;
}
a.media-image[title=""]::after,
a.media-item[title=""]::after {
content: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment