Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 18: Line 18:


/* ==========================================================================
/* ==========================================================================
   EmbedVideo Production Config (Theme Agnostic & Bulletproof Rounding)
   EmbedVideo Clean Config - Fixed Rounding & Transparent Text
   ========================================================================== */
   ========================================================================== */


/* 1. Global Container Resets - Keeps text areas transparent to your wiki theme */
/* 1. Outer container stays transparent so text area matches your light theme */
.embedvideo {
.embedvideo {
     margin: 1.5em auto;
     margin: 1.5em auto;
Line 31: Line 31:
}
}


/* 2. YouTube Specific Styling (Cinematic 16:9 Player Card) */
/* 2. Apply the black backdrop AND the 8px rounding directly to the player elements */
/* Targets the iframe AND any inner div wrapper that contains it */
.embedvideo iframe,
.embedvideo[data-service="youtube"] iframe,
.embedvideo-container,
.embedvideo[data-service="youtube"] div:has(iframe) {
.embedvideo-responsive,
.embedvideo-player {
    background-color: #000000 !important;
     border-radius: 8px !important;
     border-radius: 8px !important;
     overflow: hidden !important;
     overflow: hidden !important;
    background-color: #000000 !important;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 0 !important;
    /* Forces the browser's rendering engine to strictly clip the video stream */
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}
 
/* 3. SoundCloud Specific Styling (Sleek Audio Strip) */
.embedvideo[data-service="soundcloud"] iframe,
.embedvideo[data-service="soundcloud"] div:has(iframe) {
    border: 1px solid #a2a9b1 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
}
}


/* Keep the SoundCloud iframe constrained to a clean widget height profile */
/* 3. Clean styling for your orange text below the video */
.embedvideo[data-service="soundcloud"] iframe {
    height: 166px !important;
    width: 100% !important;
    display: block;
}
 
/* 4. Universal Caption/Label Styling (High-Contrast Orange) */
.embedvideo .thumbcaption,
.embedvideo .thumbcaption,
.embedvideo-caption,
.embedvideo-caption,
.embedvideo + div {
.embedvideo + div {
     color: #e65c00 !important;  
     color: #e65c00 !important; /* Vivid orange */
     font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
     font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
     font-size: 0.95em !important;
     font-size: 0.95em !important;
Line 73: Line 52:
     text-align: center !important;
     text-align: center !important;
     padding-top: 10px !important;
     padding-top: 10px !important;
    background: transparent !important; /* Guarantees no background color bleed */
     display: block !important;
     display: block !important;
    background: transparent !important;
}
}


/* 5. Layout Alignment Engine */
/* 4. Alignment Engine */
.embedvideo.align-center {
.embedvideo.align-center {
     display: block;
     display: block;
Line 83: Line 62:
     margin-right: auto;
     margin-right: auto;
}
}
.embedvideo.align-left {
.embedvideo.align-left {
     float: left;
     float: left;
Line 89: Line 67:
     margin-bottom: 1em;
     margin-bottom: 1em;
}
}
.embedvideo.align-right {
.embedvideo.align-right {
     float: right;
     float: right;

Revision as of 07:51, 14 June 2026

/* CSS placed here will be applied to all skins */

/* Hide visual clutter for non-admin/casual readers */
#t-print, #t-permalink, #t-cite, #t-whatlinkshere, #t-recentchangeslinked {
    display: none !important;
}

/* Round off elements for a modern, software-as-a-service feel */
.mw-body {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Hide empty default navigation blocks or duplicate system columns */
#p-navigation, .mw-portlet-navigation:not([id*="REDESIGN"]):not([id*="TRACK"]) {
    display: none !important;
}

/* ==========================================================================
   EmbedVideo Clean Config - Fixed Rounding & Transparent Text
   ========================================================================== */

/* 1. Outer container stays transparent so text area matches your light theme */
.embedvideo {
    margin: 1.5em auto;
    max-width: 100%;
    clear: both;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Apply the black backdrop AND the 8px rounding directly to the player elements */
.embedvideo iframe,
.embedvideo-container,
.embedvideo-responsive,
.embedvideo-player {
    background-color: #000000 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 3. Clean styling for your orange text below the video */
.embedvideo .thumbcaption,
.embedvideo-caption,
.embedvideo + div {
    color: #e65c00 !important; /* Vivid orange */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding-top: 10px !important;
    background: transparent !important; /* Guarantees no background color bleed */
    display: block !important;
}

/* 4. Alignment Engine */
.embedvideo.align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.embedvideo.align-left {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}
.embedvideo.align-right {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

/* Failsafe to prevent text layout clipping after floated elements */
.mw-parser-output::after {
    content: "";
    display: table;
    clear: both;
}