Jump to content

MediaWiki:Common.css: Difference between revisions

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Added shadow styling to all infoboxes for better visual hierarchy
Centered all elements on Special:CreateAccount page and added statistics banner
Line 68: Line 68:


/* Center the entire create account form */
/* Center the entire create account form */
.mw-special-CreateAccount #userloginForm,
.mw-special-Userlogin #userloginForm {
.mw-special-Userlogin #userloginForm {
     max-width: 500px;
     max-width: 500px;
Line 76: Line 75:


/* Center all form rows */
/* 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;
     text-align: center;
     margin: 0 auto;
     margin: 0 auto;
Line 86: Line 80:


/* Center labels */
/* Center labels */
.mw-special-CreateAccount .mw-label,
.mw-special-CreateAccount label {
     display: block;
     display: block;
     text-align: center;
     text-align: center;
Line 95: Line 87:


/* Center input fields */
/* Center input fields */
.mw-special-CreateAccount input[type="text"],
.mw-special-CreateAccount input[type="password"],
.mw-special-CreateAccount input[type="email"] {
     display: block;
     display: block;
     margin: 5px auto 15px auto;
     margin: 5px auto 15px auto;
Line 109: Line 98:


/* Center help text */
/* Center help text */
.mw-special-CreateAccount .mw-htmlform-help,
.mw-special-CreateAccount .mw-htmlform-field-HTMLInfoField .mw-htmlform-field-data {
     text-align: center;
     text-align: center;
     margin: 5px auto 15px auto;
     margin: 5px auto 15px auto;
Line 119: Line 106:


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


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


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


.mw-special-CreateAccount .captcha-question {
     font-weight: 600;
     font-weight: 600;
     margin-bottom: 10px;
     margin-bottom: 10px;
Line 141: Line 123:


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


.mw-special-CreateAccount button[type="submit"],
.mw-special-CreateAccount input[type="submit"] {
     padding: 12px 40px;
     padding: 12px 40px;
     font-size: 16px;
     font-size: 16px;
Line 159: Line 138:
}
}


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


/* Statistics box at top */
/* Statistics box at top */
.createaccount-statistics {
     background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6b 100%);
     background: linear-gradient(135deg, #2c5aa0 0%, #1e3a6b 100%);
     color: white;
     color: white;
Line 175: Line 152:
}
}


.createaccount-statistics-title {
     font-size: 1.4em;
     font-size: 1.4em;
     font-weight: 600;
     font-weight: 600;
Line 181: Line 157:
}
}


.createaccount-statistics-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     grid-template-columns: repeat(3, 1fr);
Line 188: Line 163:
}
}


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


.createaccount-stat-number {
     font-size: 2.5em;
     font-size: 2.5em;
     font-weight: 700;
     font-weight: 700;
Line 199: Line 172:
}
}


.createaccount-stat-label {
     font-size: 0.9em;
     font-size: 0.9em;
     opacity: 0.9;
     opacity: 0.9;
Line 207: Line 179:


/* Center page title */
/* Center page title */
.mw-special-CreateAccount .firstHeading {
     text-align: center;
     text-align: center;
}
}
Line 213: Line 184:
/* Responsive design */
/* Responsive design */
@media (max-width: 600px) {
@media (max-width: 600px) {
    .createaccount-statistics-grid {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
         gap: 15px;
         gap: 15px;
     }
     }


    .mw-special-CreateAccount input[type="text"],
    .mw-special-CreateAccount input[type="password"],
    .mw-special-CreateAccount input[type="email"] {
         max-width: 100%;
         max-width: 100%;
     }
     }
Line 235: Line 202:
     border-radius: 6px;
     border-radius: 6px;
     overflow: hidden;
     overflow: hidden;
}
/* ============================================================================
  SPECIAL:CREATEACCOUNT - CENTERED LAYOUT
  ============================================================================ */
