Module:Hatnote/styles.css: Difference between revisions
From Amaranth Legacy, available at amaranth-legacy.community
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary Tags: Manual revert Reverted |
Tesinormed (talk | contribs) No edit summary Tag: Manual revert |
||
| Line 14: | Line 14: | ||
.hatnote1 > :first-child { |
.hatnote1 > :first-child { |
||
flex: 0 2 |
flex: 0 2 auto; |
||
margin-left: var(--space-sm); |
margin-left: var(--space-sm); |
||
margin-right: var(--space-md); |
margin-right: var(--space-md); |
||
Revision as of 17:39, January 17, 2025
/* no images */
.hatnote0 {
text-align: center;
}
/* one image */
.hatnote1 {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
text-align: left;
}
.hatnote1 > :first-child {
flex: 0 2 auto;
margin-left: var(--space-sm);
margin-right: var(--space-md);
}
.hatnote1 img {
max-width: 100%;
height: 100%;
}
.hatnote1 > :last-child {
flex: 1 1 fit-content;
}
/* two images */
.hatnote2 {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
text-align: center;
}
.hatnote2 > :first-child,
.hatnote2 > :last-child {
flex: 0 2 auto;
margin: 0 var(--space-sm);
}
.hatnote2 img {
max-width: 100%;
height: 100%;
}
.hatnote2 > :nth-child(2) {
flex: 1 1 fit-content;
}