]> source.dussan.org Git - gitea.git/commitdiff
Fix #461
authorUnknwon <joe2010xtmf@163.com>
Sun, 14 Sep 2014 20:43:22 +0000 (16:43 -0400)
committerUnknwon <joe2010xtmf@163.com>
Sun, 14 Sep 2014 20:43:22 +0000 (16:43 -0400)
public/ng/css/gogs.css
public/ng/less/gogs/repository.less
templates/repo/header.tmpl

index 68ff87856ebb6a57b6c9ead82921a7544155eee8..b92786de749e2db92a1767925edcf0dcb61d19a7 100644 (file)
@@ -983,9 +983,9 @@ The register and sign-in page style
   background-color: transparent;
 }
 #repo-header-meta a > .btn {
+  line-height: 16px;
   font-size: 1.05em;
   margin-left: 16px;
-  line-height: 16px;
 }
 #repo-header-meta a > .btn i {
   margin-right: 6px;
@@ -1015,7 +1015,7 @@ The register and sign-in page style
   line-height: 24px;
   width: 440px;
   top: 50px;
-  left: -354px;
+  left: -370px;
   padding: 20px;
   box-sizing: border-box;
   z-index: 1;
@@ -1023,12 +1023,16 @@ The register and sign-in page style
 #repo-header-download-drop .btn > i {
   margin-right: 6px;
 }
+#repo-header-download-drop button,
+#repo-header-download-drop input {
+  font-size: 11px;
+}
 #repo-content {
   padding: 18px 0;
 }
 #repo-clone-url {
   border-right: none;
-  width: 196px;
+  width: 200px;
   border-left: none;
 }
 #repo-clone-help {
index 48959a627f765bbaf30ecec25cc7338ae97485c3..23d156503b7f7dd62a44bb8455ea2a12723cb827 100644 (file)
@@ -18,8 +18,7 @@ background-color: @repoHeaderBgColor;
 #repo-header-name {
        line-height: 66px;
        color: @repoHeaderNameColor;
-
-font-size: 1.6em;
+       font-size: 1.6em;
        font-weight: normal;
        margin-bottom: 0;
        i {
@@ -40,15 +39,17 @@ font-size: 1.6em;
                        }
                }
        }
-       a > .btn {
-               font-size: 1.05em;
-               margin-left: 16px;
-               i {
-                       margin-right: 6px;
-               }
-               line-height:16px;
-               .num {
-                       margin-left: 6px;
+       a {
+               &>.btn {
+                       line-height: 16px;
+                       font-size: 1.05em;
+                       margin-left: 16px;
+                       i {
+                               margin-right: 6px;
+                       }
+                       .num {
+                               margin-left: 6px;
+                       }
                }
        }
 }
@@ -59,21 +60,17 @@ font-size: 1.6em;
        &:hover {
                &:after, .btn {
                        background-color: @btnHoverBlackColor;
-
-color: #FFF;
+                       color: #FFF;
                }
        }
        &:after {
                background-color: @btnBlackColor;
-
-padding: 9px 16px 8px 0;
+               padding: 9px 16px 8px 0;
                margin-left: -8px !important;
                color: #FFF;
                border-top: 1px solid@btnBlackColor;
-
-border-bottom: 1px solid@btnBlackColor;
-
-border-top-right-radius: .25em;
+               border-bottom: 1px solid@btnBlackColor;
+               border-top-right-radius: .25em;
                border-bottom-right-radius: .25em;
        }
 }
@@ -81,20 +78,24 @@ border-top-right-radius: .25em;
        line-height: 24px;
        width: 440px;
        top: 50px;
-       left: -354px;
+       left: -370px;
        padding: 20px;
        box-sizing: border-box;
        z-index: 1;
        .btn > i {
                margin-right: 6px;
        }
+       button,
+       input {
+               font-size: 11px;
+       }
 }
 #repo-content {
        padding: 18px 0;
 }
 #repo-clone-url {
        border-right: none;
-       width: 196px;
+       width: 200px;
        border-left: none;
 }
 #repo-clone-help {
index 381250824895cea7a84209e417027f9e5748f1a7..42ae775a0e473c37e64336b0c38c81a368aed9b2 100644 (file)
@@ -8,7 +8,7 @@
             {{if .Repository.IsMirror}}<span class="label label-gray">{{.i18n.Tr "mirror"}}</span>{{end}}
         </h1>
         <ul id="repo-header-meta" class="right menu menu-line">
-            <li id="repo-header-download" class="inline-block down drop">
+            <li id="repo-header-download" class="drop">
                 <a id="repo-header-download-btn" href="#">
                     <button class="btn btn-black text-bold btn-radius">
                         <i class="octicon octicon-cloud-download"></i>