This
interface message or
skin may be documented on
MediaWiki.org or
translatewiki.net. The page forms part of the MediaWiki interface, and can only be edited by administrators and 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. |
For the "Monobook" skin, Wikipedia uses the stylesheet
http://en.wikipedia.org/skins-1.5/monobook/main.css . The page here overwrites parts of that. Individual users can customize the skin further for themselves, see
Help:User style.
Code common to all skins, and not specific to Monobook, was moved to MediaWiki:Common.css. If you want to propose a change to the sitewide CSS that is not specific to a particular skin, please do so at MediaWiki talk:Common.css rather than here. All the stylesheets are documented at the catalogue of CSS classes. Please add any new classes into that catalogue. |
Is this diff code still needed? — RockMFR 01:52, 19 September 2009 (UTC)
Would it be helpful to add personalized CSS for some pages? Chairsenses ( talk) 02:59, 16 January 2010 (UTC)
This class has margin-top: 1em;
by default, tracing a half-height alleyway below the last navbox. I think positioning these elements flushly would be an aesthetic improvement. What kind of CSS would collapse these borders most effectively, to make figure 1 (left) resemble figure 2 (right) in the following screen-shot?
Perhaps we could set margin-top:0px;
for the catlinks, and margin-bottom:-1px;
for all navboxes, noting that navboxes should have no free-form content below them, only other navboxes. This might be IE6 friendly, even. ―
cobaltcigs 16:02, 18 October 2010 (UTC)
margin-top:0px;
for the category boxes, everything will cling to the box, including what you are reading right now; we defenitely do not want that. The category box is a seperate entity on the page; it should remain that way. —
Edokter •
Talk • 23:00, 18 October 2010 (UTC)
Could we reduce it to a few px so it is not visually mistakable for an empty paragraph tag? ― cobaltcigs 23:54, 21 November 2010 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
#coordinates {
/* Increase clicking area for selecting coordinates */
padding-right:30px;
right:0;
}
— Dispenser 00:00, 2 July 2012 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hi. Can someone please look at updating the following text:
/* Don't display some stuff on the main page */
body.page-Main_Page #deleteconfirm,
body.page-Main_Page #t-cite,
body.page-Main_Page #lastmod,
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-view #contentSub,
body.page-Main_Page.action-view h1.firstHeading {
display: none !important;
}
/* The above causes the bodyContent div to cover most of the
tabs on the main page, making them unclickable. Shifting
it down a bit fixes the problem. */
body.page-Main_Page.action-view #bodyContent{
margin-top: 1.3em;
}
with this text:
/* Don't display some stuff on the main page */
body.page-Main_Page #deleteconfirm,
body.page-Main_Page #t-cite,
body.page-Main_Page #lastmod,
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-view #contentSub,
body.page-Main_Page.action-view h1.firstHeading {
display: none !important;
}
please?
margin-top on bodyContent came from this edit. I believe this was a misdiagnosis of the underlying issue. The issue is that the "#jump-to-nav" element obscures the tabs in Monobook. Adding margin-top makes the page look silly (though this seems to have become more apparent just recently). -- MZMcBride ( talk) 02:51, 23 April 2013 (UTC)
margin-top:
property of the <div id=bodyContent>
although reading the display one way (the new "box model" feature), it's 16px; another way ("Computed"), shows margin-top 16.5167px; a third ("Rules") showsbody.page-Main_Page.action-view #bodyContent {
margin-top: 1.3em;
}
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Per
Wikipedia:Village pump (proposals)/Archive 109#Move Pending Changes dropdown in header 20 pixels to the left and
Template talk:Pp-meta#Overlapping icons, please change line 164 from right: 55px;
to right: 75px;
.
Jackmcbarn (
talk) 21:34, 3 March 2014 (UTC)
Hello! If this CSS adds or modifies icons shown after external links, you'll be interested in knowing that such icons have been removed from MediaWiki core, a change which will reach this wiki in few days. You may want to consider whether you still need them. If you have questions, please ask at bugzilla:63725. Regards, Nemo 09:45, 10 April 2014 (UTC)
Can someone make the coordinates either appear on top or bottom of the centralnotice banners, instead of overlapping with them? See [1] [2]. This problem is not present in dewiki [3] but at dewiki the coordinates are on top of h1 while here at enwiki they're at the bottom of h1. If the local css here cannot be modified to fix this, it would be greatly appreciated if someone could provide the css to fix it through css of cnbanners. But if the latter option is preferred, it would mean that the styling have to be applied to all cnbanners to fix the issue. Thanks, -- Glaisher ( talk) 17:56, 29 August 2014 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add the following fragment to improve the display of coordinates while the visual editor is open using monobook. The visual editor is basically using the new 'Vector' style of positioning elements inside the canvas.
.ve-ce-surface #coordinates {
top: 0;
padding: 0;
}
— TheDJ ( talk • contribs) 09:44, 9 November 2015 (UTC)
I've added bolding to new OOUI style buttons that appear in a new light red, making them harder to see, currently this is only done for buttons that you may want to avoid, or may need to find better such as CANCEL/RESET/etc. — xaosflux Talk 02:27, 1 December 2017 (UTC)
Hi, I plan on removing this section absent any objection:
/* Bold 'edit this page' link to encourage newcomers */
#ca-edit a {
font-weight: bold !important;
}
Barring objects, will be removing this class as useless. Logged out users get vector now, you would have to do a url "&useskin=monobook" while logged out to make the "log in" button change with this now. — xaosflux Talk 13:24, 8 September 2018 (UTC)
@ Xaosflux: The temporary workaround added in the last edit should no longer be needed, can you undo it? Matma Rex talk 20:02, 12 July 2019 (UTC)
Coming from
https://phabricator.wikimedia.org/T248137, all mentions of div
together with an id selector #
can be safely and should be removed.
Volker E. (WMF) (
talk) 23:48, 19 March 2020 (UTC)
!important
annotation. --
Redrose64 🌹 (
talk) 23:51, 20 March 2020 (UTC)
Can a small margin be added at the top so that the username/watchlist/etc. aren't pressed so close to the top edge? I tested this out in my common.css and it looks pretty good.
body {
margin-top:5px;
}
should do the trick. It's fairly minor, but I figured I should ask regardless. Edward-Woodrow :) [ talk 20:24, 28 June 2023 (UTC)
This
interface message or
skin may be documented on
MediaWiki.org or
translatewiki.net. The page forms part of the MediaWiki interface, and can only be edited by administrators and 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. |
For the "Monobook" skin, Wikipedia uses the stylesheet
http://en.wikipedia.org/skins-1.5/monobook/main.css . The page here overwrites parts of that. Individual users can customize the skin further for themselves, see
Help:User style.
Code common to all skins, and not specific to Monobook, was moved to MediaWiki:Common.css. If you want to propose a change to the sitewide CSS that is not specific to a particular skin, please do so at MediaWiki talk:Common.css rather than here. All the stylesheets are documented at the catalogue of CSS classes. Please add any new classes into that catalogue. |
Is this diff code still needed? — RockMFR 01:52, 19 September 2009 (UTC)
Would it be helpful to add personalized CSS for some pages? Chairsenses ( talk) 02:59, 16 January 2010 (UTC)
This class has margin-top: 1em;
by default, tracing a half-height alleyway below the last navbox. I think positioning these elements flushly would be an aesthetic improvement. What kind of CSS would collapse these borders most effectively, to make figure 1 (left) resemble figure 2 (right) in the following screen-shot?
Perhaps we could set margin-top:0px;
for the catlinks, and margin-bottom:-1px;
for all navboxes, noting that navboxes should have no free-form content below them, only other navboxes. This might be IE6 friendly, even. ―
cobaltcigs 16:02, 18 October 2010 (UTC)
margin-top:0px;
for the category boxes, everything will cling to the box, including what you are reading right now; we defenitely do not want that. The category box is a seperate entity on the page; it should remain that way. —
Edokter •
Talk • 23:00, 18 October 2010 (UTC)
Could we reduce it to a few px so it is not visually mistakable for an empty paragraph tag? ― cobaltcigs 23:54, 21 November 2010 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
#coordinates {
/* Increase clicking area for selecting coordinates */
padding-right:30px;
right:0;
}
— Dispenser 00:00, 2 July 2012 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Hi. Can someone please look at updating the following text:
/* Don't display some stuff on the main page */
body.page-Main_Page #deleteconfirm,
body.page-Main_Page #t-cite,
body.page-Main_Page #lastmod,
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-view #contentSub,
body.page-Main_Page.action-view h1.firstHeading {
display: none !important;
}
/* The above causes the bodyContent div to cover most of the
tabs on the main page, making them unclickable. Shifting
it down a bit fixes the problem. */
body.page-Main_Page.action-view #bodyContent{
margin-top: 1.3em;
}
with this text:
/* Don't display some stuff on the main page */
body.page-Main_Page #deleteconfirm,
body.page-Main_Page #t-cite,
body.page-Main_Page #lastmod,
body.page-Main_Page.action-view #siteSub,
body.page-Main_Page.action-view #contentSub,
body.page-Main_Page.action-view h1.firstHeading {
display: none !important;
}
please?
margin-top on bodyContent came from this edit. I believe this was a misdiagnosis of the underlying issue. The issue is that the "#jump-to-nav" element obscures the tabs in Monobook. Adding margin-top makes the page look silly (though this seems to have become more apparent just recently). -- MZMcBride ( talk) 02:51, 23 April 2013 (UTC)
margin-top:
property of the <div id=bodyContent>
although reading the display one way (the new "box model" feature), it's 16px; another way ("Computed"), shows margin-top 16.5167px; a third ("Rules") showsbody.page-Main_Page.action-view #bodyContent {
margin-top: 1.3em;
}
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Per
Wikipedia:Village pump (proposals)/Archive 109#Move Pending Changes dropdown in header 20 pixels to the left and
Template talk:Pp-meta#Overlapping icons, please change line 164 from right: 55px;
to right: 75px;
.
Jackmcbarn (
talk) 21:34, 3 March 2014 (UTC)
Hello! If this CSS adds or modifies icons shown after external links, you'll be interested in knowing that such icons have been removed from MediaWiki core, a change which will reach this wiki in few days. You may want to consider whether you still need them. If you have questions, please ask at bugzilla:63725. Regards, Nemo 09:45, 10 April 2014 (UTC)
Can someone make the coordinates either appear on top or bottom of the centralnotice banners, instead of overlapping with them? See [1] [2]. This problem is not present in dewiki [3] but at dewiki the coordinates are on top of h1 while here at enwiki they're at the bottom of h1. If the local css here cannot be modified to fix this, it would be greatly appreciated if someone could provide the css to fix it through css of cnbanners. But if the latter option is preferred, it would mean that the styling have to be applied to all cnbanners to fix the issue. Thanks, -- Glaisher ( talk) 17:56, 29 August 2014 (UTC)
This
edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add the following fragment to improve the display of coordinates while the visual editor is open using monobook. The visual editor is basically using the new 'Vector' style of positioning elements inside the canvas.
.ve-ce-surface #coordinates {
top: 0;
padding: 0;
}
— TheDJ ( talk • contribs) 09:44, 9 November 2015 (UTC)
I've added bolding to new OOUI style buttons that appear in a new light red, making them harder to see, currently this is only done for buttons that you may want to avoid, or may need to find better such as CANCEL/RESET/etc. — xaosflux Talk 02:27, 1 December 2017 (UTC)
Hi, I plan on removing this section absent any objection:
/* Bold 'edit this page' link to encourage newcomers */
#ca-edit a {
font-weight: bold !important;
}
Barring objects, will be removing this class as useless. Logged out users get vector now, you would have to do a url "&useskin=monobook" while logged out to make the "log in" button change with this now. — xaosflux Talk 13:24, 8 September 2018 (UTC)
@ Xaosflux: The temporary workaround added in the last edit should no longer be needed, can you undo it? Matma Rex talk 20:02, 12 July 2019 (UTC)
Coming from
https://phabricator.wikimedia.org/T248137, all mentions of div
together with an id selector #
can be safely and should be removed.
Volker E. (WMF) (
talk) 23:48, 19 March 2020 (UTC)
!important
annotation. --
Redrose64 🌹 (
talk) 23:51, 20 March 2020 (UTC)
Can a small margin be added at the top so that the username/watchlist/etc. aren't pressed so close to the top edge? I tested this out in my common.css and it looks pretty good.
body {
margin-top:5px;
}
should do the trick. It's fairly minor, but I figured I should ask regardless. Edward-Woodrow :) [ talk 20:24, 28 June 2023 (UTC)