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

From Yugipedia
Jump to: navigation, search
(Adapt for Rush Duel sets.)
(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 are the same width with and without the sorting JS.)
 
Line 1: Line 1:
 
.cts td[title] {
 
.cts td[title] {
 
white-space: nowrap;
 
white-space: nowrap;
 +
}
 +
 +
.cts th {
 +
box-sizing: border-box;
 
}
 
}
  
Line 13: Line 17:
  
 
.cts__header--release {
 
.cts__header--release {
width: 4.5em;
+
width: 6.5em;
 
}
 
}
  
 
.cts__header--number {
 
.cts__header--number {
min-width: 6em;
+
min-width: 8em;
 
}
 
}
  
 
.cts__header--rarity {
 
.cts__header--rarity {
min-width: 7em;
+
min-width: 9em;
max-width: 12em;
+
max-width: 14em;
 
}
 
}
  

Latest revision as of 16:51, 20 March 2020

.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;
}