Jump to content

MediaWiki:Common.css: Difference between revisions

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Add comprehensive global styles for modern design, tooltips, and text formatting
 
Revert to Wikipedia-like styling
Line 1: Line 1:
/**
/* CEO.wiki - Wikipedia-like styling with subtle enhancements */
* CEO.wiki Global Site Styles
* Modern, professional design with enhanced readability
*/


/* ===== Typography & Text Improvements ===== */
/* Keep templates functional but remove heavy styling */
 
.infobox {
body {
    float: right;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    clear: right;
     line-height: 1.7;
    width: 22em;
    color: #1f2937;
    margin: 0.5em 0 0.5em 1em;
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 0.2em;
     font-size: 88%;
     line-height: 1.5em;
}
}


/* Justify text in article content for better readability */
.infobox-image {
.mw-parser-output > p,
     text-align: center;
.mw-parser-output > div > p {
     padding: 0.2em;
     text-align: justify;
     text-justify: inter-word;
    hyphens: auto;
}
}


/* Better heading styles */
.infobox-header {
h1, h2, h3, h4, h5, h6 {
     background-color: #eaecf0;
     font-weight: 700;
     text-align: center;
     line-height: 1.3;
     padding: 0.4em;
     margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1e3a8a;
}
}


h1 {
.infobox-title {
     font-size: 2.5em;
     font-size: 125%;
    border-bottom: 3px solid;
     font-weight: bold;
    border-image: linear-gradient(90deg, #3b82f6 0%, transparent 100%) 1;
     padding-bottom: 0.3em;
}
}


h2 {
.infobox-subtitle {
     font-size: 2em;
     font-size: 100%;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.3em;
}
}


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


/* ===== Beginner-Friendly Tooltips ===== */
.infobox-section-header {
 
     font-weight: bold;
.ceo-tooltip {
     padding: 0.2em 0;
     position: relative;
    display: inline;
    border-bottom: 1px dotted #3b82f6;
     cursor: help;
    color: #3b82f6;
    font-weight: 500;
}
}


.ceo-tooltip::after {
.infobox-row {
     content: attr(data-tooltip);
     margin: 0.2em 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    width: 250px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-weight: 400;
}
}


.ceo-tooltip::before {
.infobox-label {
     content: '';
     font-weight: bold;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1e3a8a;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1001;
}
}


.ceo-tooltip:hover::after,
.infobox-data {
.ceo-tooltip:hover::before {
      
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}
 
/* ===== Enhanced Links ===== */
 
a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 1px solid transparent;
}
 
a:hover {
    color: #1e40af;
    border-bottom-color: #1e40af;
}
 
a:visited {
    color: #7c3aed;
}
 
/* New page links */
a.new {
    color: #dc2626;
}
 
a.new:hover {
    color: #991b1b;
}
 
/* ===== Content Sections with Visual Enhancement ===== */
 
.ceo-section {
     margin: 30px 0;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 12px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03);
    border-left: 4px solid #3b82f6;
    animation: fadeIn 0.6s ease-out;
}
}


.ceo-section-header {
/* Performance charts - Wikipedia table style */
     font-size: 20px;
.performance-chart {
     font-weight: 700;
     margin: 1em 0;
     color: #1e3a8a;
     border: 1px solid #a2a9b1;
     margin: 0 0 15px 0;
     background-color: #f8f9fa;
    padding-bottom: 10px;
     padding: 0.5em;
    border-bottom: 2px solid #e5e7eb;
}
}


/* ===== Highlight Boxes ===== */
.chart-header {
 
     text-align: center;
.highlight-box {
     padding: 0.5em;
     padding: 20px;
     border-bottom: 1px solid #a2a9b1;
    border-radius: 10px;
     margin: 20px 0;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.5s ease-out;
}
}


.highlight-box.info {
.chart-title {
     background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
     font-size: 120%;
     border-left: 4px solid #3b82f6;
     font-weight: bold;
    color: #1e40af;
}
}


.highlight-box.success {
.metrics-grid {
     background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
     display: table;
    border-left: 4px solid #10b981;
    color: #065f46;
}
 
.highlight-box.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}
 
