From 9c6795fd3c44e46cf3955fbfd8f8eeca23acb7a9 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 08 十月 2022 00:31:51 +0800
Subject: [PATCH] 2022-10-08

---
 src/components/header/index.scss |  145 ++++++++++++++++++++++++++++++++----------------
 1 files changed, 96 insertions(+), 49 deletions(-)

diff --git a/src/components/header/index.scss b/src/components/header/index.scss
index 62bde22..0c8a8d0 100644
--- a/src/components/header/index.scss
+++ b/src/components/header/index.scss
@@ -1,14 +1,14 @@
 .header-container {
   position: fixed;
-  z-index: 1060;
+  z-index: 20;
   left: 0;
   top: 0;
   font-weight: bold!important;
   width: 100%;
   height: 48px;
+  display: flex;
 
   .header-logo {
-    float: left;
     width: 180px;
     line-height: 48px;
     text-align: center;
@@ -28,14 +28,13 @@
   }
 
   .header-collapse {
-    float: left;
     width: 35px;
     min-height: 48px;
     line-height: 48px;
     padding-left: 10px;
     margin: 0 10px;
     transition: padding-left 0.15s;
-    i {
+    .anticon {
       cursor: pointer;
       position: relative;
       top: 3px;
@@ -48,13 +47,17 @@
     padding-left: 20px;
   }
   .header-menu {
-    float: left;
     margin: 0;
+    min-height: 20px;
     line-height: 48px;
+    flex: 1;
+    overflow-x: auto;
+    overflow-y: hidden;
+    white-space: nowrap;
     li {
-      float: left;
       font-size: 1.3rem;
       cursor: pointer;
+      display: inline-block;
       span {
         padding: 0 10px;
         height: 42px;
@@ -75,24 +78,30 @@
       }
     }
   }
-  .header-vertical-menu {
-    float: left;
-    margin: 0;
-    line-height: 48px;
-    background: transparent;
-    .ant-menu-submenu {
-      border-bottom: 0!important;
-    }
+  .header-menu.vertical-menu {
     >li {
-      >.ant-menu-submenu-title {
-        color: rgba(255, 255, 255, 0.85);
-        font-size: 1.3rem;
+      >span {
+        border-color: transparent!important;
       }
     }
   }
 
+  .header-menu::-webkit-scrollbar {
+    height: 5px;
+  }
+  .header-menu::-webkit-scrollbar-thumb {
+    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.13);
+    background: rgba(0, 0, 0, 0.13);
+    border-radius: 5px;
+  }
+  .header-menu::-webkit-scrollbar-track {
+    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
+    border: 1px solid rgba(0, 0, 0, 0.07);
+    background: rgba(0, 0, 0, 0);
+    border-radius: 3px;
+  }
+
   .header-setting {
-    float: right;
     line-height: 48px;
     margin-right: 10px;
     img {
@@ -105,34 +114,31 @@
       color: #ffffff;
       font-size: 0.95rem;
       .username {
+        vertical-align: middle;
         display: inline-block;
-        height: 30px;
-        max-width: 95px;
-        overflow: hidden;
-        text-overflow: ellipsis;
-        white-space: nowrap;
+        span {
+          display: block;
+          line-height: 15px;
+          padding: 0 3px;
+          font-size: 0.95rem;
+          max-width: 100px;
+          overflow: hidden;
+          text-overflow: ellipsis;
+          white-space: nowrap;
+        }
+        span + span {
+          font-size: 12px;
+        }
       }
     }
   }
-  .edit-check {
-    font-size: 18px;
-    margin-top: 14px;
-    margin-left: 10px;
-    cursor: pointer;
-  }
+
   .search-menu {
-    float: right;
     font-size: 18px;
     margin-top: 17px;
     margin-right: 20px;
+    margin-left: 10px;
     cursor: pointer;
-  }
-  .level4-close {
-    position: relative;
-    top: 13px;
-    left: 20px;
-    height: 26px;
-    padding: 0 10px;
   }
   .menu-select-dropdown {
     top: 48px!important;
@@ -177,18 +183,6 @@
       background: rgba(0, 0, 0, 0);
     }
   }
-  .mobile {
-    position: absolute;
-    top: 135px;
-    right: 50px;
-    color: #1890ff;
-  }
-  .home-edit {
-    position: absolute;
-    top: 100px;
-    right: 50px;
-    color: #1890ff;
-  }
 }
 .header-dropdown {
   >li {
@@ -201,3 +195,56 @@
     }
   }
 }
+.ant-dropdown.vertical-dropdown-menu {
+  z-index: 1100 !important;
+}
+
+.vertical-dropdown-menu, .vertical-dropdown-submenu {
+  ul.ant-dropdown-menu {
+    min-width: 125px;
+  }
+  .ant-dropdown-menu-submenu-title {
+    padding-right: 30px;
+  }
+}
+.menu-board {
+  background: #ffffff;
+  padding: 20px 50px;
+  border-radius: 4px;
+  box-shadow: 0 0 3px #959595;
+  position: relative;
+  // left: 11.8%;
+  .menu-wrap {
+    .title {
+      color: #1890ff;
+      font-size: 15px;
+      font-weight: 600;
+    }
+    .menu-detail {
+      max-width: 60vw;
+      padding: 5px 0 5px 15px;
+      div {
+        // float: left;
+        display: inline-block;
+        vertical-align: top;
+        margin-bottom: 8px;
+        width: 120px;
+        // overflow: hidden;
+        // white-space: nowrap;
+        // text-overflow: ellipsis;
+        cursor: pointer;
+      }
+      div:hover {
+        color: #40a9ff;
+      }
+      div:not(:last-child) {
+        margin-right: 15px;
+      }
+    }
+    .menu-detail::after {
+      content: ' ';
+      display: block;
+      clear: both;
+    }
+  }
+}
\ No newline at end of file

--
Gitblit v1.8.0