Jump to content

Module:Charmap/styles.css

Gikan sa Bikol Sentral na Wikipedia, an talingkas na ensiklopedya
Pagbabago puon kaitong 18:38, 18 Hulyo 2025 ni ShiminUfesoj (urulay | ambag) (Pinagmukna an pahina kaining "{{pp-template}}: table.template-charmap tr:first-child { height: 50px; this is magic from StackOverflow to make the height below work: } table.template-charmap tr:first-child th[colspan] { height: 100%; } The most specific possible descendant selectors are used as any HTML might end up in the preview cell: table.template-charmap tr:first-child th[colspan] > div { height: 100%; display: flex; justify-content: center; } table.template-char...")
(iba) ← Mas luma | Presenteng pagbabago (iba) | Mas bago → (iba)
/* {{pp-template}} */
table.template-charmap tr:first-child {
	height: 50px; /* this is magic from StackOverflow to make the height below work */
}
table.template-charmap tr:first-child th[colspan] {
	height: 100%;
}
/* The most specific possible descendant selectors are used as any HTML might
   end up in the preview cell */
table.template-charmap tr:first-child th[colspan] > div {
	height: 100%;
	display: flex;
	justify-content: center;
}
table.template-charmap tr:first-child th[colspan] > div > div {
	display: flex;
	flex-direction: column;
	padding: 0 0.5em;
}

table.template-charmap tr:first-child th[colspan] > div > div > span:nth-child(2) {
	/* It is possible that unusual font sizes will be set, so padding is in px and
	   line-height is set to one, so that there is no font-size dependant padding. */
	margin: auto;
	padding: 10px 0;
	font-size: 150%;
	font-family: monospace;
	line-height: 1;
}

table.template-charmap .smallcaps-cm {
	font-size: 85%;
}

table.template-charmap td:first-child {
	text-align: left;
}

/* Condense the Numeric Character references as they can be wider than the page */
table.template-charmap .template-charmap-numchr td:nth-child(n+2) {
	font-size: 90%;
	font-family: monospace;
	padding: 2px;
}