MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* | /* Set full-width for all sections */ | ||
.main-container { | .main-container { | ||
width: 100%; | width: 100%; | ||
Line 8: | Line 8: | ||
} | } | ||
/* | /* Make header and footer full-width */ | ||
.header-section, .footer-section { | .header-section, .footer-section { | ||
width: 100%; | width: 100%; | ||
padding: 20px; | padding: 20px; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
background: #f9f9f9; | background: #f9f9f9; | ||
text-align: center; | text-align: center; | ||
box-sizing: border-box; | |||
} | } | ||
/* | /* Ensure middle section is full-width and centered */ | ||
.middle-section { | .middle-section { | ||
width: 100%; | width: 100%; | ||
padding: | padding: 10px; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/* | /* Columns: default to full width */ | ||
.middle-section .column { | .middle-section .column { | ||
width: 100%; | |||
padding: 20px; | padding: 20px; | ||
margin-bottom: 10px; | |||
border: 1px solid #ddd; | border: 1px solid #ddd; | ||
bac | |||
Revision as of 05:46, 20 March 2025
/* CSS placed here will be applied to all skins */ /* Set full-width for all sections */ .main-container { width: 100%; margin: 0; padding: 0; } /* Make header and footer full-width */ .header-section, .footer-section { width: 100%; padding: 20px; border: 1px solid #ccc; background: #f9f9f9; text-align: center; box-sizing: border-box; } /* Ensure middle section is full-width and centered */ .middle-section { width: 100%; padding: 10px; box-sizing: border-box; } /* Columns: default to full width */ .middle-section .column { width: 100%; padding: 20px; margin-bottom: 10px; border: 1px solid #ddd; bac