Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save resir014/52c749be17bd31cb0c12267eef949946 to your computer and use it in GitHub Desktop.
Save resir014/52c749be17bd31cb0c12267eef949946 to your computer and use it in GitHub Desktop.
ALT indicator for Tweetdeck - with cleaner styling (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.75em;
font-weight: 700;
color: white;
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