Jump to content

MediaWiki:Mobile.css

From inZOI Wiki
Revision as of 15:54, 27 March 2025 by Zoi (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All CSS here will be loaded for users of the mobile site */

/* new front page CSS */
/* inZOI Wiki Mobile Styles */

@media (max-width: 768px) {
  /* Show/hide appropriate views */
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }

  /* Hero section adjustments */
  /* MODIFIED - Ensure mobile padding is reduced */
  .hero-banner {
    padding: 0.8em 0.5em;
    margin: 0.8em 0; /* Added margin reduction */
  }

  /* MODIFIED - Added rule for image max-height */
  .hero-banner img {
    max-height: 200px; /* Even smaller on mobile */
  }

  .hero-title {
    font-size: 1.6em; /* MODIFIED - Reduced */
    margin-top: 0.4em; /* MODIFIED - Reduced */
  }

  .hero-subtitle {
    font-size: 1em; /* MODIFIED - Reduced */
    margin-top: 0.2em; /* MODIFIED - Reduced */
    margin-bottom: 0.3em; /* MODIFIED - Reduced */
  }

  .quick-access-buttons {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 80%;
    text-align: center;
    margin-bottom: 0.5em;
  }

  /* MODIFIED - About Section adjustments for mobile */
  .about-section {
    padding: 0.8em; /* Reduced */
    margin: 0.8em auto; /* Reduced */
    font-size: 0.95em; /* Slightly reduced */
    line-height: 1.5; /* Slightly reduced */
  }

  .about-section h2 {
    font-size: 1.3em; /* Reduced */
    margin-bottom: 0.4em; /* Reduced */
  }

  .about-section p {
    margin-bottom: 0.3em; /* Reduced */
  }


  /* Featured content adjustments */
  .featured-cards {
    grid-template-columns: 1fr;
  }

  /* Main sections mobile */
  .main-sections-mobile {
    margin: 1.5em auto;
    max-width: 100%;
  }

  .wiki-table-mobile {
    width: 100%;
    border-spacing: 0.8em;
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .section-header {
    width: 100%;
    font-size: 1.2em;
    padding: 1em;
    text-align: center;
  }

  .two-column-mobile {
    column-count: 2;
    column-gap: 20px;
  }

  /* Stats adjustments */
  .stats-container {
    flex-direction: column;
  }

  .stat-box {
    width: 100%;
  }

  /* Footer adjustments */
  .wiki-footer {
    padding: 1em;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  /* Featured content section header adjustments */
  .featured-content .section-header {
    flex-direction: column;
    text-align: center;
  }

  .featured-content .section-header h2 {
    margin-bottom: 0.5em;
    text-align: center;
  }

  /* Card content alignment */
  .card-content {
    text-align: center;
  }

  /* List item spacing */
  .section-content ul {
    padding-left: 1em;
  }

  .section-content li {
    margin-bottom: 0.5em;
  }
}

@media (max-width: 480px) {
  /* Further adjustments for very small screens */
  .two-column-mobile {
    column-count: 1;
  }

  /* MODIFIED - Adjusted padding for smallest screens */
  .hero-banner {
    padding: 0.6em 0.3em;
  }

  /* MODIFIED - Adjusted padding for smallest screens */
  .about-section {
    padding: 0.6em;
  }

  .section-content {
    padding: 0.8em;
  }

  /* Ensure section headers are properly centered on very small screens */
  .section-header {
    padding: 0.8em 0.5em;
  }
}
/* end of new front page CSS */

.infobox {
    position: relative !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin: 0 auto !important;
}