Jump to content

CEO.wiki:Infobox.css

The comprehensive free global encyclopedia of CEOs, corporate leadership, and business excellence
Revision as of 03:38, 19 October 2025 by SuperAdmin1 (talk | contribs) (Create modern CSS for infoboxes with gradients, shadows, and animations)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

/* CEO.wiki Enhanced Infobox Styles */ /* Modern design with gradients, shadows, and animations */

.infobox {

   float: right;
   clear: right;
   width: 350px;
   margin: 0 0 1.5em 1.5em;
   border-radius: 12px;
   background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
   box-shadow: 
       0 10px 30px rgba(0, 0, 0, 0.1),
       0 1px 3px rgba(0, 0, 0, 0.06);
   overflow: hidden;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   animation: fadeInSlide 0.6s ease-out;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

}

.infobox:hover {

   transform: translateY(-2px);
   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 {

   position: relative;
   width: 100%;
   background: linear-gradient(180deg, #f0f0f0 0%, #e8e8e8 100%);
   text-align: center;
   overflow: hidden;

}

.infobox-image img {

   width: 100%;
   height: auto;
   display: block;
   transition: transform 0.4s ease;

}

.infobox-image:hover img {

   transform: scale(1.05);

}

.infobox-caption {

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

}

/* Header */ .infobox-header {

   background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
   color: #ffffff;
   padding: 20px 20px 15px;
   text-align: center;
   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 {

   font-size: 24px;
   font-weight: 700;
   margin: 0;
   position: relative;
   z-index: 1;
   text-shadow: 0 2px 4px rgba(0,0,0,0.2);

}

.infobox-subtitle {

   font-size: 14px;
   margin-top: 5px;
   opacity: 0.9;
   position: relative;
   z-index: 1;

}

/* Sections */ .infobox-section {

   padding: 15px 20px;
   border-bottom: 1px solid #e5e7eb;
   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 {

   font-size: 15px;
   font-weight: 700;
   color: #1e3a8a;
   margin: 0 0 12px 0;
   padding-bottom: 8px;
   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 {

   margin-bottom: 12px;
   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 {

   font-size: 12px;
   font-weight: 600;
   color: #6b7280;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-bottom: 4px;

}

.infobox-data {

   font-size: 14px;
   color: #1f2937;
   line-height: 1.6;

}

.infobox-data a {

   color: #3b82f6;
   text-decoration: none;
   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 */ @media print {

   .infobox {
       box-shadow: none;
       border: 1px solid #e5e7eb;
       page-break-inside: avoid;
   }
   
   .infobox-header {
       background: #1e3a8a !important;
       -webkit-print-color-adjust: exact;
       print-color-adjust: exact;
   }

}