Jump to content

MediaWiki:Common.css: Difference between revisions

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Admin (talk | contribs)
Add Wikipedia-style footer styling
Admin (talk | contribs)
Add compact layout and random article feature styling
Line 501: Line 501:
.mw-footer-container {
.mw-footer-container {
     padding: 1em 0;
     padding: 1em 0;
}/* Compact layout for main page boxes */
.mp-box {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1em;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.mp-box-content ul {
    margin: 0;
    padding: 0;
}
.mp-box li {
    padding: 0.25em 0;
    padding-left: 1.2em;
    position: relative;
    line-height: 1.4;
}
/* Random article feature box */
.mp-random-article {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1em;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin: 1em 0;
}
.mp-random-article-image {
    text-align: center;
    margin: 0.5em 0;
    background: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
}
.mp-random-article-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #051429;
    margin-bottom: 0.5em;
    text-align: center;
}
.mp-random-article-excerpt {
    font-size: 0.9em;
    line-height: 1.5;
    color: #4b5563;
}
/* Feature item clickable */
.mp-feature-item {
    text-align: center;
    padding: 1em;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.mp-feature-item:hover {
    transform: translateY(-3px);
}
.mp-feature-item a {
    text-decoration: none;
    color: inherit;
}
.mp-feature-item a:hover .mp-feature-icon {
    box-shadow: 0 6px 12px rgba(5, 20, 41, 0.35);
}
}

Revision as of 05:15, 19 October 2025

/* CEO.wiki - Wikipedia-like styling with subtle enhancements */

/* Keep templates functional but remove heavy styling */
.infobox {
    float: right;
    clear: right;
    width: 22em;
    margin: 0.5em 0 0.5em 1em;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 0.2em;
    font-size: 88%;
    line-height: 1.5em;
}

.infobox-image {
    text-align: center;
    padding: 0.2em;
}

.infobox-header {
    background-color: #eaecf0;
    text-align: center;
    padding: 0.4em;
}

.infobox-title {
    font-size: 125%;
    font-weight: bold;
}

.infobox-subtitle {
    font-size: 100%;
}

.infobox-section {
    border-top: 1px solid #a2a9b1;
    padding: 0.3em 0.5em;
}

.infobox-section-header {
    font-weight: bold;
    padding: 0.2em 0;
}

.infobox-row {
    margin: 0.2em 0;
}

.infobox-label {
    font-weight: bold;
}

.infobox-data {
    
}

/* Performance charts - Wikipedia table style */
.performance-chart {
    margin: 1em 0;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 0.5em;
}

.chart-header {
    text-align: center;
    padding: 0.5em;
    border-bottom: 1px solid #a2a9b1;
}

.chart-title {
    font-size: 120%;
    font-weight: bold;
}

.metrics-grid {
    display: table;
    width: 100%;
}

.metric-card {
    border: 1px solid #a2a9b1;
    margin: 0.3em;
    padding: 0.5em;
    background-color: #ffffff;
}

.metric-header {
    font-weight: bold;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 0.2em;
    margin-bottom: 0.3em;
}

.metric-comparison {
    display: flex;
    justify-content: space-between;
    padding: 0.3em 0;
}

.metric-label {
    font-size: 85%;
}

.metric-value {
    font-weight: bold;
}

.metric-change {
    text-align: center;
    padding: 0.3em;
    margin-top: 0.3em;
    border-top: 1px solid #a2a9b1;
}

.change-positive {
    color: #00af89;
}

.change-negative {
    color: #d33;
}

/* Tooltip - subtle */
.ceo-tooltip {
    border-bottom: 1px dotted #0645ad;
    cursor: help;
}

.ceo-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #202122;
    color: #fff;
    padding: 0.5em;
    border-radius: 3px;
    font-size: 12px;
    width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}

.ceo-tooltip:hover::after {
    opacity: 1;
}

/* ========================================
   MAIN PAGE ENHANCEMENTS - CORPORATE STYLE
   DEEP BLUE PROFESSIONAL THEME
   ======================================== */

/* Hero Banner - Deep Navy/Midnight Blue */
.mp-hero {
    background: linear-gradient(135deg, #051429 0%, #0a2540 50%, #1e3a5c 100%);
    color: white;
    padding: 2.5em 2em;
    margin-bottom: 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(5, 20, 41, 0.4);
    text-align: center;
    border: 1px solid #1a3050;
}

.mp-hero-title {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 0.3em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.mp-hero-subtitle {
    font-size: 1.2em;
    opacity: 0.92;
    font-weight: 300;
    color: #d1dce8;
}

/* Featured Boxes Grid */
.mp-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1em;
    margin: 1.5em 0;
}

.mp-box {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1.5em;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mp-box:hover {
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
    transform: translateY(-2px);
    border-color: #1e3a5c;
}

.mp-box-header {
    font-size: 1.4em;
    font-weight: 600;
    color: #051429;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
}

.mp-box-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.4em;
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5c 100%);
    color: white;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    font-style: normal;
    box-shadow: 0 2px 4px rgba(5, 20, 41, 0.3);
}

.mp-box-content {
    line-height: 1.6;
}

.mp-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mp-box li {
    padding: 0.4em 0;
    padding-left: 1.5em;
    position: relative;
}

.mp-box li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #1e3a5c;
    font-weight: bold;
}

/* Stats/Features Section */
.mp-features {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1.5em;
    margin: 1.5em 0;
}

