Kaynağa Gözat

检测 上传 修改文件

sophieChenyx 6 yıl önce
ebeveyn
işleme
8a15c83060

+ 1 - 0
.eslintignore

@@ -0,0 +1 @@
+/src/layouts/BasicLayout.js

+ 1 - 1
.gitignore

@@ -5,7 +5,7 @@
 # roadhog-api-doc ignore
 /src/utils/request-temp.js
 _roadhog-api-doc
-
+.eslintignore
 # production
 /dist
 

BIN
src/assets/logo.png


+ 1 - 1
src/components/AXUpload/index.less

@@ -5,7 +5,7 @@
   :global {
     .anticon {
       font-size: 35px;
-      color: @primary-5;
+      color: #faad14;
     }
   }
 }

+ 5 - 6
src/components/GlobalHeader/index.less

@@ -1,13 +1,12 @@
 @import "~antd/lib/style/themes/default.less";
 @ease-in-out-circ: cubic-bezier(.78, .14, .15, .86);
 
-@hover-bg: #2a2f32;
+@hover-bg: #ffe58f;
 
 .header {
   height: 50px;
   padding: 0;
-  background: #373d41;
-  box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
+  background: #f49b13;
   position: relative;
 }
 
@@ -45,14 +44,14 @@ i.trigger {
   height: 50px;
   width: 50px;
   line-height: 50px;
-  color: #aeb9c2;
+  color: #000;
   font-size: 20px;
   cursor: pointer;
   transition: all .3s, padding 0s;
   padding: 0;
   border-right: 1px solid @hover-bg;
   &:hover {
-    color: #fff;
+    color: #ccc;
     background: @hover-bg;
   }
 }
@@ -87,7 +86,7 @@ i.trigger {
     > i {
       font-size: 20px;
       vertical-align: middle;
-      color: #fff;
+      color: #000;
     }
     &:hover {
       background: @hover-bg;

+ 16 - 9
src/components/SiderMenu/index.less

@@ -7,19 +7,24 @@
   position: relative;
   z-index: 10;
   overflow: auto;
-  background: #333744;
+  background: #f9fafc;
+  color: #444358 !important;
   :global {
     .drawer .drawer-content {
-      background: #001529;
+      background: #f9fafc;
+      color: #000 !important;
     }
     .ant-menu-dark {
-      background: #4a5064;
+      background: #f9fafc;
+      color: #000 !important;
     }
     .ant-menu-dark .ant-menu-inline.ant-menu-sub {
-      background: #333743;
+      background: #f4f5f5;
+      color: #777 !important;
     }
     .ant-menu.ant-menu-dark .ant-menu-item-selected {
-      background-color: #00c1de !important;
+      background-color: #f4f5f5 !important;
+      color: #000 !important;
     }
     .ant-menu-inline .ant-menu-item {
       margin: 0;
@@ -28,7 +33,7 @@
     .ant-menu-inline-collapsed .ant-menu-item {
       padding: 0 16px !important;
       span {
-        opacity: 0;
+        opacity: 1;
       }
     }
   }
@@ -38,14 +43,16 @@
   .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
     padding: 0 16px !important;
     .realbull + span {
-      opacity: 0;
+      opacity: 1;
     }
   }
   .ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {
-    background-color: #00c1de !important;
+    background-color: #f4f4f5 !important;
+    color: #000 !important;
   }
   .ant-menu-dark .ant-menu-sub {
-    background: #333743;
+    background: #f9fafc;
+    color: #000 !important;
   }
   .ant-menu-vertical .ant-menu-item {
     margin-top: 0;

+ 1 - 1
src/layouts/BasicLayout.js

@@ -14,7 +14,7 @@ import { Hotax } from '../utils/config';
 import { getRoutes } from '../utils/utils';
 import Authorized from '../utils/Authorized';
 import { getMenuData } from '../common/menu';
-import logo from '../assets/logo.jpg';
+import logo from '../assets/logo.png';
 
 const { Content, Header } = Layout;
 const { AuthorizedRoute } = Authorized;

+ 1 - 1
src/layouts/UserLayout.js

@@ -4,7 +4,7 @@ import DocumentTitle from 'react-document-title';
 import { Icon } from 'antd';
 import styles from './UserLayout.less';
 import GlobalFooter from '../components/GlobalFooter';
-import logo from '../assets/logo.jpg';
+import logo from '../assets/logo.png';
 import { getRoutes } from '../utils/utils';
 import { Hotax } from '../utils/config';
 

+ 11 - 4
src/theme.js

@@ -1,7 +1,14 @@
 // https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less
 module.exports = {
-  'primary-color': '#09c',
-  'border-radius-base': '0',
-  'font-family': '"Helvetica Neue", Helvetica, Arial, sans-serif',
-  'table-header-bg': '#f5f6fa',
+  'primary-color': '#faad14',
+  // 'border-radius-base': '0',
+  // 'font-family': '"Helvetica Neue", Helvetica, Arial, sans-serif',
+  'table-header-bg': '#ffe58f',
+  'font-size-base': '14px',
+  'badge-font-size': '12px',
+  'btn-font-size-lg': '@font-size-base',
+  'menu-dark-bg': '#faad14',
+  'menu-dark-submenu-bg': '#613400',
+  'layout-sider-background': '#faad14',
+  'layout-body-background': '#f0f2f5',
 };