[13:54:41] Hey folks, I've had someone report a bunch of problems with the dark mode on rowiki. I took a look and isolated the problems, but I'm not sure if I can (should?) solve them in [[MediaWiki:Common.css]] or I should raise a bug to be investigated by the web team. Is anyone here CSS-knowledgeble and willing to spend 10 min with me to help me reach a [13:54:41] conclusion? [13:55:37] What is the bug ? [13:56:48] 1. Dark links on dark background on main page https://ro.wikipedia.org/wiki/Pagina_principal%C4%83 [13:56:48] The CSS that asks for that color is loaded from https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.dismissableSiteNotice.styles%7Cext.echo.styles.badge%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Coojs-ui.styles.icons-alerts%7Cskins.vector.icons%2Cstyles%7Cskins [13:56:49] .vector.search.codex.styles&only=styles&skin=vector-2022 [13:57:28] 2. The sorter arrows in wikitables looks weird because the background image is repeated https://ro.wikipedia.org/wiki/Lista_monumentelor_istorice_din_jude%C8%9Bul_Alba [13:57:43] In light mode, there is a norepeat rule [13:58:10] CSS is loaded from https://ro.wikipedia.org/w/load.php?lang=ro&modules=ext.cite.styles%7Cext.dismissableSiteNotice.styles%7Cext.echo.styles.badge%7Cext.kartographer.style%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cjquery.tablesorter.styles%7Coojs-ui.styles.icons-al [13:58:10] erts%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022 [14:00:03] In both cases, the rule is explicitly set for dark mode, it's not a leftover from light mode [14:04:37] Imo both should be fixed onwiki. For the first one, I would say the fix would be to not use tables for layout in the first place. [14:09:35] The second one goes away in safemode, indicating that it's some community loaded css or JS that is interfering here [14:13:48] MY hunch is that for the second one https://ro.wikipedia.org/wiki/MediaWiki:Common.css#L-195 is the problem. Setting the background, resets all the background flags, including the no-repeat [14:13:53] strainu: [14:17:38] Thanks Sohom_Datta ! [14:19:30] just to confirm, you say that in https://ro.wikipedia.org/wiki/Pagina_principal%C4%83?safemode=1 the links show up OK for you? [14:19:53] for me, they still look dark gray [14:23:06] nvm, I mixed them up. [14:24:03] regarding the sorting, we have an equivalent rule for light mode: https://ro.wikipedia.org/wiki/MediaWiki:Common.css#L-162 Why does it work for light mode? [17:21:55] how to get "number of pages in a given category" from MediaWiki (including all the sub categories) [17:22:36] Special:Categories?from=foo only shows direct members but that is not that meaningful [17:22:50] maybe that CategoryTree extension did that? [17:23:12] API? [18:12:56] categories are not a tree [18:13:00] they are a graph [18:13:13] so MediaWiki doesn't offer that [18:13:18] only direct number of members [18:13:45] if you want that recursive you would need to process that externally [18:18:11] Platonides: gotcha! thank you