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 |
Tesinormed (talk | contribs) No edit summary Tag: Reverted |
||
| Line 2: | Line 2: | ||
--color-link--hover: var(--color-link); |
--color-link--hover: var(--color-link); |
||
--color-link--active: var(--color-link); |
--color-link--active: var(--color-link); |
||
} |
|||
.hatnote_wrapper hr:first-child { |
|||
margin-block-end: 0; |
|||
} |
|||
.hatnote_wrapper hr:last-child { |
|||
margin-block-start: 0; |
|||
} |
} |
||
Revision as of 23:52, April 16, 2025
.hatnote_wrapper {
--color-link--hover: var(--color-link);
--color-link--active: var(--color-link);
}
.hatnote_wrapper hr:first-child {
margin-block-end: 0;
}
.hatnote_wrapper hr:last-child {
margin-block-start: 0;
}
/* no images */
.hatnote0 .hatnote-text {
text-align: center;
}
/* one image */
.hatnote1 {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
text-align: left;
}
.hatnote1 .hatnote-image1 {
flex: 0 1 auto;
margin-left: var(--space-sm);
margin-right: var(--space-md);
}
.hatnote1 .hatnote-image1 img {
max-width: 100%;
height: 100%;
}
.hatnote1 .hatnote-text {
flex: 0 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 1 auto;
margin: 0 var(--space-sm);
}
.hatnote2 img {
max-width: 100%;
height: 100%;
}
.hatnote2 > :nth-child(2) {
flex: 1 1 fit-content;
}
.hatnote-primary {
display: inline-block;
color: var(--color-amaranth-legacy-scope);
font-family: var(--font-family-header-custom, var(--font-family-serif));
font-size: var(--font-size-xx-large);
}