mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 16:46:14 -04:00
Add <tfoot> support
This commit is contained in:
parent
92c21aa1d4
commit
7f6ed9f5cb
24 changed files with 102 additions and 28 deletions
|
@ -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
2
css/pico.classless.min.css
vendored
2
css/pico.classless.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
12
css/pico.css
12
css/pico.css
|
@ -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
|
@ -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
2
css/pico.fluid.classless.min.css
vendored
2
css/pico.fluid.classless.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
2
css/pico.min.css
vendored
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
|
@ -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
2
css/pico.slim.min.css
vendored
2
css/pico.slim.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
|
@ -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
2
css/themes/default.min.css
vendored
2
css/themes/default.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
|
@ -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 @@
|
||||||
<<b>td</b>>Cell</<b>td</b>>
|
<<b>td</b>>Cell</<b>td</b>>
|
||||||
</<b>tr</b>>
|
</<b>tr</b>>
|
||||||
</<b>tbody</b>>
|
</<b>tbody</b>>
|
||||||
|
<<b>tfoot</b>>
|
||||||
|
<<b>tr</b>>
|
||||||
|
<<b>th</b> <i>scope</i>=<u>"col"</u>>#</<b>th</b>>
|
||||||
|
<<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>>
|
||||||
|
<<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>>
|
||||||
|
<<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>>
|
||||||
|
<<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>>
|
||||||
|
<<b>td</b> <i>scope</i>=<u>"col"</u>>Total</<b>td</b>>
|
||||||
|
</<b>tr</b>>
|
||||||
|
</<b>tfoot</b>>
|
||||||
</<b>table</b>></code></pre>
|
</<b>table</b>></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
|
@ -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"] {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue