「MediaWiki:Common.css」の版間の差分
ナビゲーションに移動
検索に移動
Vaccipedia.admin (トーク | 投稿記録) |
Vaccipedia.admin (トーク | 投稿記録) |
||
| (同じ利用者による、間の7版が非表示) | |||
| 1行目: | 1行目: | ||
/* ここに記述したCSSはすべての外装に反映されます */ | /* ここに記述したCSSはすべての外装に反映されます */ | ||
table.alternating th{ | table.alternating th{ | ||
| − | + | text-align:left; | |
| − | + | background:turquoise; | |
} | } | ||
table.alternating tr:nth-child(odd) td{ | table.alternating tr:nth-child(odd) td{ | ||
| − | padding-left: | + | padding-left:1em; |
| + | padding-right:0.5em; | ||
background:linear-gradient(0deg,lemonchiffon,white); | background:linear-gradient(0deg,lemonchiffon,white); | ||
} | } | ||
table.alternating tr:nth-child(even) td{ | table.alternating tr:nth-child(even) td{ | ||
| − | padding-left: | + | padding-left:1em; |
| + | padding-right:0.5em; | ||
background:linear-gradient(0deg,gainsboro,white); | background:linear-gradient(0deg,gainsboro,white); | ||
| + | } | ||
| + | |||
| + | table.rowsalternated td:nth-of-type(odd) { | ||
| + | background:ivory; | ||
| + | } | ||
| + | |||
| + | table.rowsalternated td:nth-of-type(even) { | ||
| + | background:aliceblue; | ||
} | } | ||
2021年9月19日 (日) 20:54時点における最新版
/* ここに記述した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) {
background:ivory;
}
table.rowsalternated td:nth-of-type(even) {
background:aliceblue;
}