MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
(Created page with "→‎CSS placed here will be applied to all skins: .infobox { width: 22em; background: #f9f9f9; border: 1px solid #aaa; padding: 5px; font-size: 95%; } .infobox .header { font-size: 125%; font-weight: bold; text-align: center; background: #ccf; padding: 5px; } .infobox .field { padding: 5px 0; } .infobox .field .label { background: #ddf; padding: 2px 5px; font-weight: bold; } .infobox .field .value { padding: 2p...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
.infobox {
.infobox {
    float: right;
     width: 22em;
     width: 22em;
     background: #f9f9f9;
     background: #333; /* Dark background color */
     border: 1px solid #aaa;
     border: 1px solid #555; /* Darker border color */
     padding: 5px;
     padding: 5px;
     font-size: 95%;
     font-size: 95%;
    margin: 0 0 1em 1em;
    border-radius: 8px; /* Rounded corners */
    color: #ddd; /* Light text color */
}
}
.infobox .header {
.infobox .header {
     font-size: 125%;
     font-size: 125%;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     text-align: center;
     background: #ccf;
     background: #444; /* Darker background for header */
    color: #fff; /* White text color for header */
     padding: 5px;
     padding: 5px;
    border-radius: 8px 8px 0 0; /* Rounded corners for header */
}
}
.infobox .field {
.infobox .field {
     padding: 5px 0;
     padding: 5px 0;
    display: flex;
}
}
.infobox .field .label {
.infobox .field .label {
     background: #ddf;
     background: #555; /* Slightly lighter background for labels */
     padding: 2px 5px;
     padding: 2px 5px;
     font-weight: bold;
     font-weight: bold;
    flex: 1;
    color: #fff; /* White text color for labels */
    border-radius: 4px; /* Rounded corners for labels */
}
}
.infobox .field .value {
.infobox .field .value {
     padding: 2px 5px;
     padding: 2px 5px;
    flex: 2;
    color: #ddd; /* Light text color for values */
}
.infobox .image img {
    border: 1px solid #555; /* Border for image */
    border-radius: 5px; /* Rounded corners for image */
    display: block;
    margin: 0 auto; /* Center image */
}
}

Latest revision as of 05:19, 20 May 2024

.infobox {
    float: right;
    width: 22em;
    background: #333; /* Dark background color */
    border: 1px solid #555; /* Darker border color */
    padding: 5px;
    font-size: 95%;
    margin: 0 0 1em 1em;
    border-radius: 8px; /* Rounded corners */
    color: #ddd; /* Light text color */
}

.infobox .header {
    font-size: 125%;
    font-weight: bold;
    text-align: center;
    background: #444; /* Darker background for header */
    color: #fff; /* White text color for header */
    padding: 5px;
    border-radius: 8px 8px 0 0; /* Rounded corners for header */
}

.infobox .field {
    padding: 5px 0;
    display: flex;
}

.infobox .field .label {
    background: #555; /* Slightly lighter background for labels */
    padding: 2px 5px;
    font-weight: bold;
    flex: 1;
    color: #fff; /* White text color for labels */
    border-radius: 4px; /* Rounded corners for labels */
}

.infobox .field .value {
    padding: 2px 5px;
    flex: 2;
    color: #ddd; /* Light text color for values */
}

.infobox .image img {
    border: 1px solid #555; /* Border for image */
    border-radius: 5px; /* Rounded corners for image */
    display: block;
    margin: 0 auto; /* Center image */
}