MediaWiki:Common.css
Appearance
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 Global Site Styles
* Modern, professional design with enhanced readability
*/
/* ===== Typography & Text Improvements ===== */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
line-height: 1.7;
color: #1f2937;
}
/* Justify text in article content for better readability */
.mw-parser-output > p,
.mw-parser-output > div > p {
text-align: justify;
text-justify: inter-word;
hyphens: auto;
}
/* Better heading styles */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.3;
margin-top: 1.5em;
margin-bottom: 0.5em;
color: #1e3a8a;
}
h1 {
font-size: 2.5em;
border-bottom: 3px solid;
border-image: linear-gradient(90deg, #3b82f6 0%, transparent 100%) 1;
padding-bottom: 0.3em;
}
h2 {
font-size: 2em;
border-bottom: 2px solid #e5e7eb;
padding-bottom: 0.3em;
}
h3 {
font-size: 1.6em;
}
/* ===== Beginner-Friendly Tooltips ===== */
.ceo-tooltip {
position: relative;
display: inline;
border-bottom: 1px dotted #3b82f6;
cursor: help;
color: #3b82f6;
font-weight: 500;
}
.ceo-tooltip::after {
content: attr(data-tooltip);
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 {
content: '';
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,
.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 {
font-size: 20px;
font-weight: 700;
color: #1e3a8a;
margin: 0 0 15px 0;
padding-bottom: 10px;
border-bottom: 2px solid #e5e7eb;
}
/* ===== Highlight Boxes ===== */
.highlight-box {
padding: 20px;
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 {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
border-left: 4px solid #3b82f6;
color: #1e40af;
}
.highlight-box.success {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
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%;
}
table.wikitable th {
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
color: #ffffff;
padding: 15px;
text-align: left;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 13px;
}
table.wikitable td {
padding: 15px;
border-bottom: 1px solid #e5e7eb;
background: #ffffff;
transition: background-color 0.2s ease;
}
table.wikitable tr:hover td {
background-color: #f9fafb;
}
table.wikitable tr:last-child td {
border-bottom: none;
}
/* ===== Images Enhancement ===== */
.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 {
transform: scale(1.02);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.thumbinner {
border-radius: 12px;
background: #f9fafb;
padding: 8px;
border: 1px solid #e5e7eb;
}
.thumbcaption {
font-size: 13px;
color: #6b7280;
line-height: 1.5;
margin-top: 8px;
}
/* ===== Categories Enhancement ===== */
#catlinks {
background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
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 ===== */
.references {
font-size: 13px;
line-height: 1.6;
}
.references li {
margin-bottom: 10px;
}
/* ===== Animation Keyframes ===== */
@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;
}
}