Difference between revisions of "MediaWiki:Common:css"

(Created page with "→‎Target the specific image and ensure it retains its original dimensions: .mw-parser-output img[src*="Top_teal_bar03.png"] { width: auto !important; max-width: non...")
 
Line 1: Line 1:
 
/* Target the specific image and ensure it retains its original dimensions */
 
/* Target the specific image and ensure it retains its original dimensions */
.mw-parser-output img[src*="Top_teal_bar03.png"] {
+
<!--.mw-parser-output img[src*="Top_teal_bar03.png"] {
 
     width: auto !important;
 
     width: auto !important;
 
     max-width: none !important;
 
     max-width: none !important;
 
     height: auto !important;
 
     height: auto !important;
 +
}
 +
-->
 +
/* Ensure specific image retains its original dimensions */
 +
body.advanced-toc .container #content .mw-parser-output img[src*="Top_teal_bar03.png"] {
 +
    width: 1082px !important;
 +
    height: 246px !important;
 +
    max-width: none !important;
 +
    max-height: none !important;
 +
    box-sizing: content-box !important;
 +
    vertical-align: initial !important;
 +
    display: block !important; /* Optional: To ensure it takes full width without affecting inline elements */
 
}
 
}

Revision as of 04:33, 29 May 2024

/* Target the specific image and ensure it retains its original dimensions */ /* Ensure specific image retains its original dimensions */ body.advanced-toc .container #content .mw-parser-output img[src*="Top_teal_bar03.png"] {

   width: 1082px !important;
   height: 246px !important;
   max-width: none !important;
   max-height: none !important;
   box-sizing: content-box !important;
   vertical-align: initial !important;
   display: block !important; /* Optional: To ensure it takes full width without affecting inline elements */

}