Browse Source

css: improve fonts under Windows

pull/4248/merge
Unknwon 8 years ago
parent
commit
ba151eda0a
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 5
      public/css/gogs.css
  2. 5
      public/less/_base.less
  3. 4
      templates/repo/branch_dropdown.tmpl

5
public/css/gogs.css

@ -5,7 +5,7 @@
background-size: contain;
}
body {
font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", SimSun, Arial, Helvetica, sans-serif !important;
font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
background-color: #fff;
overflow-y: scroll;
}
@ -15,9 +15,10 @@ h3,
h4,
h5,
.ui.header,
.ui.menu,
.ui.input input,
.ui.button:not(.label) {
font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", SimSun, Arial, Helvetica, sans-serif !important;
font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
}
img {
border-radius: 3px;

5
public/less/_base.less

@ -1,15 +1,16 @@
@footer-margin: 40px;
body {
font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", SimSun, Arial, Helvetica, sans-serif !important;
font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
background-color: #fff;
overflow-y: scroll;
}
h1, h2, h3, h4, h5,
.ui.header,
.ui.menu,
.ui.input input,
.ui.button:not(.label) {
font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", SimSun, Arial, Helvetica, sans-serif !important;
font-family: "PingFang SC", 'Hiragino Sans GB', "Helvetica Neue", "Microsoft YaHei", Arial, Helvetica, sans-serif !important;
}
img {
border-radius: 3px;

4
templates/repo/branch_dropdown.tmpl

@ -18,12 +18,12 @@
<div class="two column row">
<a class="reference column" href="#" data-target="#branch-list">
<span class="text {{if not .IsViewTag}}black{{end}}">
<i class="octicon octicon-git-branch"></i> {{.i18n.Tr "repo.branches"}}
{{.i18n.Tr "repo.branches"}}
</span>
</a>
<a class="reference column" href="#" data-target="#tag-list">
<span class="text {{if .IsViewTag}}black{{end}}">
<i class="reference tags icon"></i> {{.i18n.Tr "repo.tags"}}
{{.i18n.Tr "repo.tags"}}
</span>
</a>
</div>

Loading…
Cancel
Save