This page is the common CSS for all the skins. This interface message or skin may also be documented on MediaWiki.org or translatewiki.net. The page forms part of the MediaWiki interface, and can only be edited by interface editors. To request a change to the page, add {{edit fully-protected}} to this page, followed by a description of your request. Consider announcing discussions you add here at Wikipedia:Village pump (technical) to bring more people to the discussion. |
This is the talk page for discussing improvements to the Common.css page. |
|
Archives: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19Auto-archiving period: 3 months |
Page watchers may be interested in Wikipedia talk:Manual of Style § Mobile skin and block quotations. Please feel free to participate there. Izno (talk) 04:07, 7 September 2024 (UTC)
I'm not quite sure what Izno's edit summary "and here" means in Special:Diff/1257001458. It doesn't seem to be related to his previous edit on the same page over a month ago, but it might be related to the edit summary "no reason for that" in Special:Diff/1257000611 over at Module:Infobox/styles.css. I don't know how readers of the edit summary "and here" are supposed to understand it, because it takes investigating Izno's edits today before and after to get just a guess at what's meant.
However, what I am sure about is that removing .content
from this CSS rule made its comment outdated: Use three classes to match specificity of MobileFrontend/Minerva selectors
. It's no longer three classes, but two in each selector. —andrybak (talk) 21:42, 12 November 2024 (UTC)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
I recently created a template that changes what content is displayed depending on whether dark or light mode is used. However, it requires a bit of CSS to make working. Please add the following tested CSS into the common.css to make the behavior work as intended.
.lightdark-islightmode {
display: inline;
}
.lightdark-isdarkmode {
display: none;
}
@media screen {
html.skin-theme-clientpref-night .lightdark-islightmode {
display: none;
}
html.skin-theme-clientpref-night .lightdark-isdarkmode {
display: inline;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .lightdark-islightmode {
display: none;
}
html.skin-theme-clientpref-os .lightdark-isdarkmode {
display: inline;
}
}
The added lines will make the template work. Since as far as I am aware there isn't CSS that will change this theme, the only way to do this is to have some CSS to make this template work like a switch, similar to all the CSS hiding and showing elements for different user groups.
If it is technically feasible, you can condense the .lightdark-islightmode
and .lightdark-isdarkmode
down to .lightmode
/.islightmode
and .darkmode
/.isdarkmode
to make this CSS work outside of the template I created. Awesome Aasim 01:51, 17 November 2024 (UTC)
Sorry to pile on here after the close, but please see the template's talk page, where I asked if this template was redundant to {{if dark}}. – Jonesey95 (talk) 04:35, 18 November 2024 (UTC)
This edit request to MediaWiki:Minerva.css has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
mdot is displaying both the anonymous and logged in parameters for {{if IP}}
for logged out users. autoconfirmed-show was added to common CSS around the same time as mobile CSS. looks like user-show also needs to be added to the same section. cc: MusikAnimal Jeremyb (talk) 21:25, 15 December 2024 (UTC)