Add new Gen 8 misc sprites to the misc docs table using multiple <tbody> nodes

This commit is contained in:
Michiel Sikma
2020-03-21 17:27:22 +01:00
parent 2634634ff6
commit eb4ae7eecf
3 changed files with 53 additions and 21 deletions

View File

@@ -425,7 +425,8 @@
border-top: 1px solid var(--shade-5);
}
.markdown-body table tr:nth-child(2n) {
.markdown-body table tbody:not(.alternating) tr:nth-child(2n),
.markdown-body table tbody.alternating:nth-child(2n) tr {
background-color: var(--shade-2);
}

View File

@@ -32,6 +32,7 @@
/* The rest */
.markdown-body .pokesprite tr.header th {
text-align: left;
background-color: var(--shade-2);
}
.markdown-body .pokesprite tr.header th,
.markdown-body .pokesprite tr.header td {
@@ -52,7 +53,7 @@
.markdown-body .pokesprite tbody tr:hover td {
background: var(--shade-3);
}
.markdown-body .pokesprite tbody tr td[rowspan] {
.markdown-body .pokesprite tbody:not(.alternating) tr td[rowspan] {
background: var(--shade-0);
}
.markdown-body .pokesprite tbody tr td.group {
@@ -179,3 +180,8 @@
.markdown-body .pokesprite.gen8 tbody img.p {
margin: -18px 0 -4px 0;
}
.markdown-body .pokesprite tbody img.retina-ribbon-gen8 {
width: 32px;
height: 32px;
margin: 4px;
}