MediaWiki:Mobile.css: Difference between revisions

From Taranaki Lab Manual
Jump to navigation Jump to search
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 */
}
}

Revision as of 12:16, 23 July 2025

/* All CSS here will be loaded for users of the mobile site */

* {
  font-family: Poppins, Arial, sans-serif;
}

/* MediaWiki:Common.css */
@media (max-width: 767px) {
  .iframe-desktop { display: none; }
  .iframe-mobile { display: block; }
}
@media (min-width: 768px) {
  .iframe-desktop { display: block; }
  .iframe-mobile { display: none; }
}