0001-scss-add-style-to-have-alternate-row-backgrounds-in-.patch
help/fr/misc-css-classes.page | ||
---|---|---|
107 | 107 |
<td><p><code>pk-error</code></p></td> |
108 | 108 |
<td><p>Marque le champ commentaire avec le style de bloc d’erreur.</p></td> |
109 | 109 |
</tr> |
110 |
<tr> |
|
111 |
<td><p><code>pk-blocks-zebra</code></p></td> |
|
112 |
<td><p>Alterne les couleurs de fond des lignes des blocs de champs.</p></td> |
|
113 |
</tr> |
|
110 | 114 |
</table> |
111 | 115 |
</section> |
112 | 116 |
static/includes/wcs/_bulk.scss | ||
---|---|---|
768 | 768 |
} |
769 | 769 |
} |
770 | 770 |
} |
771 | ||
772 |
.pk-blocks-zebra { |
|
773 |
// add a gray background for even numbered blocks, but that means odd |
|
774 |
// childs when the first child is an error. |
|
775 |
.error ~ .BlockSubWidget:nth-child(odd), |
|
776 |
.BlockSubWidget:first-child ~ .BlockSubWidget:nth-child(even) { |
|
777 |
background: hsla(0, 0%, 0%, 0.05); |
|
778 |
box-shadow: -0.5em -0.5em 0 .5em hsla(0, 0%, 0%, 0.05); |
|
779 |
} |
|
780 |
} |
|
771 |
- |