.highlight-box.important {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}
 
/* ===== Lists Enhancement ===== */
 
ul, ol {
    line-height: 1.8;
    margin: 15px 0;
}
 
li {
    margin-bottom: 8px;
}
 
ul li::marker {
    color: #3b82f6;
}
 
/* ===== Blockquotes ===== */
 
blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-left: 5px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
 
blockquote::before {
    content: '"';
    font-size: 48px;
    color: #3b82f6;
    opacity: 0.3;
    line-height: 0;
    margin-right: 10px;
}
 
/* ===== Tables Enhancement ===== */
 
table.wikitable {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
     width: 100%;
     width: 100%;
}
}


table.wikitable th {
.metric-card {
     background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
     border: 1px solid #a2a9b1;
     color: #ffffff;
     margin: 0.3em;
     padding: 15px;
     padding: 0.5em;
    text-align: left;
     background-color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
     font-size: 13px;
}
}


table.wikitable td {
.metric-header {
     padding: 15px;
     font-weight: bold;
     border-bottom: 1px solid #e5e7eb;
     border-bottom: 1px solid #a2a9b1;
     background: #ffffff;
     padding-bottom: 0.2em;
     transition: background-color 0.2s ease;
     margin-bottom: 0.3em;
}
}


table.wikitable tr:hover td {
.metric-comparison {
     background-color: #f9fafb;
    display: flex;
     justify-content: space-between;
    padding: 0.3em 0;
}
}


table.wikitable tr:last-child td {
.metric-label {
     border-bottom: none;
     font-size: 85%;
}
}


/* ===== Images Enhancement ===== */
.metric-value {
 
     font-weight: bold;
.mw-parser-output img {
     border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
}


.mw-parser-output img:hover {
.metric-change {
     transform: scale(1.02);
    text-align: center;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
     padding: 0.3em;
     margin-top: 0.3em;
    border-top: 1px solid #a2a9b1;
}
}


.thumbinner {
.change-positive {
     border-radius: 12px;
     color: #00af89;
    background: #f9fafb;
    padding: 8px;
    border: 1px solid #e5e7eb;
}
}


.thumbcaption {
.change-negative {
    font-size: 13px;
     color: #d33;
     color: #6b7280;
    line-height: 1.5;
    margin-top: 8px;
}
}


/* ===== Categories Enhancement ===== */
/* Tooltip - subtle */
 
.ceo-tooltip {
#catlinks {
     border-bottom: 1px dotted #0645ad;
     background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
     cursor: help;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
     padding: 15px 20px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
}


/* ===== References Section ===== */
.ceo-tooltip::after {
 
    content: attr(data-tooltip);
.references {
    position: absolute;
     font-size: 13px;
    bottom: 100%;
     line-height: 1.6;
    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;
}
}


.references li {
.ceo-tooltip:hover::after {
     margin-bottom: 10px;
     opacity: 1;
}
}


/* ===== Animation Keyframes ===== */
/* Remove all other custom styling */
 
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
 
/* ===== Smooth Scrolling ===== */
 
html {
    scroll-behavior: smooth;
}
 
/* ===== Buttons & CTAs ===== */
 
.ceo-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border: none;
}
 
.ceo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    color: #ffffff;
    border-bottom: none;
}
 
/* ===== Mobile Responsiveness ===== */
 
@media (max-width: 768px) {
    .mw-parser-output > p {
        text-align: left;
    }
   
    h1 {
        font-size: 2em;
    }
   
    h2 {
        font-size: 1.6em;
    }
   
    .ceo-tooltip::after {
        width: 200px;
        font-size: 12px;
    }
}
 
/* ===== Print Styles ===== */
 
@media print {
    .ceo-section,
    .highlight-box,
    table.wikitable {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
   
    .ceo-tooltip {
        border-bottom: none;
    }
   
    .ceo-tooltip::after,
    .ceo-tooltip::before {
        display: none;
    }
}

Revision as of 03:49, 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;
}

/* Remove all other custom styling */