Module:ScopeBox/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 |
||
| Line 40: | Line 40: | ||
font-family: var(--font-family-serif); |
font-family: var(--font-family-serif); |
||
font-size: 3rem; |
font-size: 3rem; |
||
} |
|||
@media (max-width: 1119px) { |
|||
.template-ScopeBox-content > :nth-child(2) { |
|||
font-size: 1.5rem; |
|||
} |
|||
} |
} |
||
Revision as of 23:37, February 2, 2025
.template-ScopeBox {
/* background image */
background-position: left;
background-clip: padding-box;
background-color: transparent;
background-repeat: no-repeat;
background-size: cover;
/* padding */
padding: var(--space-sm);
/* fill the entire width of the container */
width: 100%;
}
.template-ScopeBox-content {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
/* centered text */
text-align: center;
/* blur the background */
backdrop-filter: blur(3px);
}
/* dynamic resizing of images */
.template-ScopeBox-content img {
max-width: 100%;
height: 100%;
}
.template-ScopeBox-content > :first-child,
.template-ScopeBox-content > :last-child {
flex: 0 1 auto;
margin: 0 var(--space-sm);
}
.template-ScopeBox-content > :nth-child(2) {
flex: 1 1 fit-content;
/* typography */
font-family: var(--font-family-serif);
font-size: 3rem;
}
@media (max-width: 1119px) {
.template-ScopeBox-content > :nth-child(2) {
font-size: 1.5rem;
}
}