Jump to content

Template:Box/styles.css: Difference between revisions

From Mathepedia, the mathematical encyclopedia
Created page with ".global-box { box-sizing: border-box; overflow: hidden; border: 1px solid #a2a9b1; border-radius: 2px; margin: 1em 2em; background: #fff; color: #202122; } .global-box__title { padding: 0.65em 1em 0.15em; font-weight: 700; } .global-box__body { padding: 0.35em 1em 0.75em; } .global-box__details { border-top: 1px solid #c8ccd1; padding: 0.55em 1em 0.6em; background: #f8f9fa; } .global-box__details-heading { min-height: 1.4em; font-weight: 600; } .globa..."
 
No edit summary
 
Line 3: Line 3:
overflow: hidden;
overflow: hidden;
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1;
border-radius: 2px;
border-radius: 0;
margin: 1em 2em;
margin: 0.65em 1em;
background: #fff;
background: #fff;
color: #202122;
color: #202122;
Line 10: Line 10:


.global-box__title {
.global-box__title {
padding: 0.65em 1em 0.15em;
padding: 0.4em 0.7em 0.05em;
font-weight: 700;
font-weight: 700;
line-height: 1.35;
}
}


.global-box__body {
.global-box__body {
padding: 0.35em 1em 0.75em;
padding: 0.15em 0.7em 0.45em;
line-height: 1.5;
}
}


.global-box__details {
.global-box__details {
border-top: 1px solid #c8ccd1;
border-top: 1px solid #c8ccd1;
padding: 0.55em 1em 0.6em;
padding: 0.35em 0.7em 0.4em;
background: #f8f9fa;
background: #f8f9fa;
}
}


.global-box__details-heading {
.global-box__details-heading {
min-height: 1.4em;
min-height: 1.3em;
font-weight: 600;
font-weight: 600;
line-height: 1.3;
}
}


.global-box__details .mw-collapsible-toggle {
.global-box__details .mw-collapsible-toggle {
float: right;
float: right;
margin-left: 1em;
margin-left: 0.75em;
font-size: 0.875em;
font-size: 0.85em;
font-weight: normal;
font-weight: normal;
}
}


.global-box__details-content {
.global-box__details-content {
padding-top: 0.55em;
padding-top: 0.3em;
line-height: 1.5;
}
}


Line 52: Line 56:
@media (max-width: 500px) {
@media (max-width: 500px) {
.global-box {
.global-box {
margin: 1em 0;
margin: 0.6em 0;
}
}


Line 58: Line 62:
.global-box__body,
.global-box__body,
.global-box__details {
.global-box__details {
padding-right: 0.6em;
padding-right: 0.55em;
padding-left: 0.6em;
padding-left: 0.55em;
}
}
}
}

Latest revision as of 18:13, 16 July 2026

.global-box {
	box-sizing: border-box;
	overflow: hidden;
	border: 1px solid #a2a9b1;
	border-radius: 0;
	margin: 0.65em 1em;
	background: #fff;
	color: #202122;
}

.global-box__title {
	padding: 0.4em 0.7em 0.05em;
	font-weight: 700;
	line-height: 1.35;
}

.global-box__body {
	padding: 0.15em 0.7em 0.45em;
	line-height: 1.5;
}

.global-box__details {
	border-top: 1px solid #c8ccd1;
	padding: 0.35em 0.7em 0.4em;
	background: #f8f9fa;
}

.global-box__details-heading {
	min-height: 1.3em;
	font-weight: 600;
	line-height: 1.3;
}

.global-box__details .mw-collapsible-toggle {
	float: right;
	margin-left: 0.75em;
	font-size: 0.85em;
	font-weight: normal;
}

.global-box__details-content {
	padding-top: 0.3em;
	line-height: 1.5;
}

.global-box__body > :first-child,
.global-box__details-content > :first-child {
	margin-top: 0;
}

.global-box__body > :last-child,
.global-box__details-content > :last-child {
	margin-bottom: 0;
}

@media (max-width: 500px) {
	.global-box {
		margin: 0.6em 0;
	}

	.global-box__title,
	.global-box__body,
	.global-box__details {
		padding-right: 0.55em;
		padding-left: 0.55em;
	}
}