Template:InfoCard/styles.css
Appearance
.wiki-template-infocard {
border: 1px solid var( --border-color-base, #A2A9B1 );
box-shadow: 0 1px 1px rgb(0 0 0 / 15%), 0px 2px 4px rgb(0 0 0 / 5%), 0px 0px 1px rgb(0 0 0 / 5%);
border-radius: 2px;
padding: 1rem 1.4rem;
display: flex;
flex-direction: column;
justify-content: space-between;
align-content: stretch;
color: inherit;
background-color: var(--background-color-base, #fff);
margin: 4px 1em 4px 0;
overflow: hidden;
width: auto;
overflow-wrap: break-word;
}
/* Use for: Give no title padding if subtitle exists */
.wiki-template-infocard-title {
padding: 0 0 0 0;
margin: 0;
}
/* Use for: Give title padding if subtitle does not exist */
.wiki-template-infocard-title-nosubtitle {
padding: 0 0 0.5625em 0;
margin: 0;
}
.wiki-template-infocard-subtitle {
padding: 0 0 0.5625em 0;
margin: 0;
font-weight: normal;
color: var(--color-subtle, #54595d);
}
.wiki-template-infocard-content {
clear: both;
flex: 1 1 auto;
}
.wiki-template-infocard-footer {
padding-top: 1.5em;
color: var(--color-subtle, #54595d);
}
@media screen {
html.skin-theme-clientpref-night .wiki-template-infocard-title img {
filter: invert(1);
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .wiki-template-infocard-title img {
filter: invert(1);
}
}
@media (min-width: 720px) {
.wiki-template-infocard-infobox {
margin: 4px 10%;
}
}
@media (max-width: 720px) {
.wiki-template-infocard,
.wiki-template-infocard-infobox {
margin: 4px 0;
}
}