mediawiki-skins-MinervaNeue/resources
Arlo Breault b1d39a5425 Media border option applies to the media element, not the wrapper
Reported in,
https://it.wikipedia.org/w/index.php?title=Wikipedia%3ABar%2FDiscussioni%2FAggiornamento_del_parser_per_le_immagini%3A_vogliamo_testarlo%3F&type=revision&diff=130240855&oldid=130214646

The default styling in core looks like,

.mw-image-border {
	> a:first-child,
	> span:first-child {
		> *:first-child:not( .mw-broken-media ) {
			border: @border-thumbborder-screen;
		}
	}
}

The simplification here recognizes that the border option doesn't apply
to thumbs, so descendent selectors can be dispensed with, there's no
nesting in figcaptions to worry about.  That's important because
lazy-loading adds a noscript before the img tag, which would make the
selectors with first-child not apply anyways.

An img tag is used instead of the universal selector.  That seems like a
safe assumption for now and can be revisited with T314097 / T318433

Bug: T318300
Change-Id: I25f45ee794300d2ba2a38a0ab6e3741a6b1a18f2
2022-11-02 12:34:00 -04:00
..
mediawiki.less mediawiki.skin.variables: Add border-style and border-width vars 2022-09-23 01:39:30 -07:00
skins.minerva.amc.styles Remove deprecated vendor prefixes and their mixins 2022-05-23 23:18:43 +00:00
skins.minerva.base.styles Media border option applies to the media element, not the wrapper 2022-11-02 12:34:00 -04:00
skins.minerva.content.styles.images icons: Update to latest 'search' icon and remove obsolete code 2021-03-09 08:21:23 +00:00
skins.minerva.icons.page.issues.default.color build: Upgrade 'svgo' to latest and re-crush SVGs 2021-04-20 17:45:18 +00:00
skins.minerva.icons.page.issues.medium.color build: Upgrade 'svgo' to latest and re-crush SVGs 2021-04-20 17:45:18 +00:00
skins.minerva.icons.page.issues.uncolored build: Update 'svgo' to latest v2.8.0 & re-crush images 2022-02-28 00:00:36 +00:00
skins.minerva.loggedin.styles Always enable stylelint rules after disable 2020-03-11 15:50:14 -07:00
skins.minerva.mainMenu.styles Remove deprecated vendor prefixes and their mixins 2022-05-23 23:18:43 +00:00
skins.minerva.mainPage.styles FIXME cleanup 2022-04-06 20:17:22 +00:00
skins.minerva.scripts Disable "page issues" feature when DiscussionTools is handling talk page 2022-10-25 16:36:15 +01:00
skins.minerva.talk.styles Cleanup: Use .position-sticky() mixin from core 2022-08-16 07:51:03 +00:00
skins.minerva.userpage.styles Remove the mw-ui-icon hacks and overrides 2019-09-10 10:53:20 -07:00
.eslintrc.js build: Update linters and linter config 2022-05-18 14:33:23 +01:00
mobile.startup.stub.js Make MobileFrontend dependency a soft one 2020-01-17 14:02:23 -08:00