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 1: | Line 1: | ||
.template-ScopeBox { |
.template-ScopeBox { |
||
/* flexbox */ |
|||
/* make sure this displays correctly */ |
|||
display: |
display: flex; |
||
flex-direction: row; |
|||
flex-wrap: nowrap; |
|||
align-items: center; |
|||
text-align: center; |
|||
/* fill the entire width of the container */ |
/* fill the entire width of the container */ |
||
width: 100%; |
width: 100%; |
||
| Line 26: | Line 30: | ||
} |
} |
||
.template-ScopeBox |
.template-ScopeBox > :first-child, |
||
.template-ScopeBox > :last-child { |
|||
float: left; |
|||
flex: 0 1 auto; |
|||
margin: 0 var(--space-sm); |
|||
} |
|||
.template-ScopeBox > :nth-child(2) { |
|||
flex: 1 1 fit-content; |
|||
} |
} |
||
Revision as of 23:18, February 2, 2025
.template-ScopeBox {
/* flexbox */
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
text-align: center;
/* fill the entire width of the container */
width: 100%;
/* center the text */
text-align: center;
/* background image */
background-position: left;
background-clip: padding-box;
background-color: transparent;
background-repeat: no-repeat;
background-size: cover;
}
.template-ScopeBox a {
/* make sure this displays correctly */
display: inline-block;
/* fill the entire width of the container */
width: 100%;
/* blur the background */
backdrop-filter: blur(3px);
/* font settings */
font-family: var(--font-family-serif) !important;
font-size: 275% !important;
}
.template-ScopeBox > :first-child,
.template-ScopeBox > :last-child {
flex: 0 1 auto;
margin: 0 var(--space-sm);
}
.template-ScopeBox > :nth-child(2) {
flex: 1 1 fit-content;
}