Jump to content

MediaWiki:Common.css

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Revision as of 08:58, 20 October 2025 by Maintenance script (talk | contribs) (Added text justification for all article content - paragraphs, lists, and table cells now use justified alignment)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ============================================
   ARTICLE TEXT JUSTIFICATION
   Justify all body text in articles
   ============================================ */

/* Justify all paragraph text in articles */
.mw-parser-output p {
    text-align: justify;
    text-justify: inter-word;
}

/* Justify list items */
.mw-parser-output li {
    text-align: justify;
    text-justify: inter-word;
}

/* Justify table cells */
.mw-parser-output td,
.mw-parser-output th {
    text-align: justify;
    text-justify: inter-word;
}

/* Keep headings left-aligned */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output h5,
.mw-parser-output h6 {
    text-align: left;
}

/* Keep infobox content left-aligned for better readability */
.infobox,
.infobox * {
    text-align: left !important;
}

/* Keep navigation elements left-aligned */
.mw-navigation,
.mw-navigation * {
    text-align: left !important;
}


/* ============================================
   ACCOUNT CREATION PAGE STYLING
   Center all form elements
   ============================================ */

/* Center the entire create account form */
.mw-special-CreateAccount #userloginForm,
.mw-special-Userlogin #userloginForm {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

/* Center all form rows */
.mw-special-CreateAccount .mw-htmlform-field-HTMLTextField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLPasswordField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLEmailField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLCheckField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLInfoField {
    text-align: center;
    margin: 0 auto;
}

/* Center labels */
.mw-special-CreateAccount .mw-label,
.mw-special-CreateAccount label {
    display: block;
    text-align: center;
    margin: 10px auto 5px auto;
    font-weight: 600;
}

/* Center input fields */
.mw-special-CreateAccount input[type="text"],
.mw-special-CreateAccount input[type="password"],
.mw-special-CreateAccount input[type="email"] {
    display: block;
    margin: 5px auto 15px auto;
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    font-size: 14px;
}

/* Center help text */
.mw-special-CreateAccount .mw-htmlform-help,
.mw-special-CreateAccount .mw-htmlform-field-HTMLInfoField .mw-htmlform-field-data {
    text-align: center;
    margin: 5px auto 15px auto;
    font-size: 0.9em;
    color: #54595d;
    max-width: 400px;
}

/* Center checkboxes */
.mw-special-CreateAccount .mw-htmlform-field-HTMLCheckField {
    text-align: center;
}

.mw-special-CreateAccount .mw-htmlform-field-HTMLCheckField input[type="checkbox"] {
    margin-right: 5px;
}

/* Center CAPTCHA */
.mw-special-CreateAccount .mw-htmlform-field-HTMLCaptchaField,
.mw-special-CreateAccount .captcha {
    text-align: center;
    margin: 20px auto;
}

.mw-special-CreateAccount .captcha-question {
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

/* Center submit button */
.mw-special-CreateAccount .mw-htmlform-submit-buttons {
    text-align: center;
    margin: 25px auto;
}

.mw-special-CreateAccount button[type="submit"],
.mw-special-CreateAccount input[type="submit"] {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    background-color: #2c5aa0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mw-special-CreateAccount button[type="submit"]:hover {
    background-color: #1e3a6b;
}

/* Statistics box at top */
.createaccount-statistics {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6b 100%);
    color: white;
    padding: 30px 20px;
    margin: 0 auto 30px auto;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.createaccount-statistics-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 20px;
}

.createaccount-statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.createaccount-stat-item {
    text-align: center;
}

.createaccount-stat-number {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.createaccount-stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Center page title */
.mw-special-CreateAccount .firstHeading {
    text-align: center;
}

/* Responsive design */
@media (max-width: 600px) {
    .createaccount-statistics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mw-special-CreateAccount input[type="text"],
    .mw-special-CreateAccount input[type="password"],
    .mw-special-CreateAccount input[type="email"] {
        max-width: 100%;
    }
}