Jump to content

MediaWiki:Common.css

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Revision as of 04:46, 19 October 2025 by Admin (talk | contribs) (Add corporate styling enhancements for main page)

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.
/* 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
   ======================================== */

/* Hero Banner */
.mp-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2.5em 2em;
    margin-bottom: 1.5em;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mp-hero-title {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 0.3em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mp-hero-subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
}

/* 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(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #3b82f6;
}

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

.mp-box-icon {
    font-size: 1.5em;
    margin-right: 0.4em;
    color: #3b82f6;
}

.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: #3b82f6;
    font-weight: bold;
}

/* Stats/Features Section */
.mp-features {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    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 {
    font-size: 2.5em;
    color: #3b82f6;
    margin-bottom: 0.3em;
}

.mp-feature-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #1e3a8a;
    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 #3b82f6;
    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: #1e3a8a;
    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: #3b82f6;
    color: white !important;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.mp-button:hover {
    background: #2563eb;
    text-decoration: none;
}

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

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

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

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