From c3163ed333add9c08b19302d3a3ec198fe9be817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 19 Jun 2020 10:15:20 +0200 Subject: [PATCH] scss: introduce a public pk-important class for fields (#44251) --- help/fr/misc-css-classes.page | 5 +++++ static/includes/_library.scss | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/help/fr/misc-css-classes.page b/help/fr/misc-css-classes.page index 3f89e18e..6718f26a 100644 --- a/help/fr/misc-css-classes.page +++ b/help/fr/misc-css-classes.page @@ -78,6 +78,11 @@ de classes CSS réutilisables.

pk-hidden

Cache le champ (applicable uniquement aux champs de type « Liste »).

+ +

pk-important

+

Marque le champ comme étant particulièrement important, le rendu sera + généralement un libellé mis en gras.

+ diff --git a/static/includes/_library.scss b/static/includes/_library.scss index c000cb1e..52a24e77 100644 --- a/static/includes/_library.scss +++ b/static/includes/_library.scss @@ -94,3 +94,10 @@ table.pk-data-table { } } } + +.pk-important { + // on form fields, turn the label bold. + &.widget .title label { + font-weight: bold; + } +}