/* Center the entire create account form */
.mw-special-CreateAccount #bodyContent {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
/* Center the page title */
.mw-special-CreateAccount .firstHeading {
    text-align: center;
}
/* Center all form elements */
.mw-special-CreateAccount .mw-htmlform-field-HTMLFormFieldWithButton,
.mw-special-CreateAccount .mw-htmlform-field-HTMLTextField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLEmailField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLCheckField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLInfoField {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Center labels */
.mw-special-CreateAccount label {
    display: block;
    text-align: center;
    margin: 15px auto 5px;
    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: 0 auto;
    text-align: center;
    max-width: 400px;
    width: 100%;
}
/* Center help text */
.mw-special-CreateAccount .htmlform-tip,
.mw-special-CreateAccount .mw-htmlform-help-message {
    text-align: center;
    margin: 5px auto 15px;
    display: block;
}
/* Center checkboxes */
.mw-special-CreateAccount .mw-htmlform-field-HTMLCheckField label {
    display: inline-block;
}
/* Center submit button */
.mw-special-CreateAccount .mw-htmlform-submit-buttons {
    text-align: center;
    margin-top: 20px;
}
.mw-special-CreateAccount button[type="submit"] {
    margin: 0 auto;
}
/* Statistics Banner at Top */
.createaccount-statistics-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px 20px;
    margin: -20px -20px 30px -20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}
.createaccount-statistics-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.95;
}
.createaccount-statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}
.createaccount-stat-item {
    text-align: center;
}
.createaccount-stat-number {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: #fff;
}
.createaccount-stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* 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%;
    }
}
}

Revision as of 17:38, 20 October 2025

/* ============================================
   ARTICLE TEXT JUSTIFICATION - CEO PAGES ONLY
   Justify text only in CEO biography articles (pages with infoboxes)
   Excludes Main Page, Special pages, and Project pages
   ============================================ */

/* Apply justification only to main namespace articles (not Main Page) */
body.ns-0:not(.page-Main_Page) .mw-parser-output p {
    text-align: justify;
    text-justify: inter-word;
}

body.ns-0:not(.page-Main_Page) .mw-parser-output li {
    text-align: justify;
    text-justify: inter-word;
}

/* Explicitly keep Main Page left-aligned */
body.page-Main_Page .mw-parser-output * {
    text-align: left !important;
}

/* Keep special pages left-aligned */
body.ns-special .mw-parser-output p,
body.ns-special .mw-parser-output li {
    text-align: left !important;
}

/* Keep project namespace (CEO.wiki:) pages left-aligned */
body.ns-4 .mw-parser-output p,
body.ns-4 .mw-parser-output li {
    text-align: left !important;
}

/* Keep headings left-aligned everywhere */
.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 !important;
}

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

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

/* Keep tables left-aligned */
.wikitable,
.wikitable * {
    text-align: left !important;
}


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

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

/* Center all form rows */
    text-align: center;
    margin: 0 auto;
}

/* Center labels */
    display: block;
    text-align: center;
    margin: 10px auto 5px auto;
    font-weight: 600;
}

/* Center input fields */
    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 */
    text-align: center;
    margin: 5px auto 15px auto;
    font-size: 0.9em;
    color: #54595d;
    max-width: 400px;
}

/* Center checkboxes */
    text-align: center;
}

    margin-right: 5px;
}

/* Center CAPTCHA */
    text-align: center;
    margin: 20px auto;
}

    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

/* Center submit button */
    text-align: center;
    margin: 25px auto;
}

    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;
}

    background-color: #1e3a6b;
}

/* Statistics box at top */
    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);
}

    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 20px;
}

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

    text-align: center;
}

    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

    font-size: 0.9em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Center page title */
    text-align: center;
}

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

        max-width: 100%;
    }
/* Infobox Shadow Styling */
.infobox {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

/* Enhanced Infobox Executive Styling */
.infobox.executive,
table.infobox {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

/* ============================================================================
   SPECIAL:CREATEACCOUNT - CENTERED LAYOUT
   ============================================================================ */

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

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

/* Center all form elements */
.mw-special-CreateAccount .mw-htmlform-field-HTMLFormFieldWithButton,
.mw-special-CreateAccount .mw-htmlform-field-HTMLTextField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLEmailField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLCheckField,
.mw-special-CreateAccount .mw-htmlform-field-HTMLInfoField {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center labels */
.mw-special-CreateAccount label {
    display: block;
    text-align: center;
    margin: 15px auto 5px;
    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: 0 auto;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

/* Center help text */
.mw-special-CreateAccount .htmlform-tip,
.mw-special-CreateAccount .mw-htmlform-help-message {
    text-align: center;
    margin: 5px auto 15px;
    display: block;
}

/* Center checkboxes */
.mw-special-CreateAccount .mw-htmlform-field-HTMLCheckField label {
    display: inline-block;
}

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

.mw-special-CreateAccount button[type="submit"] {
    margin: 0 auto;
}

/* Statistics Banner at Top */
.createaccount-statistics-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px 20px;
    margin: -20px -20px 30px -20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.createaccount-statistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

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

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

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

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