Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Undo revision 224421 by Bates Larsson (talk)
Tag: Undo
No edit summary
Line 652: Line 652:




/* === Layout === */
 
.main-banner {
/* Main page CSS */
/* === Main Page Layout (scoped) === */
.mainpage-wrapper .main-banner {
   text-align: center;
   text-align: center;
   padding: 1em;
   padding: 1em;
   background-color: #333;
   background-color: #333;
   color: red;
   color: white;
}
}
.banner-title {
.mainpage-wrapper .banner-title {
   font-size: 2em;
   font-size: 2em;
   margin-top: 0.5em;
   margin-top: 0.5em;
}
}


.search-area {
.mainpage-wrapper .search-area {
   text-align: center;
   text-align: center;
   background: #222;
   background: #222;
Line 672: Line 674:
}
}


.intro-text {
.mainpage-wrapper .intro-text {
   max-width: 800px;
   max-width: 800px;
   margin: 1em auto;
   margin: 1em auto;
Line 679: Line 681:
}
}


/* Info Boxes Row */
.mainpage-wrapper .info-row {
.info-row {
   display: flex;
   display: flex;
   flex-wrap: wrap;
   flex-wrap: wrap;
Line 688: Line 689:
   max-width: 1000px;
   max-width: 1000px;
}
}
.info-box {
.mainpage-wrapper .info-box {
   flex: 1 1 300px;
   flex: 1 1 300px;
   background: #444;
   background: #444;
Line 695: Line 696:
}
}


/* Lower section */
.mainpage-wrapper .lower-row {
.lower-row {
   display: flex;
   display: flex;
   flex-wrap: wrap-reverse;
   flex-wrap: wrap-reverse;
Line 705: Line 705:
}
}


/* About box should appear first on small screens */
.mainpage-wrapper .about-box {
.about-box {
   flex: 1 1 250px;
   flex: 1 1 250px;
   background: #333;
   background: #333;
   color: white;
   color: white;
   padding: 1em;
   padding: 1em;
   order: -1; /* Makes it appear first when wrapped */
   order: -1;
}
}


/* Grid of links */
.mainpage-wrapper .link-grid {
.link-grid {
   flex: 3 1 600px;
   flex: 3 1 600px;
   display: flex;
   display: flex;
Line 721: Line 719:
   gap: 1em;
   gap: 1em;
}
}
.link-tile {
.mainpage-wrapper .link-tile {
   flex: 1 1 120px;
   flex: 1 1 120px;
   background: #222;
   background: #222;
Line 730: Line 728:
}
}


/* === Responsive tweaks === */
/* === Mobile responsiveness === */
@media (max-width: 768px) {
@media (max-width: 768px) {
   .info-row {
   .mainpage-wrapper .info-row {
     flex-direction: column;
     flex-direction: column;
   }
   }
   .info-box {
   .mainpage-wrapper .info-box {
     flex: 1 1 auto;
     flex: 1 1 auto;
   }
   }


   .lower-row {
   .mainpage-wrapper .lower-row {
     flex-direction: column;
     flex-direction: column;
   }
   }
}
}