.mp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
    margin-top: 1em;
}

.mp-feature-item {
    text-align: center;
    padding: 1em;
}

.mp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3em;
    height: 3em;
    margin: 0 auto 0.5em;
    background: linear-gradient(135deg, #051429 0%, #1e3a5c 100%);
    color: white;
    border-radius: 8px;
    font-size: 1.5em;
    font-weight: bold;
    font-style: normal;
    box-shadow: 0 4px 8px rgba(5, 20, 41, 0.25);
}

.mp-feature-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #051429;
    margin-bottom: 0.3em;
}

.mp-feature-text {
    font-size: 0.9em;
    color: #4b5563;
    line-height: 1.5;
}

/* Content Cards */
.mp-card {
    background: white;
    border: 1px solid #d0d7de;
    border-left: 4px solid #1e3a5c;
    border-radius: 4px;
    padding: 1.2em;
    margin: 1em 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mp-card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #051429;
    margin-bottom: 0.6em;
}

.mp-card-content {
    color: #374151;
    line-height: 1.7;
}

/* Two-column layout for larger screens */
.mp-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    margin: 1.5em 0;
}

@media (max-width: 768px) {
    .mp-columns {
        grid-template-columns: 1fr;
    }
}

/* Button/Link styling */
.mp-button {
    display: inline-block;
    padding: 0.6em 1.2em;
    background: linear-gradient(135deg, #0a2540 0%, #1e3a5c 100%);
    color: white !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(5, 20, 41, 0.3);
}

.mp-button:hover {
    background: linear-gradient(135deg, #051429 0%, #0a2540 100%);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(5, 20, 41, 0.4);
}

.mp-button-outline {
    background: white;
    color: #1e3a5c !important;
    border: 2px solid #1e3a5c;
}

.mp-button-outline:hover {
    background: #f0f4f8;
}

/* Section Headers */
.mp-section-header {
    font-size: 1.8em;
    font-weight: 600;
    color: #051429;
    margin: 1.5em 0 0.8em 0;
    padding-bottom: 0.4em;
    border-bottom: 3px solid #1e3a5c;
}

/* Wikipedia compatibility - ensure main page doesn't break existing styles */
.mw-parser-output .mp-hero,
.mw-parser-output .mp-box,
.mw-parser-output .mp-card {
    font-size: inherit;
}

/* ========================================
   LOGO FIXES FOR WIDE HORIZONTAL LOGO
   ======================================== */

/* Fix for wide horizontal logo - maintain aspect ratio */

/* Vector 2022 skin logo fixes */
.mw-logo-icon {
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
    max-height: 60px !important;
}

.mw-logo-container {
    width: auto !important;
    min-width: 160px;
}

/* Logo image itself */
.mw-logo-icon img,
.mw-wiki-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 200px !important;
    max-height: 60px !important;
    object-fit: contain !important;
}

/* Vector legacy skin compatibility */
#p-logo a,
#p-logo {
    width: auto !important;
    height: auto !important;
}

#p-logo a {
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-width: 160px;
    height: 60px;
}

/* Wordmark area adjustment for Vector 2022 */
.vector-header-start {
    flex-grow: 0;
}

.mw-logo {
    margin-right: 1em;
}

/* Make sure logo doesn't get cropped */
.mw-logo-container,
.mw-logo-icon {
    overflow: visible !important;
}/* Wikipedia-style footer */
#footer {
    background: #f8f9fa;
    border-top: 1px solid #a2a9b1;
    padding: 1.5em 0;
    margin-top: 2em;
}

#footer ul {
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer li {
    display: inline-block;
    padding: 0 0.5em;
    font-size: 0.85em;
    line-height: 2em;
}

#footer li:after {
    content: "·";
    padding-left: 0.8em;
    color: #a2a9b1;
}

#footer li:last-child:after {
    content: "";
}

#footer-info {
    text-align: center;
    padding: 0.5em 0;
}

.mw-footer {
    background: #f8f9fa;
    border-top: 1px solid #a2a9b1;
}

.mw-footer ul {
    padding: 0.5em 0;
}

.mw-footer li {
    color: #54595d;
    font-size: 0.85em;
}

/* Footer spacing */
.mw-footer-container {
    padding: 1em 0;
}/* Compact layout for main page boxes */
.mp-box {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1em;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mp-box-content ul {
    margin: 0;
    padding: 0;
}

.mp-box li {
    padding: 0.25em 0;
    padding-left: 1.2em;
    position: relative;
    line-height: 1.4;
}

/* Random article feature box */
.mp-random-article {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 1em;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin: 1em 0;
}

.mp-random-article-image {
    text-align: center;
    margin: 0.5em 0;
    background: #f8f9fa;
    padding: 1em;
    border-radius: 4px;
}

.mp-random-article-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #051429;
    margin-bottom: 0.5em;
    text-align: center;
}

.mp-random-article-excerpt {
    font-size: 0.9em;
    line-height: 1.5;
    color: #4b5563;
}

/* Feature item clickable */
.mp-feature-item {
    text-align: center;
    padding: 1em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mp-feature-item:hover {
    transform: translateY(-3px);
}

.mp-feature-item a {
    text-decoration: none;
    color: inherit;
}

.mp-feature-item a:hover .mp-feature-icon {
    box-shadow: 0 6px 12px rgba(5, 20, 41, 0.35);
}