Template:Profile card/styles.css
Appearance
/* Alternate versions of Module:Infobox/styles.css without alignment */
.profilecard {
border: 1px solid #a2a9b1;
color: black;
padding: 0.2em;
font-size: 88%;
line-height: 1.7em;
border-spacing: 3px;
border-radius: 8px;
}
.profilecard-header {
line-height: 2.1em;
border-radius: 5px;
font-size: 125%;
font-weight: bold;
text-align: center;
padding: 0.2em;
/* DO NOT set background-color here to preserve template-defined color */
}
.profilecard-label {
line-height: 2.1em;
background-color: #f2f2f2;
border-radius: 5px;
text-align: center;
}
.profilecard th {
text-align: center;
}
.profilecard td {
letter-spacing: 0.2px;
}
/* Dark theme overrides - night mode (clientpref-night) */
@media screen {
html.skin-theme-clientpref-night .profilecard {
background-color: #101418 !important;
color: #f8f9fa !important;
border-color: #444 !important;
}
html.skin-theme-clientpref-night .profilecard .profilecard-label {
background-color: #2a2a2a !important;
color: #ffffff !important;
}
html.skin-theme-clientpref-night .profilecard td,
html.skin-theme-clientpref-night .profilecard th {
color: #f0f0f0 !important;
}
html.skin-theme-clientpref-night .profilecard .profilecard-header {
color: #ffffff !important;
/* Do not override background-color to preserve custom/module header colors */
}
}
/* Dark theme overrides - auto dark mode (prefers-color-scheme: dark) */
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .profilecard {
background-color: #101418 !important;
color: #f8f9fa !important;
border-color: #444 !important;
}
html.skin-theme-clientpref-os .profilecard .profilecard-label {
background-color: #2a2a2a !important;
color: #ffffff !important;
}
html.skin-theme-clientpref-os .profilecard td,
html.skin-theme-clientpref-os .profilecard th {
color: #f0f0f0 !important;
}
html.skin-theme-clientpref-os .profilecard .profilecard-header {
color: #ffffff !important;
/* Preserve bright custom headers like Aqours */
}
}