MediaWiki:Mobile.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 5: Line 5:
}
}


/* Make extension iframes mobile-friendly */
/* MediaWiki:Common.css */
iframe {
@media (max-width: 767px) {
  width: 100% !important;
   .iframe-desktop { display: none; }
  max-width: 100%;
   .iframe-mobile { display: block; }
   height: auto;
   border: none;
}
}
 
@media (min-width: 768px) {
/* Prevent MobileFrontend from removing iframe container */
  .iframe-desktop { display: block; }
.no-remove iframe {
   .iframe-mobile { display: none; }
  display: block;
   height: 500px; /* Adjust height to suit your content */
}
}