From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化

---
 src/styles/top.scss |   42 ++++++++++++++++++++++++++----------------
 1 files changed, 26 insertions(+), 16 deletions(-)

diff --git a/src/styles/top.scss b/src/styles/top.scss
index a3f9b81..87a72b1 100644
--- a/src/styles/top.scss
+++ b/src/styles/top.scss
@@ -1,4 +1,5 @@
 $height:64px;
+
 .avue-top {
     padding: 0 20px;
     position: relative;
@@ -9,40 +10,46 @@
     line-height: $height;
     box-sizing: border-box;
     white-space: nowrap;
-    .el-menu-item{
-        i,span{
+
+    .el-menu-item {
+
+        i,
+        span {
             font-size: 13px;
         }
     }
+
     .el-menu--horizontal>.el-menu-item {
-      height: $height;
-      line-height: $height;
+        height: $height;
+        line-height: $height;
     }
 }
+
 .avue-breadcrumb {
     height: 100%;
-    i{
+
+    i {
         font-size: 30px !important;
     }
+
     &--active {
-        transform:rotate(90deg);
+        transform: rotate(90deg);
     }
 }
 
 .top-menu {
     box-sizing: border-box;
+
     .el-menu-item {
         padding: 0 10px;
-        border:none !important;
+        border: none !important;
     }
 }
 
 .top-search {
     line-height: $height;
-    position: absolute !important;
-    left: 20px;
-    top:0;
     width: 400px !important;
+
     .el-input__inner {
         font-size: 13px;
         border: none;
@@ -66,7 +73,8 @@
     height: $height;
     position: absolute;
     top: 0;
-    i{
+
+    i {
         line-height: $height;
     }
 }
@@ -85,24 +93,26 @@
     position: relative;
     display: inline-block;
     height: $height;
-    margin:0 10px;
+    margin: 0 10px;
     font-size: 16px;
+
     &--show {
         display: inline-block !important;
     }
-    .el-badge__content.is-fixed{
-        top:12px;
+
+    .el-badge__content.is-fixed {
+        top: 12px;
         right: 5px;
     }
 }
 
 .top-bar__title {
     height: 100%;
-    padding:0 40px;
+    padding: 0 40px;
     box-sizing: border-box;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
     font-size: inherit;
     font-weight: 400;
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3