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; background-size: contain;
} }
body { 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; background-color: #fff;
overflow-y: scroll; overflow-y: scroll;
} }
@ -15,9 +15,10 @@ h3,
h4, h4,
h5, h5,
.ui.header, .ui.header,
.ui.menu,
.ui.input input, .ui.input input,
.ui.button:not(.label) { .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 { img {
border-radius: 3px; border-radius: 3px;

5
public/less/_base.less

@ -1,15 +1,16 @@
@footer-margin: 40px; @footer-margin: 40px;
body { 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; background-color: #fff;
overflow-y: scroll; overflow-y: scroll;
} }
h1, h2, h3, h4, h5, h1, h2, h3, h4, h5,
.ui.header, .ui.header,
.ui.menu,
.ui.input input, .ui.input input,
.ui.button:not(.label) { .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 { img {
border-radius: 3px; border-radius: 3px;

4
templates/repo/branch_dropdown.tmpl

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

Loading…
Cancel
Save