浏览代码

样式格式修改

zhaojijng 2 年之前
父节点
当前提交
d17e745981

+ 5 - 6
src/assets/css/map.less

@@ -29,11 +29,10 @@
       font-size: 25px;
       background: #fff;
       border-radius: 4px;
-
       cursor: pointer;
     }
     .zoom:hover {
-      box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 4px 15px rgba(0, 0, 0, 0.05);
+      box-shadow: 0 0 2px rgba(0, 0, 0, 0.05), 0 4px 15px rgba(0, 0, 0, 0.05);
     }
     .zoom.disable {
       opacity: 0.4;
@@ -88,7 +87,7 @@
         width: 22px;
         height: 22px;
         margin-right: 3px;
-        color: #ffffff;
+        color: #fff;
         font-size: 11px;
         background: transparent;
         border-radius: 22px;
@@ -121,10 +120,10 @@
         box-sizing: border-box;
         width: 100%;
         padding: 0 3px;
-        color: #000000;
+        color: #000;
         font-size: 13px;
         text-align: center;
-        //text-shadow: 1px 1px 1px #ffffff;
+        //text-shadow: 1px 1px 1px #fff;
         text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
       }
     }
@@ -164,7 +163,7 @@
       width: 22px;
       height: 22px;
       font-size: 12px;
-      background: #ffffff;
+      background: #fff;
       border-radius: 22px;
     }
     &:hover .showModal {

+ 1 - 1
src/layouts/index.less

@@ -29,7 +29,7 @@
   height: 75px;
   padding: 15px 0 20px 0;
   .title {
-    color: #000000;
+    color: #000;
     font-weight: 600;
     font-size: 24px;
   }

+ 1 - 1
src/pages/Environment/components/chartModal/index.less

@@ -39,7 +39,7 @@
     font-size: 20px;
   }
   .content {
-    padding: 0px 50px;
+    padding: 0 50px;
 
     .navigator {
       display: flex;

+ 1 - 2
src/pages/Equipment/components/deviceModal/airEq/index.less

@@ -3,7 +3,7 @@
   margin-bottom: 15px;
   background: hsl(0, 0%, 100%);
   border-radius: 25px;
-  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.07), 0px 4px 10px rgba(0, 0, 0, 0.05);
+  box-shadow: 0 0 2px rgba(0, 0, 0, 0.07), 0 4px 10px rgba(0, 0, 0, 0.05);
   .content {
     .env {
       position: relative;
@@ -89,7 +89,6 @@
       padding-left: 27px;
       color: rgba(196, 196, 196, 1);
       font-weight: 400;
-
       font-size: 14px;
       line-height: 20px;
       border-top: 1px solid rgba(196, 196, 196, 0.4);

+ 2 - 2
src/pages/Equipment/components/deviceModal/anSwitch/index.less

@@ -21,10 +21,10 @@
       top: 0;
       width: 24px;
       height: 24px;
-      background: #ffffff;
+      background: #fff;
       border: 1px solid #c4c4c4;
       border-radius: 50%;
-      box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.03);
+      box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.03);
       transform: translate(90%, 0%);
       transition: transform 0.3s cubic-bezier(0.3, 1.05, 0.4, 1.05);
       &.closePt {

+ 1 - 1
src/pages/Equipment/components/deviceModal/common.less

@@ -3,7 +3,7 @@
   margin-bottom: 15px;
   background: hsl(0, 0%, 100%);
   border-radius: 25px;
-  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.07), 0px 4px 10px rgba(0, 0, 0, 0.05);
+  box-shadow: 0 0 2px rgba(0, 0, 0, 0.07), 0 4px 10px rgba(0, 0, 0, 0.05);
   .content {
     .env {
       position: relative;

+ 1 - 1
src/pages/Equipment/index.tsx

@@ -486,7 +486,7 @@ const Environment: React.FC = () => {
                               <Icon
                                 className=""
                                 type={ditem.equipType}
-                                style={{ color: '#ffffff', fontWeight: 'bold' }}
+                                style={{ color: '#fff', fontWeight: 'bold' }}
                               ></Icon>
                             </div>
                           );

+ 1 - 1
src/sgcomponents/navMenu/index.less

@@ -2,7 +2,7 @@
   //   width: 380px;
   //   height: 340px;
   padding: 0 24px;
-  background-color: #ffffff;
+  background-color: #fff;
   border-radius: 10px;
   .title {
     display: flex;

+ 1 - 1
src/sgcomponents/topNavigator/index.tsx

@@ -195,7 +195,7 @@ const TopNavigator: React.FC<topNavigatorProps> = ({
               className={cx(styles.navItem, { [styles.sel]: item.id === selParamObj.id })}
               style={{
                 borderBottom:
-                  item.id === selParamObj.id ? `3px solid  ${item.color}` : '3px solid #ffffff',
+                  item.id === selParamObj.id ? `3px solid  ${item.color}` : '3px solid #fff',
               }}
               key={'nav' + index}
               onClick={() => {