MediaWiki:Mobile.css: Difference between revisions
Appearance
	
	
| No edit summary | No edit summary | ||
| Line 59: | Line 59: | ||
|      font-size: 1.2em; |      font-size: 1.2em; | ||
|      padding: 1em; |      padding: 1em; | ||
|     text-align: center; | |||
|    } |    } | ||
| Line 83: | Line 84: | ||
|      flex-direction: column; |      flex-direction: column; | ||
|      gap: 10px; |      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; | |||
|    } |    } | ||
| } | } | ||
| Line 102: | Line 128: | ||
|    .section-content { |    .section-content { | ||
|      padding: 0.8em; |      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 */ | /* end of new front page CSS */ | ||
| .infobox { | .infobox { | ||
Revision as of 01:54, 18 March 2025
/* 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 */
  .hero-title {
    font-size: 1.8em;
  }
  
  .hero-subtitle {
    font-size: 1.1em;
  }
  
  .quick-access-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .button {
    width: 80%;
    text-align: center;
    margin-bottom: 0.5em;
  }
  
  /* 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;
  }
  
  .hero-banner {
    padding: 1em 0.5em;
  }
  
  .about-section {
    padding: 1em;
  }
  
  .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;
}
 
	