Add <tfoot> support

This commit is contained in:
Lucas Larroche 2021-12-31 17:01:01 +07:00
parent 92c21aa1d4
commit 7f6ed9f5cb
24 changed files with 102 additions and 28 deletions

View file

@ -168,11 +168,13 @@ h5 {
} }
thead th, thead th,
thead td { thead td,
tfoot th,
tfoot td {
--border-width: 3px; --border-width: 3px;
} }
:not(thead) > * > td { :not(thead):not(tfoot) > * > td {
--font-size: 0.875em; --font-size: 0.875em;
} }
@ -1663,6 +1665,12 @@ td {
text-align: start; text-align: start;
} }
tfoot th,
tfoot td {
border-top: var(--border-width) solid var(--table-border-color);
border-bottom: 0;
}
table[role=grid] tbody tr:nth-child(odd) { table[role=grid] tbody tr:nth-child(odd) {
background-color: var(--table-row-stripped-background-color); background-color: var(--table-row-stripped-background-color);
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -173,11 +173,13 @@ h5 {
} }
thead th, thead th,
thead td { thead td,
tfoot th,
tfoot td {
--border-width: 3px; --border-width: 3px;
} }
:not(thead) > * > td { :not(thead):not(tfoot) > * > td {
--font-size: 0.875em; --font-size: 0.875em;
} }
@ -1850,6 +1852,12 @@ td {
text-align: start; text-align: start;
} }
tfoot th,
tfoot td {
border-top: var(--border-width) solid var(--table-border-color);
border-bottom: 0;
}
table[role=grid] tbody tr:nth-child(odd) { table[role=grid] tbody tr:nth-child(odd) {
background-color: var(--table-row-stripped-background-color); background-color: var(--table-row-stripped-background-color);
} }

File diff suppressed because one or more lines are too long

View file

@ -168,11 +168,13 @@ h5 {
} }
thead th, thead th,
thead td { thead td,
tfoot th,
tfoot td {
--border-width: 3px; --border-width: 3px;
} }
:not(thead) > * > td { :not(thead):not(tfoot) > * > td {
--font-size: 0.875em; --font-size: 0.875em;
} }
@ -1633,6 +1635,12 @@ td {
text-align: start; text-align: start;
} }
tfoot th,
tfoot td {
border-top: var(--border-width) solid var(--table-border-color);
border-bottom: 0;
}
table[role=grid] tbody tr:nth-child(odd) { table[role=grid] tbody tr:nth-child(odd) {
background-color: var(--table-row-stripped-background-color); background-color: var(--table-row-stripped-background-color);
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
css/pico.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -105,11 +105,13 @@ h5 {
} }
thead th, thead th,
thead td { thead td,
tfoot th,
tfoot td {
--border-width: 3px; --border-width: 3px;
} }
:not(thead) > * > td { :not(thead):not(tfoot) > * > td {
--font-size: 0.875em; --font-size: 0.875em;
} }
@ -1393,6 +1395,12 @@ td {
text-align: start; text-align: start;
} }
tfoot th,
tfoot td {
border-top: var(--border-width) solid var(--table-border-color);
border-bottom: 0;
}
table[role=grid] tbody tr:nth-child(odd) { table[role=grid] tbody tr:nth-child(odd) {
background-color: var(--table-row-stripped-background-color); background-color: var(--table-row-stripped-background-color);
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -169,11 +169,13 @@ h5 {
} }
thead th, thead th,
thead td { thead td,
tfoot th,
tfoot td {
--border-width: 3px; --border-width: 3px;
} }
:not(thead) > * > td { :not(thead):not(tfoot) > * > td {
--font-size: 0.875em; --font-size: 0.875em;
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -58,6 +58,16 @@
<td>Cell</td> <td>Cell</td>
</tr> </tr>
</tbody> </tbody>
<tfoot>
<tr>
<th scope="row">#</th>
<td>Total</td>
<td>Total</td>
<td>Total</td>
<td>Total</td>
<td>Total</td>
</tr>
</tfoot>
</table> </table>
</figure> </figure>
@ -98,6 +108,16 @@
&lt;<b>td</b>>Cell&lt;/<b>td</b>&gt; &lt;<b>td</b>>Cell&lt;/<b>td</b>&gt;
&lt;/<b>tr</b>&gt; &lt;/<b>tr</b>&gt;
&lt;/<b>tbody</b>&gt; &lt;/<b>tbody</b>&gt;
&lt;<b>tfoot</b>&gt;
&lt;<b>tr</b>&gt;
&lt;<b>th</b> <i>scope</i>=<u>"col"</u>&gt;#&lt;/<b>th</b>&gt;
&lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
&lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
&lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
&lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
&lt;<b>td</b> <i>scope</i>=<u>"col"</u>&gt;Total&lt;/<b>td</b>&gt;
&lt;/<b>tr</b>&gt;
&lt;/<b>tfoot</b>&gt;
&lt;/<b>table</b>&gt;</code></pre> &lt;/<b>table</b>&gt;</code></pre>
<p><code><i>role</i>=<u>"grid"</u></code> enable striped rows.</p> <p><code><i>role</i>=<u>"grid"</u></code> enable striped rows.</p>

File diff suppressed because one or more lines are too long

View file

@ -33,6 +33,15 @@ td {
text-align: start; text-align: start;
} }
// Footer
tfoot {
th,
td {
border-top: var(--border-width) solid var(--table-border-color);
border-bottom: 0;
}
}
// Striped // Striped
table { table {
&[role="grid"] { &[role="grid"] {

View file

@ -211,14 +211,15 @@ h5 {
} }
// Table // Table
thead { thead,
tfoot {
th, th,
td { td {
--border-width: 3px; --border-width: 3px;
} }
} }
:not(thead) > * > td { :not(thead):not(tfoot) > * > td {
--font-size: 0.875em; --font-size: 0.875em;
} }