Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Ensure all wikitables are centered and border-collapse is set to separate */
/* Override .citizen-overflow-wrapper to ensure proper centering */
body .mw-body .content table.wikitable {
.citizen-overflow-wrapper {
     border-collapse: separate !important;
     position: relative;
    margin-left: auto !important;
     display: block !important; /* Change from flex to block */
    margin-right: auto !important;
     max-width: 100% !important; /* Ensure it does not restrict the width */
     display: table !important;
     box-sizing: border-box !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 */
body.skin-citizen .mw-body .content table.wikitable {
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;
     border-collapse: separate !important;
     margin-left: auto !important;
     margin-left: auto !important;
Line 15: Line 18:
     display: table !important;
     display: table !important;
     box-sizing: border-box !important;
     box-sizing: border-box !important;
}
     transition: none !important; /* Disable transitions */
 
/* Make sure the text within the table is centered */
body.skin-citizen .mw-body .content table.wikitable td,
body.skin-citizen .mw-body .content table.wikitable th {
}
 
 
/* Make sure the text within the table is centered */
.wikitable td, .wikitable th {
     text-align: center !important;
}
}


Line 38: Line 31:
     margin: 0 !important;
     margin: 0 !important;
}
}
/* Apply to all table cells */
body .mw-body table th,
body .mw-body table td {
    border: 2px solid #2C4663 !important; /* Set border size and color for cells */
    text-align: center; /* Center-align text */
}
.mw-body a:link.new { color: #FF7081; } /* new links */
.mw-body a.new:visited { color:#485767; }

Latest revision as of 14:19, 17 November 2024

/* 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 */
}

/* 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: 2px solid #2C4663 !important; /* Set border size and color for cells */
    text-align: center; /* Center-align text */
}


.mw-body a:link.new { color: #FF7081; } /* new links */
.mw-body a.new:visited { color:#485767; }