Ver código fonte

化验辅检删除按钮位置调整

liucf 6 anos atrás
pai
commit
86bd4b8e32

+ 2 - 2
src/common/less/variables.less

@@ -45,8 +45,8 @@
 @dropdwon-height:200px;
 @selected-bg:#fff;
 @import-color:#ffad5f;
-@closeIcon:url(../images/del_nor.png);
-@closeHor:url(../images/del_hor.png);
+@closeIcon:url(../images/del_nor.png) no-repeat;
+@closeHor:url(../images/del_hor.png) no-repeat;
 
 /*********推送内容容器宽度*************/
 @push-width: 450px;

+ 8 - 6
src/components/AddAssistCheck/index.less

@@ -65,14 +65,15 @@
             } */
             .closeIcon{
               display: inline-block;
-              width: 15px;
-              height: 15px;
+              width: 25px;
+              height: 25px;
               cursor: pointer;
               position: absolute;
-              right: 3px;
-              top: 2px;
+              right: -3px;
+              top: -2px;
               background: @closeIcon;
-              background-size: 100% 100%;
+              background-size: 60% 60%;
+              background-position: center;
             }
             p{
                 display: inline-block;
@@ -101,7 +102,8 @@
       background:#F2F2F2;
       .closeIcon{
         background: @closeHor;
-        background-size: 100% 100%;
+        background-size: 60% 60%;
+        background-position: center;
       }
     }
 }

+ 9 - 7
src/components/AddInspect/SlideSelect/index.less

@@ -3,7 +3,7 @@
     // cursor: pointer;
     color: #767676;
     position: relative;
-    padding: 10px 10px 10px 0;
+    padding: 10px 20px 10px 0;
     border-bottom:1px dashed #989DA3;
     i {
         font-style: normal;
@@ -25,17 +25,18 @@
         vertical-align: top;
     } 
     .partDel {
-        width: 15px;
-        height: 15px;
+        width: 25px;
+        height: 25px;
         margin-bottom: 11px;
         cursor: pointer;
         display: inline-block;
         position: absolute;
-        right: 3px;
-        top: 13px;
+        right: -3px;
+        top: 9px;
         // background-color: #fff;
         background: @closeIcon;
-        background-size: 100% 100%;
+        background-size: 60% 60%;
+        background-position: center;
     }
 }
 .slideLi:hover{
@@ -43,7 +44,8 @@
     border-radius: 4px;
        .partDel{
         background: @closeHor;
-        background-size: 100% 100%;
+        background-size: 60% 60%;
+        background-position: center;
       } 
 }
 .staticTagActive {