MediaWiki:Infobox.css: Difference between revisions
Appearance
ReisuDesign (talk | contribs) No edit summary |
Increased portable-infobox width to 340px and increased pi-data-label to flex 95px |
||
| Line 1: | Line 1: | ||
/*infobox*/ | /*infobox*/ | ||
.portable-infobox { | .portable-infobox { | ||
width: 340px; | |||
background: var(--theme-color-1); | background: var(--theme-color-1); | ||
border-radius: 20px; | border-radius: 20px; | ||
| Line 23: | Line 24: | ||
margin-bottom: 5px; | margin-bottom: 5px; | ||
border: none; | border: none; | ||
} | |||
.pi-data:last-child { | |||
margin-bottom: 0; | |||
} | } | ||
| Line 31: | Line 36: | ||
} | } | ||
.pi-data | .portable-infobox .pi-data-label { | ||
flex: 95px; | |||
} | } | ||
Revision as of 21:58, 12 November 2025
/*infobox*/
.portable-infobox {
width: 340px;
background: var(--theme-color-1);
border-radius: 20px;
padding: 10px;
}
.pi-title {
background-color: var(--theme-accent-color);
text-align: center;
border-radius: 10px;
color: var(--page-text-color);
margin-bottom: 5px !important;
}
.skin-theme-clientpref-night .pi-title {
color: var(--page-background-color);
}
.pi-data {
background-color: var(--theme-color-3);
border-radius: 10px;
margin-bottom: 5px;
border: none;
}
.pi-data:last-child {
margin-bottom: 0;
}
.pi-data-label {
color: var(--theme-link-color);
font-family: 'Inter' !important;
font-weight: 700 !important;
}
.portable-infobox .pi-data-label {
flex: 95px;
}
.pi-image img {
border-radius: 10px;
overflow: hidden;
margin-bottom: 5px !important;
}
.pi-media-collection-tabs {
gap: 5px;
align-items: stretch !important;
margin-bottom: 2px !important;
}
.pi-media-collection-tabs .current {
background-color: var(--theme-color-6) !important;
}
.pi-media-collection-tabs li {
border-radius: 10px !important;
background-color: var(--theme-color-3) !important;
}
.pi-section-navigation .pi-section-tab, .pi-media-collection .pi-tab-link {
max-width: none !important;
flex-grow: 1;
}
.pi-header {
background-color: transparent !important;
text-align: center;
font-weight: 500 !important;
}
/* Group Styling */
.pi-horizontal-group {
margin-bottom: 5px;
border: 1px solid transparent !important;
border-spacing: 5px 0;
border-collapse: collapse;
border-radius: 10px;
overflow: hidden;
}
.pi-horizontal-group {
td , th {
border-color: var(--theme-color-1) !important;
border-width: 5px !important;
background-color: var(--theme-color-3);
}
}
.pi-group {
border: none;
}