Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Collapse/styles.css: Difference between revisions

Template page
Create CSS page to style {{collapse}} and {{collapse top}} using <templatestyles>
 
Fix non‑calc(…) `font‑size` of `.tpl‑collapsible‑header > .tpl‑collapsible‑header‑text`
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
padding: 0.2em 0.3em;
padding: 0.2em 0.3em;
text-align: center;
text-align: center;
font-size: 87%;
}
}


body.ns-0 .tpl-collapsible .tpl-collapsible-header {
body.ns-0 .tpl-collapsible .tpl-collapsible-header {
background: #EEF;
background: #EEF;
}
.tpl-collapsible .tpl-collapsible-header > .tpl-collapsible-header-text {
font-size: 115%;
font-size: calc(100% / 0.87);
}
}



Latest revision as of 23:37, 6 November 2021

.tpl-collapsible {
	text-align: left;
	border: 1px solid Silver;
	margin: 0.2em auto auto;
	width: 100%;
	clear: both;
	padding: 1px;
}

.tpl-collapsible .tpl-collapsible-header {
	background: #CFC;
	padding: 0.2em 0.3em;
	text-align: center;
	font-size: 87%;
}

body.ns-0 .tpl-collapsible .tpl-collapsible-header {
	background: #EEF;
}

.tpl-collapsible .tpl-collapsible-header > .tpl-collapsible-header-text {
	font-size: 115%;
	font-size: calc(100% / 0.87);
}

.tpl-collapsible .tpl-collapsible-warning {
	text-align: center;
	font-style: italic;
}

.tpl-collapsible .tpl-collapsible-content {
	border: 1px solid Silver;
	padding: 0.6em;
	background: White;
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.