Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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