MediaWiki:Common.css
Revision as of 09:26, 19 April 2024 by Admin (talk | contribs) (Created page with "→CSS placed here will be applied to all skins: →Reset default browser styles: body, html { margin: 0; padding: 0; font-family: Arial, sans-serif; font-size: 16px; } →Container styles: .container { max-width: 960px; margin: 0 auto; padding: 20px; } →Header styles: .header { background-color: #f8f9fa; padding: 10px 0; } .header h1 { margin: 0; font-size: 24px; font-weight: bold; } →Navigation styles: ...")
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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
/* Reset default browser styles */
body, html {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
font-size: 16px;
}
/* Container styles */
.container {
max-width: 960px;
margin: 0 auto;
padding: 20px;
}
/* Header styles */
.header {
background-color: #f8f9fa;
padding: 10px 0;
}
.header h1 {
margin: 0;
font-size: 24px;
font-weight: bold;
}
/* Navigation styles */
.nav {
background-color: #007ba7;
padding: 10px;
}
.nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
.nav ul li {
display: inline;
margin-right: 10px;
}
.nav ul li a {
color: #fff;
text-decoration: none;
padding: 5px 10px;
border-radius: 5px;
}
.nav ul li a:hover {
background-color: #005a7e;
}
/* Content styles */
.content {
padding: 20px 0;
}
/* Footer styles */
.footer {
background-color: #f8f9fa;
padding: 10px 0;
text-align: center;
font-size: 14px;
}