Skip to content

Instantly share code, notes, and snippets.

@lucaswerkmeister
Last active April 15, 2023 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucaswerkmeister/97d20beb80b4be84abd85ea0946e1d10 to your computer and use it in GitHub Desktop.
Save lucaswerkmeister/97d20beb80b4be84abd85ea0946e1d10 to your computer and use it in GitHub Desktop.
/* tentative style for wikis.world; mainly based on https://userstyles.world/style/7548/mastodon-alt-text-indicator */
/* highlight media without alt text in posts */
:is(
.status,
.detailed-status
) :is(
.audio-player__canvas,
.media-gallery__item-gifv-thumbnail:not(:fullscreen),
.media-gallery__item-thumbnail img,
.video-player:not(.fullscreen) video
):is(
:not([title]),
[title=""]
) {
/* add a border (outline would avoid affecting layout but isn’t visible, idk why) */
border: #ac6600 dashed 2px; /* Yellow30 */
/* reduce the impact of the border on the layout */
box-sizing: border-box;
}
/* ensure the whole border is visible in multi-image galleries */
.media-gallery {
overflow: visible;
}
@lucaswerkmeister
Copy link
Author

@lucaswerkmeister
Copy link
Author

Deployed on wikis.world since 2023-01-09. (Note that I’m only a moderator, but not an administrator on that instance, so I have no control over its custom styles myself; if we make further changes to the CSS, I can’t promise this gist will be updated to reflect them.)

@lucaswerkmeister
Copy link
Author

Also, to match the license of the original styles, I hereby release the contents of this gist (including its history so far) under CC0 1.0 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment