MediaWiki:Citizen.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 47: | Line 47: | ||
.infobox-item .value { | .infobox-item .value { | ||
color: var(--color-subtle); | color: var(--color-subtle); | ||
} | |||
/* Custom standalone sidebar icon */ | |||
.custom-sidebar-icon a { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 40px; | |||
height: 40px; | |||
} | |||
.custom-icon { | |||
width: 20px; | |||
height: 20px; | |||
background-color: currentColor; | |||
-webkit-mask-image: url(/images/Gods.png); /* change path */ | |||
-webkit-mask-repeat: no-repeat; | |||
-webkit-mask-size: contain; | |||
mask-image: url(/images/Gods.png); | |||
mask-repeat: no-repeat; | |||
mask-size: contain; | |||
} | } | ||
Revision as of 09:36, 28 February 2026
/* Generic infobox styling */
.infobox-item {
float: right; /* ensures the box sits on the right */
clear: right; /* prevents stacking issues */
width: 320px;
border: 1px solid var(--border-color-base);
background-color: var(--background-color-primary);
padding: 10px;
margin: 0 0 10px 20px; /* space between content and infobox */
font-size: 14px;
box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.infobox-item .infobox-title {
font-weight: bold;
font-size: 16px;
text-align: center;
margin-bottom: 8px;
color: var(--color-base);
}
.infobox-item .infobox-image {
text-align: center;
margin-bottom: 8px;
}
.infobox-item .infobox-data .infobox-row {
display: flex;
justify-content: space-between;
padding: 6px 8px;
border-bottom: 1px solid var(--border-color-subtle);
}
.infobox-item .infobox-data .infobox-row:nth-child(odd) {
background-color: var(--background-color-primary);
}
.infobox-item .infobox-data .infobox-row:nth-child(even) {
background-color: var(--background-color-secondary);
}
.infobox-item .label {
font-weight: bold;
color: var(--color-base);
}
.infobox-item .value {
color: var(--color-subtle);
}
/* Custom standalone sidebar icon */
.custom-sidebar-icon a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
}
.custom-icon {
width: 20px;
height: 20px;
background-color: currentColor;
-webkit-mask-image: url(/images/Gods.png); /* change path */
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: contain;
mask-image: url(/images/Gods.png);
mask-repeat: no-repeat;
mask-size: contain;
}