diff --git a/help/fr/misc-css-classes.page b/help/fr/misc-css-classes.page index 8acc29cc..8023f921 100644 --- a/help/fr/misc-css-classes.page +++ b/help/fr/misc-css-classes.page @@ -107,6 +107,10 @@ de classes CSS réutilisables.

pk-error

Marque le champ commentaire avec le style de bloc d’erreur.

+ +

pk-blocks-zebra

+

Alterne les couleurs de fond des lignes des blocs de champs.

+ diff --git a/static/includes/wcs/_bulk.scss b/static/includes/wcs/_bulk.scss index c46f3f07..097c37e1 100644 --- a/static/includes/wcs/_bulk.scss +++ b/static/includes/wcs/_bulk.scss @@ -768,3 +768,13 @@ div.section.foldable { } } } + +.pk-blocks-zebra { + // add a gray background for even numbered blocks, but that means odd + // childs when the first child is an error. + .error ~ .BlockSubWidget:nth-child(odd), + .BlockSubWidget:first-child ~ .BlockSubWidget:nth-child(even) { + background: hsla(0, 0%, 0%, 0.05); + box-shadow: -0.5em -0.5em 0 .5em hsla(0, 0%, 0%, 0.05); + } +}