feat: Home page style optimization 47/93647/1
authorcyuamber <xuranyjy@chinamobile.com>
Fri, 16 Aug 2019 03:59:21 +0000 (11:59 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Fri, 16 Aug 2019 04:00:21 +0000 (12:00 +0800)
Change-Id: I6fa4760b5c401cb9ff9e0198ed545b7c2fef18b3
Issue-ID: USECASEUI-307
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/app.component.html
usecaseui-portal/src/app/app.component.less
usecaseui-portal/src/app/home/home.component.css
usecaseui-portal/src/app/home/home.component.html
usecaseui-portal/src/app/home/home.component.less
usecaseui-portal/src/styles.less

index 1b201c0..2bd6067 100644 (file)
     limitations under the License.
 -->
 <nz-layout>
-  <nz-sider nzWidth='330' style="overflow: auto; height: 100vh; position: fixed; left: 0;background: url('assets/images/UUIMenuBar.png')">
-    <div style="width: 330px;height:240px;text-align: center">
-      <img src="assets/images/uui-logo130.png" alt="" style="margin-top: 40px">
+  <nz-sider nzWidth='330' nzBreakpoint='xl' nzCollapsedWidth=260>
+    <div class="siderContent">
+      <img src="../assets/images/uui-logo130.png" alt="">
     </div>
-    <ul nz-menu [nzTheme]="'dark'" [nzMode]="'inline'" style="width: 330px">
+    <ul nz-menu [nzTheme]="'dark'" [nzMode]="'inline'">
       <li nz-menu-item [ngClass]="{'activeMenuBar':activeMenuBar[0] == true}" (click)="thisActive(0)">
         <a routerLink="home">
           <span title>
@@ -91,7 +91,7 @@
       </li>
     </ul>
   </nz-sider>
-  <nz-layout style="margin-left: 330px;  height:100vh; position:relative;">
+  <nz-layout class="main">
       <router-outlet></router-outlet>
   </nz-layout>
 </nz-layout>
index 685a216..42889ef 100644 (file)
@@ -1,7 +1,46 @@
+@media screen and (min-width: 1200px){
+    .siderContent{
+        height:240px;
+        img{
+            margin-top: 40px;
+        }
+    }
+    .main{
+        margin-left: 330px
+    }
+}
+@media screen and (max-width: 1200px){
+    .siderContent{
+        height:180px;
+        img{
+            transform: scale(0.8);
+            margin-top: 26px;
+        } 
+    }
+    .main{
+        margin-left: 260px
+    }  
+}
+
 nz-layout {
     nz-sider {
+        position: fixed;
+        left: 0;
+        z-index: 100;
+        // overflow: auto; 
+        height: 100vh; 
+        background: #313449 url('../assets/images/UUIMenuBar.png') no-repeat;
+        background-size: 100%;
+        .siderContent{
+            width: 100%;
+            text-align: center;
+            img{
+                transition: .5s;
+            }
+        }
         ul {
             background: transparent;
+            width: 100%;
             li {
                 margin: 0;
                 font-size: 16px;
@@ -55,4 +94,8 @@ nz-layout {
             }
         }
     }
+    .main{
+        height:100vh;
+        position:relative; 
+    }
 }
\ No newline at end of file
index 03cc8f9..41b3f5f 100644 (file)
@@ -71,6 +71,7 @@ hr {
 }
 .content .rightcontent .rt-content .poerformance {
   float: left;
+  margin-left: 2%;
   background-color: #fff;
   height: 100%;
   width: 50%;
index d429bf8..4126f24 100644 (file)
@@ -16,8 +16,8 @@
 
 <!--<h3 class="title"> {{"Overall trend" | translate}}</h3>
 <hr> -->
-<div class="content" style="padding: 20px 20px;">
-  <div style="float: left;width:30%;height:96vh">
+<div class="content">
+  <div class="left-content">
     <div class="services">
       <h4>{{"i18nTextDefine_SERVICES" | translate}}</h4>
       <!-- <h3>{{serviceNumber}} <span>{{"services" | translate}}</span> </h3>
         <span  style="color:#3C4F8C"  (click) = "goback_services()">{{"i18nTextDefine_ViewDetails" | translate}}</span>
       </p>
     </div>
-    <div class="PACKAGE" style="height: 43%;margin-top: 3%">
+    <div class="PACKAGE">
       <h4>{{"i18nTextDefine_PACKAGE" | translate}}</h4>
       <div class="details">
-        <li>
+        <li class="detailstoplinContent">
           <div class="detailstoplin">
             <div><span></span> NS</div>
             <div>
@@ -47,7 +47,7 @@
             <div>{{NSdata}}</div>
           </div>
         </li>
-        <li>
+        <li class="detailstoplinContent">
             <div class="detailstoplin">
               <div><span style="background-color:#BCECB8;"></span> VNF</div>
               <div>
@@ -56,7 +56,7 @@
               <div>{{Vnfdata}}</div>
             </div>
           </li>
-          <li>
+          <li class="detailstoplinContent">
               <div class="detailstoplin">
                 <div><span style="background-color:#ACCAF4;"></span> PNF</div>
                 <div>
@@ -66,7 +66,7 @@
               </div>
             </li>
       </div>
-      <p class="tip" style="margin-top: 20px;">
+      <p class="tip">
         <span style="color:#3C4F8C" (click) = "goback_onboard()">{{"i18nTextDefine_ViewDetails" | translate}}</span>
       </p>
     </div>
index 4297f5b..9e768cf 100644 (file)
 //     margin-bottom: 20px;
 // }
 .content {
-    .services,.PACKAGE{
-        background-color: #fff;
-        width: 100%;
-        height: 57%;
-        border-radius: 5px;
-        padding: 28px 22px;
-        clear: both;
-        h4 {
-            font: 600 16px/16px "Arial Bold";
-            color: #0DA9E2;
-            margin-bottom: 20px;
+    padding: 20px 20px;
+    overflow: hidden;
+    .left-content{
+        float: left;
+        width:30%;
+        // height:96vh;
+        .services,.PACKAGE{
+            width: 100%;
+            background:rgba(255,255,255,1);
+            box-shadow:0px 10px 10px 2px rgba(222,222,222,0.5);
+            border-radius:6px;
+            padding: 28px 22px;
+            h4{
+                font: 600 16px/16px "Arial Bold";
+                color: #0DA9E2; 
+            }
+            .tip {
+                float: right;
+                width: 110px;
+                line-height: 35px;
+                border-radius: 5px;
+                background-color: #eceff4;
+                font-size: 16px;
+                color: #3C4F8C;
+                margin-top: 20px;
+                margin-bottom: 0!important;
+            }
+        }
+        .services{
+            height:466px;
+            h4{
+                margin-bottom: 20px;
+            }
+            h5 {
+                font: 500 18px/18px "ArialMT";
+                color:#0DA9E2;
+                margin: -2em 0 1em 0 ;
+                display: -webkit-box;
+                -webkit-box-orient: vertical;
+                -webkit-line-clamp: 2;
+                overflow: hidden;
+                span {
+                    font-size: 14px;
+                    font-family: "Arial";
+                    color:#3C4F8C;
+                }
+                span:first-child {
+                    font-size: 18px;
+                    padding: 0  4PX  0 4px;
+                }
+                span:last-child {
+                    padding-left: 4px;
+                }
+               
+            }
         }
+        .PACKAGE{
+            height:422px;
+            margin-top: 20px;
+            h4{
+                margin-bottom: 50px;
+            }
+            .details {
+                .detailstoplinContent{
+                    border-bottom:0.5px solid rgba(237,237,237,1);
+                    border-radius:4px;
+                    line-height: 45px;
+                    font-size: 14px;
+                    color: #3C4F8C;
+                    font-family:"ArialMT";
+                    .detailstoplin {
+                        width: 100%;
+                        height: 50px;
+                        border-top: 0.5px solid #ededed;
+                        border-radius: 4px;
+                        div:first-child{
+                            width: 20%;
+                            float: left;
+                        }
+                        div:nth-child(2){
+                            width: 65%;
+                            float: left;
+                        }
+                        div:last-child {
+                            width: 13%;
+                            float: right;
+                            font-size:12px;
+                            font-weight: 500;
+                            color:rgba(60,79,140,0.5);
+                        }
+                    }
+                } 
+            }
+            
+        } 
+    }
+    .services,.PACKAGE{
         h3 {
             font: 400 48px/48px "Arial";
             color: #3fa8eb;
                 font-size: 14px;
             }
         }
-        h5 {
-            font: 500 18px/18px "ArialMT";
-            color: #0DA9E2;
-            margin: -1em 0 0em 0;
-            span {
-                font-size: 14px;
-                font-family: "Arial";
-                color:#3C4F8C;
-            }
-            span:first-child {
-                font-size: 18px;
-                padding: 0  4PX  0 4px;
-            }
-            span:last-child {
-                padding-left: 4px;
-            }
-           
-        }
+        
         p {
             font: 400 14px/14px "Arial";
             color: #54657e;
             text-align: center;
             margin-bottom: 48px;
         }
-        .details {
-            li:first-child{
-                border-top: 0.5px solid #ededed; 
-            }
-            li {
-                border-bottom: 0.5px solid #ededed;
-                border-radius: 4px;
-                line-height: 40px;
-                font-size: 14px;
-                color: #3C4F8C;
-                font-family:"ArialMT";
-                .detailstoplin {
-                    width: 100%;
-                    height: 40px;
-                    /* border-top: 0.5px solid #ededed; */
-                    border-radius: 4px;
-                    div:first-child{
-                        width: 20%;
-                        float: left;
-                        span{
-                            height: 12px;
-                            width: 12px;
-                            margin-left: 2px;
-                            border-radius: 6px;
-                            background-color: #FECE72;
-                            display: inline-block;
-                        }
-                    }
-                    div:nth-child(2){
-                        width: 65%;
-                        float: left;
-                    }
-                    div:last-child {
-                        width: 13%;
-                        float: right;
-                        font-size:12px;
-                        font-weight: 500;
-                        color:rgba(60,79,140,0.5);
-                    }
-                }
-            } 
-        }
-        .tip {
-            width: 110px;
-            background-color: #eceff4;
-            color: #3C4F8C;
-            font-size: 16px;
-            float: right;
-            // margin-top: 20px;
-            margin-bottom: 0!important;
-            line-height: 35px;
-            border-radius: 5px;
-        }
     }
     .rightcontent {
         float: left;
         .rt-content {
             height: 40%;
             margin-bottom: 18px;
+            background:rgba(255,255,255,1);
+            box-shadow:0px 10px 10px 2px rgba(222,222,222,0.5);
+            border-radius:6px;
             .poerformance {
                 float: left;
                 background-color: #fff;
             }
             .alarm-name{
                 text-align: center;
-                // margin-top: 15px;
+                margin-top: 15px;
             }
             .tip{
                 width: 110px;
             }
         }
         .rb-content {
+            position: relative;
             height: 58%;
             background-color: #fff;
-            border-radius: 5px;
             padding: 24px 30px;
-            position: relative;
+            box-shadow:0px 10px 15px 2px rgba(222,222,222,0.5);
+            border-radius:6px;
             h4 {
                 font: 600 16px/16px "Arial Bold";
                 color: #0DA9E2;
index 4e4ee69..4dcc0f3 100644 (file)
@@ -1,5 +1,13 @@
 /* You can add global styles to this file, and also import other style files */
 // Drop-down box background hover status color
+
+// reset
+body{
+  min-width: 990px;
+  a:link{
+    text-decoration: none;
+  }
+}
 .ant-dropdown-menu {
   .ant-dropdown-menu-item:hover, .ant-dropdown-menu-submenu-title:hover {
     background-color: #3fa8eb;