Parcourir la source

some ui details fix

fuxiaohei il y a 10 ans
Parent
commit
cb2da7bf2c
3 fichiers modifiés avec 24 ajouts et 10 suppressions
  1. 11 4
      public/ng/css/gogs.css
  2. 3 3
      public/ng/less/gogs/base.less
  3. 10 3
      public/ng/less/gogs/dashboard.less

+ 11 - 4
public/ng/css/gogs.css

@@ -95,7 +95,7 @@ img.avatar-100 {
 }
 #header {
   background-color: #428bca;
-  height: 44px;
+  height: 45px;
 }
 #header > .menu-line > li > a {
   display: inline-block;
@@ -120,14 +120,14 @@ img.avatar-100 {
   height: 44px;
 }
 #header-nav-user img {
-  margin: -4px 10px 0 0;
+  margin: -2px 10px 0 0;
   border-radius: 3px;
 }
 #header-nav-sign-out > a:hover {
   color: #ff908b !important;
 }
 #header-nav-logo {
-  padding: 6px 1.2em;
+  padding: 6px 1.2em 6px 0;
 }
 #header-nav-explore,
 #header-nav-help {
@@ -716,6 +716,12 @@ ol.linenums {
 #dashboard-header > .menu-line > li {
   padding: 12px 6px;
 }
+#dashboard-header > .menu-line > li.drop {
+  margin-left: -22px;
+}
+#dashboard-header > .menu-line > li.drop:hover a {
+  background-color: transparent;
+}
 #dashboard-header > .menu-line > li.right > a {
   font-size: 1.2em;
   color: #444444;
@@ -870,6 +876,7 @@ ol.linenums {
 }
 #dashboard-selection-menu > .drop-down {
   top: 56px;
+  left: 22px;
 }
 #dashboard-selection-menu li {
   white-space: nowrap;
@@ -919,7 +926,7 @@ ol.linenums {
   color: #CCC;
 }
 #dashboard-news .news .avatar {
-  margin: 0 1.2em;
+  margin-right: 1.2em;
 }
 #dashboard-news .news .news-content,
 #dashboard-news .news .news-time {

+ 3 - 3
public/ng/less/gogs/base.less

@@ -110,7 +110,7 @@ clear: both;
 }
 #header {
     background-color: @headerBgColor;
-    height: 44px;
+    height: 45px;
     > .menu-line {
         > li > a {
             display: inline-block;
@@ -136,7 +136,7 @@ clear: both;
 #header-nav-user {
     height: 44px;
     img {
-        margin: -4px 10px 0 0;
+        margin: -2px 10px 0 0;
         border-radius: 3px;
     }
 }
@@ -144,7 +144,7 @@ clear: both;
     color: @headerSignOutColor !important;
 }
 #header-nav-logo {
-    padding: 6px 1.2em;
+    padding: 6px 1.2em 6px 0;
 }
 #header-nav-explore,
 #header-nav-help {

+ 10 - 3
public/ng/less/gogs/dashboard.less

@@ -17,6 +17,12 @@
     > li {
       padding: 12px 6px;
     }
+    > li.drop{
+      margin-left: -22px;
+      &:hover a {
+        background-color: transparent;
+      }
+    }
     > li.right {
       > a {
         font-size: 1.2em;
@@ -126,7 +132,7 @@
   .repo-contrib-header {
     border-top: 1px solid #d6d6d6;
   }
-  .panel-header{
+  .panel-header {
     font-size: 14px;
   }
 }
@@ -173,6 +179,7 @@
   max-width: 300px;
   > .drop-down {
     top: 56px;
+    left: 22px;
   }
   li {
     white-space: nowrap;
@@ -221,14 +228,14 @@
   border-bottom-right-radius: .3em;
 }
 #dashboard-news {
-    padding-bottom: 60px;
+  padding-bottom: 60px;
   .news {
     margin-right: 2.4em;
     .mega-octicon {
       color: #CCC;
     }
     .avatar {
-      margin: 0 1.2em;
+      margin-right: 1.2em;
     }
     .news-content,
     .news-time {