Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Module:ScopeBox/styles.css: Difference between revisions

From Amaranth Legacy, available at amaranth-legacy.community
Content deleted Content added
No edit summary
m Protected "Module:ScopeBox/styles.css" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
.template-ScopeBox {
.template-ScopeBox {
/* make sure this displays correctly */
display: inline-block;
/* fill the entire width of the container */
width: 100%;
/* center the text */
text-align: center;
/* background image */
/* background image */
background-position: left;
background-position: left center;
background-clip: padding-box;
background-clip: padding-box;
background-color: transparent;
background-color: transparent;
background-repeat: no-repeat;
background-repeat: no-repeat;
background-size: cover;
background-size: cover;
}

.template-ScopeBox a {
/* make sure this displays correctly */
display: inline-block;
/* fill the entire width of the container */
/* fill the entire width of the container */
width: 100%;
width: 100%;
}

.template-ScopeBox-content {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
/* centered text */
text-align: center;
/* blur the background */
/* blur the background */
backdrop-filter: blur(2px);
backdrop-filter: blur(4px);
/* padding */
/* use the background as text color */
padding: var(--space-sm);
background-clip: text;
}
/* font settings */

font-family: var(--font-family-serif) !important;
/* dynamic resizing of images */
font-size: var(--font-size-xxx-large) !important;
.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: 2rem;
}
}
}

Latest revision as of 10:53, September 11, 2025

.template-ScopeBox {
	/* background image */
	background-position: left center;
	background-clip: padding-box;
	background-color: transparent;
	background-repeat: no-repeat;
	background-size: cover;
	/* 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(4px);
	/* padding */
	padding: var(--space-sm);
}

/* 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: 2rem;
	}
}