Jump to content

CEO.wiki:Infobox.css: Difference between revisions

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Create modern CSS for infoboxes with gradients, shadows, and animations
 
Create Infobox CSS styles
 
Line 1: Line 1:
/* CEO.wiki Enhanced Infobox Styles */
/* Infobox styling for CEO.wiki */
/* Modern design with gradients, shadows, and animations */
 
.infobox {
.infobox {
    float: right;
border: 1px solid #a2a9b1;
    clear: right;
border-spacing: 3px;
    width: 350px;
background-color: #f8f9fa;
    margin: 0 0 1.5em 1.5em;
color: black;
    border-radius: 12px;
margin: 0.5em 0 0.5em 1em;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
padding: 0.2em;
    box-shadow:  
float: right;
        0 10px 30px rgba(0, 0, 0, 0.1),
clear: right;
        0 1px 3px rgba(0, 0, 0, 0.06);
font-size: 88%;
    overflow: hidden;
line-height: 1.5em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
width: 22em;
    animation: fadeInSlide 0.6s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
}


.infobox:hover {
.infobox-ceo {
    transform: translateY(-2px);
background-color: #f8f9fa;
    box-shadow:  
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 2px 5px rgba(0, 0, 0, 0.08);
}
}


@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Image Section */
.infobox-image {
.infobox-image {
    position: relative;
text-align: center;
    width: 100%;
padding: 0.5em 0;
    background: linear-gradient(180deg, #f0f0f0 0%, #e8e8e8 100%);
    text-align: center;
    overflow: hidden;
}
}


.infobox-image img {
.infobox-image img {
    width: 100%;
max-width: 100%;
    height: auto;
height: auto;
    display: block;
    transition: transform 0.4s ease;
}
 
.infobox-image:hover img {
    transform: scale(1.05);
}
}


.infobox-caption {
.infobox-caption {
    padding: 10px 15px;
font-size: 90%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.6) 100%);
padding: 0.3em 0;
    color: #ffffff;
text-align: center;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
}


/* Header */
.infobox-header {
.infobox-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
text-align: center;
    color: #ffffff;
padding: 0.5em;
    padding: 20px 20px 15px;
background-color: #d0e0f0;
    text-align: center;
font-weight: bold;
    position: relative;
    overflow: hidden;
}
 
.infobox-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}
 
@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}
}


.infobox-title {
.infobox-title {
    font-size: 24px;
font-size: 125%;
    font-weight: 700;
font-weight: bold;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
}


.infobox-subtitle {
.infobox-subtitle {
    font-size: 14px;
font-size: 90%;
    margin-top: 5px;
font-weight: normal;
    opacity: 0.9;
padding-top: 0.3em;
    position: relative;
    z-index: 1;
}
}


/* Sections */
.infobox-section {
.infobox-section {
    padding: 15px 20px;
border-top: 1px solid #a2a9b1;
    border-bottom: 1px solid #e5e7eb;
padding: 0.5em;
    transition: background-color 0.3s ease;
}
 
.infobox-section:last-child {
    border-bottom: none;
}
 
.infobox-section:hover {
    background-color: rgba(59, 130, 246, 0.02);
}
}


.infobox-section-header {
.infobox-section-header {
    font-size: 15px;
font-size: 100%;
    font-weight: 700;
font-weight: bold;
    color: #1e3a8a;
margin: 0.5em 0 0.3em 0;
    margin: 0 0 12px 0;
padding: 0;
    padding-bottom: 8px;
border: none;
    border-bottom: 2px solid #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    padding-left: 10px;
    margin-left: -10px;
    margin-right: -10px;
    padding-right: 10px;
}
 
/* Highlighted Section */
.infobox-highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    box-shadow: inset 0 2px 4px rgba(59, 130, 246, 0.1);
}
}


.infobox-highlight .infobox-label {
    color: #1e3a8a;
    font-weight: 700;
}
.infobox-highlight .infobox-data {
    color: #1e40af;
    font-weight: 600;
    font-size: 16px;
}
/* Rows */
.infobox-row {
.infobox-row {
    margin-bottom: 12px;
padding: 0.2em 0;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out;
}
 
.infobox-row:last-child {
    margin-bottom: 0;
}
 
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
}


.infobox-label {
.infobox-label {
    font-size: 12px;
font-weight: bold;
    font-weight: 600;
vertical-align: top;
    color: #6b7280;
padding-right: 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
}


.infobox-data {
.infobox-data {
    font-size: 14px;
vertical-align: top;
    color: #1f2937;
    line-height: 1.6;
}
}


.infobox-data a {
.infobox-highlight {
    color: #3b82f6;
background-color: #e8f4f8;
    text-decoration: none;
font-weight: bold;
    transition: color 0.2s ease;
    border-bottom: 1px dotted #3b82f6;
}
 
.infobox-data a:hover {
    color: #1e40af;
    border-bottom-color: #1e40af;
}
 
/* CEO Specific Styles */
.infobox-ceo .infobox-header {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}
 
.infobox-ceo .infobox-section-header {
    color: #065f46;
    border-bottom-color: #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
}
 
.infobox-ceo .infobox-highlight {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #10b981;
}
 
/* Company Specific Styles */
.infobox-company .infobox-header {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%);
}
 
.infobox-company .infobox-section-header {
    color: #7c2d12;
    border-bottom-color: #ea580c;
    background: linear-gradient(90deg, rgba(234, 88, 12, 0.1) 0%, transparent 100%);
}
 
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .infobox {
        float: none;
        width: 100%;
        margin: 0 0 1.5em 0;
    }
}
}


/* Print Styles */
/* Mobile responsiveness */
@media print {
@media screen and (max-width: 640px) {
    .infobox {
.infobox {
        box-shadow: none;
width: 100%;
        border: 1px solid #e5e7eb;
margin: 0.5em 0;
        page-break-inside: avoid;
float: none;
    }
}
   
    .infobox-header {
        background: #1e3a8a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
}

Latest revision as of 08:03, 27 October 2025

/* Infobox styling for CEO.wiki */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	float: right;
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
	width: 22em;
}

.infobox-ceo {
	background-color: #f8f9fa;
}

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

.infobox-image img {
	max-width: 100%;
	height: auto;
}

.infobox-caption {
	font-size: 90%;
	padding: 0.3em 0;
	text-align: center;
}

.infobox-header {
	text-align: center;
	padding: 0.5em;
	background-color: #d0e0f0;
	font-weight: bold;
}

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

.infobox-subtitle {
	font-size: 90%;
	font-weight: normal;
	padding-top: 0.3em;
}

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

.infobox-section-header {
	font-size: 100%;
	font-weight: bold;
	margin: 0.5em 0 0.3em 0;
	padding: 0;
	border: none;
}

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

.infobox-label {
	font-weight: bold;
	vertical-align: top;
	padding-right: 0.5em;
}

.infobox-data {
	vertical-align: top;
}

.infobox-highlight {
	background-color: #e8f4f8;
	font-weight: bold;
}

/* Mobile responsiveness */
@media screen and (max-width: 640px) {
	.infobox {
		width: 100%;
		margin: 0.5em 0;
		float: none;
	}
}