scss: extend table classes to work on cards cells (#69006)

This commit is contained in:
Frédéric Péters 2022-09-13 11:03:57 +02:00
parent 1f006062b0
commit 0355417a48
2 changed files with 8 additions and 5 deletions

View File

@ -150,7 +150,10 @@ de classes CSS réutilisables.
<tr>
<td><p><code>pk-data-table</code></p></td>
<td><p>Applique un style commun de présentation au tableau, obligatoire
pour que les autres styles de tableau prennent effet.</p></td>
pour que les autres styles de tableau prennent effet. Cela concerne les
balises &lt;table&gt;, la classe nest pas nécessaire pour laffichage de
fiches sous forme de tableau.
</p></td>
</tr>
<tr>
<td><p><code>pk-table-headers</code></p></td>

View File

@ -91,7 +91,7 @@ table.pk-data-table {
}
}
.pk-table-headers {
&.pk-data-table {
&.pk-data-table, .pk-data-table {
thead th {
background: $table-headers-background;
color: $table-headers-color;
@ -103,7 +103,7 @@ table.pk-data-table {
}
}
.pk-table-borders {
&.pk-data-table {
&.pk-data-table, .pk-data-table {
th, td {
border: 1px solid #aaa;
}
@ -113,7 +113,7 @@ table.pk-data-table {
}
}
.pk-table-center {
&.pk-data-table {
&.pk-data-table, .pk-data-table {
th, td {
text-align: center;
}
@ -121,7 +121,7 @@ table.pk-data-table {
}
.pk-table-🦓,
.pk-table-zebra {
&.pk-data-table {
&.pk-data-table, .pk-data-table {
tbody tr:nth-child(2n+1) {
background: rgba(0, 0, 0, 0.065);
}