MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Dea7hsmiles (talk | contribs) No edit summary Tag: Reverted |
Dea7hsmiles (talk | contribs) No edit summary Tag: Reverted |
||
Line 42: | Line 42: | ||
} | } | ||
/* | /* Directly resize the logo image */ | ||
#p-logo img { | #p-logo img { | ||
max-width: | max-width: 300px !important; /* adjust as needed */ | ||
max-height: | max-height: 150px !important; /* adjust as needed */ | ||
width: auto !important; /* maintain aspect ratio */ | width: auto !important; /* maintain aspect ratio */ | ||
height: auto !important; /* maintain aspect ratio */ | height: auto !important; /* maintain aspect ratio */ | ||
} | |||
/* If the logo is a background image */ | |||
#p-logo { | |||
background-size: contain !important; | |||
background-repeat: no-repeat !important; | |||
height: 150px !important; /* adjust as needed */ | |||
width: 300px !important; /* adjust as needed */ | |||
} | } |
Revision as of 04:12, 19 May 2025
/* Infobox styling like Dolphin Wiki */
.infobox {
float: right;
clear: right;
margin: 0 0 1em 1em;
padding: 0.5em;
width: 250px;
background-color: #f9f9f9;
border: 1px solid #aaa;
font-size: 90%;
line-height: 1.5em;
}
/* Table of contents styling */
.toc {
border: 1px solid #aaa;
background-color: #f8f9fa;
padding: 10px;
font-size: 95%;
margin-bottom: 1em;
}
/* Headings */
h1, h2, h3 {
border-bottom: 1px solid #ccc;
padding-bottom: 3px;
margin-bottom: 10px;
}
/* Improve line spacing */
body, .mw-body-content {
line-height: 1.6;
}
/* Optional: remove sidebar collapse icon */
.vector-menu-heading .mw-ui-icon {
display: none;
}
body {
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
/* Directly resize the logo image */
#p-logo img {
max-width: 300px !important; /* adjust as needed */
max-height: 150px !important; /* adjust as needed */
width: auto !important; /* maintain aspect ratio */
height: auto !important; /* maintain aspect ratio */
}
/* If the logo is a background image */
#p-logo {
background-size: contain !important;
background-repeat: no-repeat !important;
height: 150px !important; /* adjust as needed */
width: 300px !important; /* adjust as needed */
}