MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
hide "talk" tabs
 
(4 intermediate revisions by 2 users not shown)
Line 1:
/* CSS placed here will be applied to all skins */
 
/* Keep header and page clean */
.mw-page-container {
max-width: 100%;
Line 15:
}
 
 
/* Clean tables */
.wikitable {
font-size: 0.95rem;
Line 27 ⟶ 25:
}
 
img,
video,
iframe {
max-width: 100%;
height: auto;
}
 
pre,
code {
overflow-x: auto;
}
 
/* Main page layout */
.mp-banner {
background: lightblue;
border: 1px solid #000;
padding: 2rem 1rem;
text-align: center;
font-size: 2.2rem;
font-weight: 700;
color: #000;
margin: 0 0 1rem 0;
}
 
.mp-toplinks {
display: grid;
grid-template-columns: repeat(3, 1fr);
background: lightblue;
border: 1px solid #000;
margin: 0 0 1.25rem 0;
}
 
.mp-toplink {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
min-height: 100px;
padding: 1rem;
border-right: 2px solid #000;
box-sizing: border-box;
}
 
.mp-toplink:last-child {
border-right: none;
}
 
.mp-sections {
display: grid;
grid-template-columns: 1fr 1fr 0.8fr;
border: 1px solid #cedff2;
background: #f5fffa;
}
 
.mp-section {
padding: 1rem;
border-right: 1px solid #a2a9b1;
box-sizing: border-box;
}
 
.mp-section:last-child {
border-right: none;
}
 
.mp-section h2 {
margin: 0 0 0.75rem 0;
padding: 0.5rem 0.75rem;
text-align: center;
font-size: 1.25rem;
background: #eaecf0;
border: 1px solid #a2a9b1;
}
 
.mp-section ul {
margin: 0;
padding-left: 1.2rem;
}
 
.mp-section li {
margin: 0.45rem 0;
}
 
.mp-section a {
white-space: normal;
word-break: break-word;
}
 
/* Mobile layout */
@media (max-width: 768px) {
.mw-body,
/* Reduce large title/banner padding */
.mainpagevector-bannerbody {
padding-left: 1rem0.75rem !important;
fontpadding-sizeright: 10.5rem75rem !important;
text-align: center;
}
 
.mp-banner {
/* Stack top quick links vertically */
font-size: 1.5rem;
.mainpage-links td,
padding: 1.2rem 0.8rem;
.mainpage-links th {
displayline-height: block1.4;
width: 100% !important;
border-left: none !important;
border-right: none !important;
border-top: 1px solid #a2a9b1;
box-sizing: border-box;
text-align: center;
padding: 1rem 0.75rem !important;
}
 
.mp-toplinks,
.mainpage-links tr:first-child td:first-child,
.mp-sections {
.mainpage-links tr:first-child th:first-child {
grid-template-columns: 1fr;
border-top: none;
}
 
.mp-toplink,
/* Stack homepage content columns */
.mp-section {
.mainpage-sections td,
border-right: none;
.mainpage-sections th {
border-bottom: 1px solid #a2a9b1;
display: block;
width: 100% !important;
white-space: normal;
box-sizing: border-box;
}
 
.mp-toplink:last-child,
/* Reduce page side padding */
.mp-section:last-child {
.mw-body,
border-bottom: none;
.vector-body {
padding-left: 0.75rem;
padding-right: 0.75rem;
}
}
 
 
/* Allow list links to wrap naturally */
/* Hide "discussion" + "talk" tabs -- Demis 2026-05-28 */
.mainpage-sections a {
#ca-talk { display: none !important; }
white-space: normal;
#ca-talk { display: none !important; }
word-break: break-word;
}
}