Skip to content

Commit ba151ed

Browse files
committed
css: improve fonts under Windows
1 parent c05717a commit ba151ed

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

public/css/gogs.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
background-size: contain;
66
}
77
body {
8-
font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", SimSun, Arial, Helvetica, sans-serif !important;
8+
font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
99
background-color: #fff;
1010
overflow-y: scroll;
1111
}
@@ -15,9 +15,10 @@ h3,
1515
h4,
1616
h5,
1717
.ui.header,
18+
.ui.menu,
1819
.ui.input input,
1920
.ui.button:not(.label) {
20-
font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", SimSun, Arial, Helvetica, sans-serif !important;
21+
font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
2122
}
2223
img {
2324
border-radius: 3px;

public/less/_base.less

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
@footer-margin: 40px;
22

33
body {
4-
font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", SimSun, Arial, Helvetica, sans-serif !important;
4+
font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
55
background-color: #fff;
66
overflow-y: scroll;
77
}
88
h1, h2, h3, h4, h5,
99
.ui.header,
10+
.ui.menu,
1011
.ui.input input,
1112
.ui.button:not(.label) {
12-
font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", SimSun, Arial, Helvetica, sans-serif !important;
13+
font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
1314
}
1415
img {
1516
border-radius: 3px;

templates/repo/branch_dropdown.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
<div class="two column row">
1919
<a class="reference column" href="#" data-target="#branch-list">
2020
<span class="text {{if not .IsViewTag}}black{{end}}">
21-
<i class="octicon octicon-git-branch"></i> {{.i18n.Tr "repo.branches"}}
21+
{{.i18n.Tr "repo.branches"}}
2222
</span>
2323
</a>
2424
<a class="reference column" href="#" data-target="#tag-list">
2525
<span class="text {{if .IsViewTag}}black{{end}}">
26-
<i class="reference tags icon"></i> {{.i18n.Tr "repo.tags"}}
26+
{{.i18n.Tr "repo.tags"}}
2727
</span>
2828
</a>
2929
</div>

0 commit comments

Comments
 (0)