From d22a920b1b146e5336932b2489c1b755f8ab9491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E5=BC=BA?= <2997723368@qq.com> Date: Thu, 28 Dec 2023 17:52:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E4=B8=8E=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.tsx | 2 + src/modelstyle.css | 149 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 151 insertions(+) create mode 100644 src/modelstyle.css diff --git a/src/app.tsx b/src/app.tsx index 84f771f..1ba0170 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -13,9 +13,11 @@ import { history, Link } from 'umi'; import { BookOutlined, LinkOutlined } from '@ant-design/icons'; import defaultSettings from '../config/defaultSettings'; import iconStyle from '../public/樽海鞘_图案.svg'; +import './modelstyle.css'; import { getRoutersInfo, getUserInfo } from './services/session'; const isDev = process.env.NODE_ENV === 'development'; const loginPath = '/user/login'; + /** 获取用户信息比较慢的时候会展示一个 loading */ export const initialStateConfig = { loading: , diff --git a/src/modelstyle.css b/src/modelstyle.css new file mode 100644 index 0000000..5f83680 --- /dev/null +++ b/src/modelstyle.css @@ -0,0 +1,149 @@ +body .ant-layout{ + background: #fff; +} + +/*ant-btn*/ +body .ant-btn:focus, +body .ant-btn:hover { + color: #2B50C4; + border-color: #2B50C4; + background: #fff; +} +body .ant-btn:active { + color:#042281; + border-color:#042281; + background:#fff +} +body .ant-btn-primary { + color: #fff; + border-color: #233A82; + background: #233A82; +} +body .ant-btn-primary:focus, +body .ant-btn-primary:hover { + color: #fff; + border-color: #2B50C4; + background: #2B50C4; +} +body .ant-btn-primary:active { + color: #fff; + border-color: #042281; + background: #042281; +} +html { +--antd-wave-shadow-color:#233A82 !important; +} + + +body .ant-input:hover { + border-color: #233A82; +} +body .ant-input-affix-wrapper-focused, +body .ant-input-affix-wrapper:focus { + border-color:#233A82; + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} +body .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused, +body .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus { + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} +body .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper-focused, +body .ant-input-affix-wrapper-status-warning:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:focus { + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} +body .ant-input-search-rtl>.ant-input-group>.ant-input-affix-wrapper-focused, +body .ant-input-search-rtl>.ant-input-group>.ant-input-affix-wrapper:hover { + border-right-color:#233A82; +} +body .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover { + border-color: #233A82; +} + +body .ant-select:not(.ant-select-disabled):hover .ant-select-selector { + border-color: #233A82; +} +body .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector, +body .ant-select-status-error.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector { + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} +body .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-focused .ant-select-selector, +body .ant-select-status-warning.ant-select:not(.ant-select-disabled):not(.ant-select-customize-input):not(.ant-pagination-size-changer).ant-select-open .ant-select-selector { + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} +body .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector { + border-color:#233A82; + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} +body .ant-input-group-addon .ant-select-focused .ant-select-selector, +body .ant-input-group-addon .ant-select-open .ant-select-selector { + color:#233A82; +} + +body .namediv:hover { + color: #233A82; +} + +body .ant-select-item-option-selected:not(.ant-select-item-option-disabled) { + color: #1d2129; + background: #e9ecf4; +} +body .ant-select-item-option-selected:hover{ + background: #e9ecf4; +} +body .ant-select-item-option-selected:not(.ant-select-item-option-disabled) .ant-select-item-option-state { + color: #233a82; +} + + +body .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused, +body .ant-input-status-warning:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus { + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} + + +body .ant-input-affix-wrapper-focused, +body .ant-input-affix-wrapper:focus { + border-color:#233a82; + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} +body .ant-input-focused, +body .ant-input:focus { + border-color:#233a82; + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} +body .ant-pagination-options-quick-jumper input-focused, +body .ant-pagination-options-quick-jumper input:focus { + border-color:#233a82; + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} +body .ant-pagination-simple .ant-pagination-simple-pager input:focus { + border-color:#233a82; + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} + +body .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input-focused, +body .ant-input-status-error:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus { + box-shadow:0 0 0 2px rgba(35, 58, 130, .2); +} + +body .spandes:hover{ + color:#233a82; +} +body .cardstyle:hover .deletestyle:hover { + color: #233a82; +} + +body .ant-pagination-item-active { + border-color: #233a82; +} +body .ant-pagination-item:hover a { + color: #233a82; +} +body .ant-pagination-item:hover { + border-color: #233a82; +} +body .ant-pagination-next:hover .ant-pagination-item-link, +body .ant-pagination-prev:hover .ant-pagination-item-link { + color: #233a82; + border-color: #233a82; +} \ No newline at end of file