소스 검색

标签样式优化

sugar1569 2 년 전
부모
커밋
866f88e3aa

+ 5 - 5
template/admin/src/components/main/components/side-menu/side-menu.vue

@@ -350,7 +350,7 @@ export default {
     }
     }
   }
   }
   .child-menu {
   .child-menu {
-    z-index: 8;
+    z-index: 999;
     box-shadow: 2px 0px 4px 0px rgba(0, 0, 0, 0.06);
     box-shadow: 2px 0px 4px 0px rgba(0, 0, 0, 0.06);
     .child-menus {
     .child-menus {
       width: @side-child-width !important;
       width: @side-child-width !important;
@@ -390,13 +390,13 @@ export default {
     }
     }
     .cat-name {
     .cat-name {
       width: 100%;
       width: 100%;
-      font-size: 14px;
+      font-size: 16px;
       height: 50px;
       height: 50px;
       line-height: 16px;
       line-height: 16px;
       font-weight: 600;
       font-weight: 600;
-      color: #303133;
-      padding: 15px;
-      text-align: center;
+      color: #606266;
+      padding: 15px 23px;
+      text-align: left;
       border-bottom: 1px solid #f2f2f2;
       border-bottom: 1px solid #f2f2f2;
     }
     }
   }
   }

+ 14 - 12
template/admin/src/components/main/components/tags-nav/tags-nav.less

@@ -15,7 +15,7 @@
   background: unset;
   background: unset;
   width: 100%;
   width: 100%;
   margin: 0 15px 0 0px;
   margin: 0 15px 0 0px;
-  overflow: hidden;
+  //overflow: hidden;
   padding: 0;
   padding: 0;
   height: 42px;
   height: 42px;
   margin-bottom: 14px;
   margin-bottom: 14px;
@@ -24,7 +24,7 @@
 }
 }
 .tags-nav {
 .tags-nav {
   position: relative;
   position: relative;
-  margin-top: 4px;
+  //margin-top: 3px;
   // border-top: 1px solid #f0f0f0;
   // border-top: 1px solid #f0f0f0;
   // border-bottom: 1px solid #f0f0f0;
   // border-bottom: 1px solid #f0f0f0;
   .no-select;
   .no-select;
@@ -34,7 +34,7 @@
     right: 0;
     right: 0;
     top: 0;
     top: 0;
     height: 100%;
     height: 100%;
-    width: 32px;
+    width: 40px;
     background: #fff;
     background: #fff;
     text-align: center;
     text-align: center;
     z-index: 10;
     z-index: 10;
@@ -43,24 +43,26 @@
     position: absolute;
     position: absolute;
     top: 0px;
     top: 0px;
     height: 100%;
     height: 100%;
-    padding-top: 3px;
+    padding-top: 5px;
     z-index: 10;
     z-index: 10;
+    background-color: #fff;
     button {
     button {
-      padding: 6px 4px;
+      padding: 6px;
       line-height: 14px;
       line-height: 14px;
       text-align: center;
       text-align: center;
     }
     }
     &.left-btn {
     &.left-btn {
-      left: 1px;
+      border-right: 1px solid #f0f0f0;
     }
     }
     &.right-btn {
     &.right-btn {
-      right: 16px;
-      // border-right: 1px solid #f0f0f0;
+      right: 40px;
+       border-right: 1px solid #f0f0f0;
+       border-left: 1px solid #f0f0f0;
     }
     }
   }
   }
   .scroll-outer {
   .scroll-outer {
     position: absolute;
     position: absolute;
-    left: 8px;
+    left: 20px;
     right: 21px;
     right: 21px;
     top: 0;
     top: 0;
     bottom: 0;
     bottom: 0;
@@ -68,7 +70,7 @@
     .scroll-body {
     .scroll-body {
       height: ~'calc(100% - 1px)';
       height: ~'calc(100% - 1px)';
       display: inline-block;
       display: inline-block;
-      padding: 1px 20px 0 20px;
+      padding: 3px 20px 0 20px;
       position: absolute;
       position: absolute;
       overflow: visible;
       overflow: visible;
       white-space: nowrap;
       white-space: nowrap;
@@ -85,12 +87,12 @@
   .contextmenu {
   .contextmenu {
     position: absolute;
     position: absolute;
     margin: 0;
     margin: 0;
-    padding: 5px 0;
+    padding: 5px 0px;
     background: #fff;
     background: #fff;
     z-index: 1000;
     z-index: 1000;
     list-style-type: none;
     list-style-type: none;
     border-radius: 4px;
     border-radius: 4px;
-    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.1);
+    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.2);
     li {
     li {
       margin: 0;
       margin: 0;
       padding: 5px 15px;
       padding: 5px 15px;

+ 2 - 2
template/admin/src/components/main/components/tags-nav/tags-nav.vue

@@ -1,6 +1,6 @@
 <template>
 <template>
   <div class="tags-nav">
   <div class="tags-nav">
-    <!-- <div class="close-con">
+    <div class="close-con">
       <Dropdown transfer @on-click="handleTagsOption" style="margin-top: 7px">
       <Dropdown transfer @on-click="handleTagsOption" style="margin-top: 7px">
         <Button size="small" type="text">
         <Button size="small" type="text">
           <Icon :size="18" type="ios-close-circle-outline" />
           <Icon :size="18" type="ios-close-circle-outline" />
@@ -10,7 +10,7 @@
           <DropdownItem name="close-others">关闭其他</DropdownItem>
           <DropdownItem name="close-others">关闭其他</DropdownItem>
         </DropdownMenu>
         </DropdownMenu>
       </Dropdown>
       </Dropdown>
-    </div> -->
+    </div>
     <ul v-show="visible" :style="{ left: contextMenuLeft + 'px', top: contextMenuTop + 'px' }" class="contextmenu">
     <ul v-show="visible" :style="{ left: contextMenuLeft + 'px', top: contextMenuTop + 'px' }" class="contextmenu">
       <li v-for="(item, key) of menuList" @click="handleTagsOption(key)" :key="key">{{ item }}</li>
       <li v-for="(item, key) of menuList" @click="handleTagsOption(key)" :key="key">{{ item }}</li>
     </ul>
     </ul>