From f67c8169bf70ae62f3e1602220a4f580dadcf5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WEB=E8=AE=B8=E4=BD=95=E5=93=B2=5Cxuhez?= Date: Thu, 24 Aug 2023 09:02:15 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9C=8B=E6=9D=BF?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_base/static/src/scss/test.scss | 95 ++++++++++++++++++++-- sf_maintenance/views/maintenance_views.xml | 23 ++++-- 2 files changed, 103 insertions(+), 15 deletions(-) diff --git a/sf_base/static/src/scss/test.scss b/sf_base/static/src/scss/test.scss index 3abd10e1..faef4815 100644 --- a/sf_base/static/src/scss/test.scss +++ b/sf_base/static/src/scss/test.scss @@ -8,27 +8,34 @@ white-space: nowrap; } -div:has(.o_required_modifier)>label::before { +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; - } -.my-image div { - width: 100px !important; - height: 130px !important; } + +.my-image div { + width: 110px !important; + height: 110px !important; +} + .add_flex { + padding: 5px 0; display: flex; flex-direction: column; + justify-content: space-between; } + .maintenance_name { font-weight: bold; } + .o_kanban_renderer .o_kanban_record .o_kanban_record_has_image_fill .o_kanban_image_fill_left { - flex:unset !important; + flex: unset !important; } + .o_kanban_renderer .o_kanban_record .o_kanban_record_bottom { margin-top: 5px; display: inline !important; @@ -36,4 +43,80 @@ div:has(.o_required_modifier)>label::before { td.o_required_modifier { display: table-cell !important; +} + +.show_state { + display: flex; + flex-direction: column; + position: absolute; + top: 0; + bottom: 0; + right: 8px; + margin: auto; + height: 34px; +} + +.show_state > div { + width: 12px; + height: 12px; + border: 1px solid #000 +} + +.show_state > div:nth-child(2) { + border-top: none; + border-bottom: none; +} + +.oe_kanban_card.kanban_color_2 { + background-color: #FF4343 !important; + color: #fff; +} + +.oe_kanban_card.kanban_color_1 { + background-color: #27FEA9 !important; + opacity: 0.7; + color: #fff; +} + +.oe_kanban_card.kanban_color_3 { + background-color: rgb(255, 150, 0) !important; + color: #fff; +} + +.my-image img { + width: 100%; + height: 100%; +} + +.color_1 { + background-color: #27FEA9; +} + +.color_2 { + background-color: #FF4343; +} + +.color_3 { + background-color: rgb(255, 150, 0); +} + +.font_color_1 { + color: rgb(0, 183, 0); +} + +.font_color_2 { + color: #FF4343; +} + +.font_color_3 { + color: rgb(255, 150, 0); +} + +.o_kanban_card_header_title { + font-size: 15px; +} + +.o_kanban_record_bottom { + font-family: '华文中宋'; + //font-weight: bold; } \ No newline at end of file diff --git a/sf_maintenance/views/maintenance_views.xml b/sf_maintenance/views/maintenance_views.xml index 5eeddc42..42fe663d 100644 --- a/sf_maintenance/views/maintenance_views.xml +++ b/sf_maintenance/views/maintenance_views.xml @@ -26,12 +26,12 @@ - 维保 + 维保 - 维保 + 维保 - +