From 1747f38bcad336c4f3a84a7c3096e1248e0c811f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WEB=E8=AE=B8=E4=BD=95=E5=93=B2=5Cxuhez?= Date: Wed, 16 Aug 2023 11:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=85=E5=A1=AB=E5=AD=97=E6=AE=B5label?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=98=9F=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_base/static/src/scss/test.scss | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/sf_base/static/src/scss/test.scss b/sf_base/static/src/scss/test.scss index e351acc2..24d638e3 100644 --- a/sf_base/static/src/scss/test.scss +++ b/sf_base/static/src/scss/test.scss @@ -1,15 +1,22 @@ .test_model { display: flex !important; } -.test_model>.o_form_label { + +.test_model > .o_form_label { margin-left: 20px; margin-right: 0px !important; white-space: nowrap; } -.o_form_label.o_field_invalid::after { + +div:has(.o_required_modifier)>label::before { content: '*' !important; color: red !important; padding: 0 4px !important; vertical-align: top !important; font-size: 1.5rem !important; - } \ No newline at end of file + display: inline !important; +} + +.o_required_modifier { + display: flex !important; +} \ No newline at end of file