From 7ea997219bd9c5796f618545309b63b375881e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?WEB=E8=AE=B8=E4=BD=95=E5=93=B2=5Cxuhez?= Date: Tue, 5 Sep 2023 17:22:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9sf=E7=9A=84css=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E9=9B=86=E4=B8=AD=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jikimo_frontend/__init__.py | 0 jikimo_frontend/__manifest__.py | 32 ++++ .../static/src/scss/custom_style.scss | 151 ++++++++++++++++++ 3 files changed, 183 insertions(+) create mode 100644 jikimo_frontend/__init__.py create mode 100644 jikimo_frontend/__manifest__.py create mode 100644 jikimo_frontend/static/src/scss/custom_style.scss diff --git a/jikimo_frontend/__init__.py b/jikimo_frontend/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/jikimo_frontend/__manifest__.py b/jikimo_frontend/__manifest__.py new file mode 100644 index 00000000..7c17b18a --- /dev/null +++ b/jikimo_frontend/__manifest__.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. +{ + 'name': '机企猫智能工厂 样式调整', + 'version': '1.0', + 'summary': '机企猫智能工厂 样式调整', + 'sequence': 1, + 'description': """ +在本模块,定义了样式的修改 + """, + 'category': 'sf', + 'website': 'https://www.sf.jikimo.com', + 'depends': ['account', 'base', 'mrp_workorder', 'sale'], + 'data': [ + + ], + 'demo': [ + ], + 'assets': { + + 'web.assets_qweb': [ + ], + 'web.assets_backend': [ + 'jikimo_frontend/static/src/scss/test.scss', + ], + + }, + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/jikimo_frontend/static/src/scss/custom_style.scss b/jikimo_frontend/static/src/scss/custom_style.scss new file mode 100644 index 00000000..a9f2cee8 --- /dev/null +++ b/jikimo_frontend/static/src/scss/custom_style.scss @@ -0,0 +1,151 @@ +.test_model { + display: flex !important; +} + +.test_model > .o_form_label { + margin-left: 20px; + margin-right: 0px !important; + white-space: nowrap; +} + +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: 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; +} + +.o_kanban_renderer .o_kanban_record .o_kanban_record_bottom { + margin-top: 5px; + display: inline !important; +} + +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; +} + +.text-truncate { + overflow: unset !important; + text-overflow: unset !important; + white-space: unset !important; +} + +.o_list_renderer .o_list_table tbody > tr > td:not(.o_list_record_selector):not(.o_handle_cell):not(.o_list_button):not(.o_list_record_remove) { + white-space: nowrap !important; +} + +.o_status { + width: 18px; + height: 18px; +} + +.czyg { + font-size: 12px; + margin-right: 10px; + color: #aaa; +} + +.o_kanban_primary_left { + display: flex; + flex-direction: row-reverse; + justify-content: flex-start; +} + +//----------------------------------------------------------- \ No newline at end of file