MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| (36 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
max-width: 100% !important; /* Ensure it does not restrict the width */ | max-width: 100% !important; /* Ensure it does not restrict the width */ | ||
} | } | ||
.mw-editsection { display:none!important; } | |||
/* Ensure all wikitables are centered and border-collapse is set to separate */ | /* Ensure all wikitables are centered and border-collapse is set to separate */ | ||
| Line 35: | Line 37: | ||
body .mw-body table th, | body .mw-body table th, | ||
body .mw-body table td { | body .mw-body table td { | ||
border: 1px solid # | border: 1px solid #375181 !important; /* Set border size and color for cells */ | ||
text-align: center; /* Center-align text */ | text-align: center; /* Center-align text */ | ||
} | } | ||
.mw-body a:link.new { color: # | .mw-body a:link.new { color: #BE4B5E; } /* new links */ | ||
.mw-body a.new:visited { color:# | .mw-body a:link.new:hover { color: #CE7886; } /* hover color for unvisited new links DONE*/ | ||
.mw-body a.new:visited { color:#BE4B5E; } | |||
.mw-body a.new:hover { color: #B6C5E2; } /* hover color for new links */ | |||
.mw-body a.new:visited:hover { color: #CE7886; } /* hover color for visited new links */ | |||
.mw-body a:link:hover { color: #83A6EC; } /* hover color for unvisited normal links */ | |||
.mw-body a:visited:hover { color: #83A6EC; } /* hover color for visited normal links */ | |||
.fullImageLink > a:hover > img { | .fullImageLink > a:hover > img { | ||
| Line 50: | Line 58: | ||
.fullImageLink > a:hover > img { | .fullImageLink > a:hover > img { | ||
transform: none !important; | transform: none !important; | ||
} | |||
#citizen-pref-toggle { | |||
display: none !important; | |||
} | } | ||
Latest revision as of 22:05, 12 November 2025
/* Override .citizen-overflow-wrapper to ensure proper centering */
.citizen-overflow-wrapper {
position: relative;
display: block !important; /* Change from flex to block */
max-width: 100% !important; /* Ensure it does not restrict the width */
}
.mw-editsection { display:none!important; }
/* Ensure all wikitables are centered and border-collapse is set to separate */
body.skin-citizen-dark.skin-theme-clientpref-night .mw-body .content .citizen-overflow-wrapper .citizen-overflow-content table.wikitable,
body.skin-theme-clientpref-night .mw-body .content .citizen-overflow-wrapper .citizen-overflow-content table.wikitable,
body.citizen-feature-autohide-navigation-clientpref-1 .mw-body .content .citizen-overflow-wrapper .citizen-overflow-content table.wikitable,
body.citizen-feature-pure-black-clientpref-0 .mw-body .content .citizen-overflow-wrapper .citizen-overflow-content table.wikitable,
body.citizen-feature-custom-font-size-clientpref-standard .mw-body .content .citizen-overflow-wrapper .citizen-overflow-content table.wikitable,
body.citizen-feature-custom-width-clientpref-standard .mw-body .content .citizen-overflow-wrapper .citizen-overflow-content table.wikitable {
border-collapse: separate !important;
margin-left: auto !important;
margin-right: auto !important;
display: table !important;
box-sizing: border-box !important;
transition: none !important; /* Disable transitions */
}
/* 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;
}
/* Apply to all table cells */
body .mw-body table th,
body .mw-body table td {
border: 1px solid #375181 !important; /* Set border size and color for cells */
text-align: center; /* Center-align text */
}
.mw-body a:link.new { color: #BE4B5E; } /* new links */
.mw-body a:link.new:hover { color: #CE7886; } /* hover color for unvisited new links DONE*/
.mw-body a.new:visited { color:#BE4B5E; }
.mw-body a.new:hover { color: #B6C5E2; } /* hover color for new links */
.mw-body a.new:visited:hover { color: #CE7886; } /* hover color for visited new links */
.mw-body a:link:hover { color: #83A6EC; } /* hover color for unvisited normal links */
.mw-body a:visited:hover { color: #83A6EC; } /* hover color for visited normal links */
.fullImageLink > a:hover > img {
/* Override hover effect */
pointer-events: none;
}
.fullImageLink > a:hover > img {
transform: none !important;
}
#citizen-pref-toggle {
display: none !important;
}