MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* All CSS here will be loaded for users of the Citizen skin */ | /* All CSS here will be loaded for users of the Citizen skin */ | ||
/* | /* Ensure all wikitables are centered */ | ||
.wikitable { | .wikitable, | ||
body .mw-body .wikitable { | |||
margin-left: auto !important; | margin-left: auto !important; | ||
margin-right: auto !important; | margin-right: auto !important; | ||
width: 600px !important; /* | width: 600px !important; /* Specify the width as needed */ | ||
display: table !important; | |||
box-sizing: border-box; | |||
} | } | ||
/* Optional: Center-align the text within the table */ | |||
.wikitable td, .wikitable th { | |||
text-align: center !important; | |||
} | |||
/* Forcing the table to center by wrapping it in a div */ | |||
body .wikitable-wrapper { | |||
display: flex; | |||
justify-content: center; | |||
width: 100%; | |||
} | |||
body .wikitable-wrapper .wikitable { | |||
margin: 0 !important; | |||
width: 600px !important; | |||
} | |||
Revision as of 21:30, 12 November 2024
/* All CSS here will be loaded for users of the Citizen skin */
/* Ensure all wikitables are centered */
.wikitable,
body .mw-body .wikitable {
margin-left: auto !important;
margin-right: auto !important;
width: 600px !important; /* Specify the width as needed */
display: table !important;
box-sizing: border-box;
}
/* Optional: Center-align the text within the table */
.wikitable td, .wikitable th {
text-align: center !important;
}
/* Forcing the table to center by wrapping it in a div */
body .wikitable-wrapper {
display: flex;
justify-content: center;
width: 100%;
}
body .wikitable-wrapper .wikitable {
margin: 0 !important;
width: 600px !important;
}
:root {
/* My colour variables*/
--myblueone: hsl(207, 45%, 8%); /*0B151D*/
--mybluetwo: hsl(207, 44%, 12%); /*11202C*/
--mybluetest: hsl(207, 44%, 14%); /*11202C*/
/* The actual colours */
--color-surface-0: var(--myblueone);
--color-surface-1: var(--mybluetow);
--color-surface-2: var(--mybluetwo);
--color-surface-3: var(--mybluetwo);
--color-surface-4: var(--mybluetwo);
/* Pink is the new black
--color-primary__h: 209; */
}
* {
box-shadow: none !important;
}