「MediaWiki:Common.css」の版間の差分

提供: Vaccipedia | Resources for Vaccines, Tropical medicine and Travel medicine
ナビゲーションに移動 検索に移動
16行目: 16行目:
 
}
 
}
  
table.rowsalternated tr:nth-of-type(odd) td{
+
table.rowsalternated td:nth-of-type(odd) td{
 
background:ivory;
 
background:ivory;
 
}
 
}
  
table.rowsalternated tr:nth-of-type(even) td{
+
table.rowsalternated td:nth-of-type(even) td{
 
background:aliceblue;
 
background:aliceblue;
 
}
 
}

2021年9月19日 (日) 20:52時点における版

/* ここに記述したCSSはすべての外装に反映されます */
table.alternating th{
	text-align:left;
	background:turquoise;
}
table.alternating tr:nth-child(odd) td{
	padding-left:1em;
	padding-right:0.5em;
	background:linear-gradient(0deg,lemonchiffon,white);
}

table.alternating tr:nth-child(even) td{
	padding-left:1em;
	padding-right:0.5em;
	background:linear-gradient(0deg,gainsboro,white);
}

table.rowsalternated td:nth-of-type(odd) td{
	background:ivory;
}

table.rowsalternated td:nth-of-type(even) td{
	background:aliceblue;
}