MediaWiki:Common.css: Difference between revisions

From FizzWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
/* 176
/* 176


/* Center the main title at the top of the Portable Infobox */
/* Style the main title at the top of the Portable Infobox */
.portable-infobox .pi-title {
.portable-infobox .pi-title {
     text-align: center;
     text-align: center;
     justify-content: center; /* Ensures flexbox layouts center properly */
     justify-content: center;
    background-color: #3366cc; /* Change to your preferred hex color code */
    color: #ffffff;            /* Changes text color to white for contrast */
    font-size: 1.5em;          /* Makes the title font larger (150% of standard size) */
    font-weight: bold;        /* Makes the text bold */
    padding: 8px;              /* Adds spacing around the text so it doesn't touch the borders */
}
}


/* Center all section group headers inside the Portable Infobox */
/* Style all section group headers inside the Portable Infobox */
.portable-infobox .pi-header {
.portable-infobox .pi-header {
     text-align: center;
     text-align: center;
     justify-content: center;
     justify-content: center;
    background-color: #4a75cb; /* Slightly different shade for section headers */
    color: #ffffff;            /* White text color */
    font-size: 1.2em;          /* Adjusts font size slightly smaller than the main title */
    font-weight: bold;
    padding: 6px;              /* Adds comfortable spacing inside the header box */
}
}

Revision as of 14:52, 15 June 2026

/* CSS placed here will be applied to all skins */

/* Adjust the main content so it doesn't overlap with the new sidebar */
#content {
    margin-right: 16px; /* Must be wider than #right-sidebar */
}
/* 176

/* Style the main title at the top of the Portable Infobox */
.portable-infobox .pi-title {
    text-align: center;
    justify-content: center;
    background-color: #3366cc; /* Change to your preferred hex color code */
    color: #ffffff;            /* Changes text color to white for contrast */
    font-size: 1.5em;          /* Makes the title font larger (150% of standard size) */
    font-weight: bold;         /* Makes the text bold */
    padding: 8px;              /* Adds spacing around the text so it doesn't touch the borders */
}

/* Style all section group headers inside the Portable Infobox */
.portable-infobox .pi-header {
    text-align: center;
    justify-content: center;
    background-color: #4a75cb; /* Slightly different shade for section headers */
    color: #ffffff;            /* White text color */
    font-size: 1.2em;          /* Adjusts font size slightly smaller than the main title */
    font-weight: bold;
    padding: 6px;              /* Adds comfortable spacing inside the header box */
}