Skip to content

Commit 7027ac9

Browse files
committed
Fix gogs#461
1 parent b956037 commit 7027ac9

File tree

3 files changed

+30
-25
lines changed

3 files changed

+30
-25
lines changed

public/ng/css/gogs.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -983,9 +983,9 @@ The register and sign-in page style
983983
background-color: transparent;
984984
}
985985
#repo-header-meta a > .btn {
986+
line-height: 16px;
986987
font-size: 1.05em;
987988
margin-left: 16px;
988-
line-height: 16px;
989989
}
990990
#repo-header-meta a > .btn i {
991991
margin-right: 6px;
@@ -1015,20 +1015,24 @@ The register and sign-in page style
10151015
line-height: 24px;
10161016
width: 440px;
10171017
top: 50px;
1018-
left: -354px;
1018+
left: -370px;
10191019
padding: 20px;
10201020
box-sizing: border-box;
10211021
z-index: 1;
10221022
}
10231023
#repo-header-download-drop .btn > i {
10241024
margin-right: 6px;
10251025
}
1026+
#repo-header-download-drop button,
1027+
#repo-header-download-drop input {
1028+
font-size: 11px;
1029+
}
10261030
#repo-content {
10271031
padding: 18px 0;
10281032
}
10291033
#repo-clone-url {
10301034
border-right: none;
1031-
width: 196px;
1035+
width: 200px;
10321036
border-left: none;
10331037
}
10341038
#repo-clone-help {

public/ng/less/gogs/repository.less

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ background-color: @repoHeaderBgColor;
1818
#repo-header-name {
1919
line-height: 66px;
2020
color: @repoHeaderNameColor;
21-
22-
font-size: 1.6em;
21+
font-size: 1.6em;
2322
font-weight: normal;
2423
margin-bottom: 0;
2524
i {
@@ -40,15 +39,17 @@ font-size: 1.6em;
4039
}
4140
}
4241
}
43-
a > .btn {
44-
font-size: 1.05em;
45-
margin-left: 16px;
46-
i {
47-
margin-right: 6px;
48-
}
49-
line-height:16px;
50-
.num {
51-
margin-left: 6px;
42+
a {
43+
&>.btn {
44+
line-height: 16px;
45+
font-size: 1.05em;
46+
margin-left: 16px;
47+
i {
48+
margin-right: 6px;
49+
}
50+
.num {
51+
margin-left: 6px;
52+
}
5253
}
5354
}
5455
}
@@ -59,42 +60,42 @@ font-size: 1.6em;
5960
&:hover {
6061
&:after, .btn {
6162
background-color: @btnHoverBlackColor;
62-
63-
color: #FFF;
63+
color: #FFF;
6464
}
6565
}
6666
&:after {
6767
background-color: @btnBlackColor;
68-
69-
padding: 9px 16px 8px 0;
68+
padding: 9px 16px 8px 0;
7069
margin-left: -8px !important;
7170
color: #FFF;
7271
border-top: 1px solid@btnBlackColor;
73-
74-
border-bottom: 1px solid@btnBlackColor;
75-
76-
border-top-right-radius: .25em;
72+
border-bottom: 1px solid@btnBlackColor;
73+
border-top-right-radius: .25em;
7774
border-bottom-right-radius: .25em;
7875
}
7976
}
8077
#repo-header-download-drop {
8178
line-height: 24px;
8279
width: 440px;
8380
top: 50px;
84-
left: -354px;
81+
left: -370px;
8582
padding: 20px;
8683
box-sizing: border-box;
8784
z-index: 1;
8885
.btn > i {
8986
margin-right: 6px;
9087
}
88+
button,
89+
input {
90+
font-size: 11px;
91+
}
9192
}
9293
#repo-content {
9394
padding: 18px 0;
9495
}
9596
#repo-clone-url {
9697
border-right: none;
97-
width: 196px;
98+
width: 200px;
9899
border-left: none;
99100
}
100101
#repo-clone-help {

templates/repo/header.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{if .Repository.IsMirror}}<span class="label label-gray">{{.i18n.Tr "mirror"}}</span>{{end}}
99
</h1>
1010
<ul id="repo-header-meta" class="right menu menu-line">
11-
<li id="repo-header-download" class="inline-block down drop">
11+
<li id="repo-header-download" class="drop">
1212
<a id="repo-header-download-btn" href="#">
1313
<button class="btn btn-black text-bold btn-radius">
1414
<i class="octicon octicon-cloud-download"></i>

0 commit comments

Comments
 (0)