Template:Amaranth TV/entry/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary |
Tesinormed (talk | contribs) No edit summary |
||
| Line 17: | Line 17: | ||
display: flex; |
display: flex; |
||
flex-direction: column; |
flex-direction: column; |
||
flex-wrap: nowrap; |
|||
justify-content: center; |
justify-content: center; |
||
align-content: space-between; |
align-content: space-between; |
||
| Line 29: | Line 30: | ||
.amaranth-tv-entry figure img { |
.amaranth-tv-entry figure img { |
||
width: 100% !important; |
|||
height: 100% !important; |
|||
padding: var(--space-sm); |
padding: var(--space-sm); |
||
} |
} |
||
Revision as of 23:52, May 8, 2025
.amaranth-tv-entry {
position: relative;
width: 160px;
height: 200px;
background: var(--color-surface-2);
border-style: solid;
border-width: 4px;
}
.amaranth-tv-entry figure,
.amaranth-tv-entry figure > a:first-child:not(.mw-file-description) {
border: none;
border-radius: 0;
}
.amaranth-tv-entry figure {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: center;
align-content: space-between;
width: 100%;
height: 100%;
margin: 0;
}
.amaranth-tv-entry figure > a:first-child:not(.mw-file-description) {
display: block;
}
.amaranth-tv-entry figure img {
width: 100% !important;
height: 100% !important;
padding: var(--space-sm);
}
.amaranth-tv-entry figure > figcaption {
display: block;
text-align: center;
color: var(--color-base);
font-size: var(--font-size-base);
font-weight: bold;
padding-inline: var(--space-sm);
}
html.skin-theme-clientpref-day .amaranth-tv-entry {
border-color: var(--template-arg-color-light, var(--template-arg-color-dark));
border-image: var(--template-arg-border-image, unset);
box-shadow: var(--template-arg-color-light, var(--template-arg-color-dark)) 0 0 10px;
}
@media (prefers-color-scheme: light) {
html.skin-theme-clientpref-os .amaranth-tv-entry {
border-color: solid var(--template-arg-color-light, var(--template-arg-color-dark));
border-image: var(--template-arg-border-image, unset);
box-shadow: var(--template-arg-color-light, var(--template-arg-color-dark)) 0 0 10px;
}
}
html.skin-theme-clientpref-night .amaranth-tv-entry {
border-color: var(--template-arg-color-dark);
border-image: var(--template-arg-border-image, unset);
box-shadow: var(--template-arg-color-dark) 0 0 10px;
}
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .amaranth-tv-entry {
border-color: var(--template-arg-color-dark);
border-image: var(--template-arg-border-image, unset);
box-shadow: var(--template-arg-color-dark) 0 0 10px;
}
}