Difference between revisions of "Template:Card table sets/styles.css"

From Yugipedia
Jump to: navigation, search
(Card table sets styles.)
 
(Restoring revision 4444804 by User:Deltaneos on 2020-03-20 16:51:24. "These were setting the width inside the padding. The padding changes if the table-sorting JS doesn't run (i.e. no sorting icons). Updating to set the overall width, so columns ar...)
Line 2: Line 2:
 
white-space: nowrap;
 
white-space: nowrap;
 
}
 
}
 +
 +
.cts th {
 +
box-sizing: border-box;
 +
}
 +
 
.cts tbody td:nth-child(3),
 
.cts tbody td:nth-child(3),
 
.cts :lang(fr),
 
.cts :lang(fr),
Line 11: Line 16:
 
}
 
}
  
.cts__header--release { width: 4.5em; }
+
.cts__header--release {
.cts__header--number { width: 6em; }
+
width: 6.5em;
 +
}
 +
 
 +
.cts__header--number {
 +
min-width: 8em;
 +
}
 +
 
 
.cts__header--rarity {
 
.cts__header--rarity {
min-width: 7em;
+
min-width: 9em;
max-width: 12em;
+
max-width: 14em;
 +
}
 +
 
 +
.cts tr td:nth-child(2) {
 +
white-space: nowrap;
 
}
 
}

Revision as of 02:34, 15 March 2023

.cts td[title] {
	white-space: nowrap;
}

.cts th {
	box-sizing: border-box;
}

.cts tbody td:nth-child(3),
.cts :lang(fr),
.cts :lang(de),
.cts :lang(it),
.cts :lang(pt),
.cts :lang(es) {
	font-style: italic;
}

.cts__header--release {
	width: 6.5em;
}

.cts__header--number {
	min-width: 8em;
}

.cts__header--rarity {
	min-width: 9em;
	max-width: 14em;
}

.cts tr td:nth-child(2) {
	white-space: nowrap;
}