Browse Source

templates/repo: improve README icon and font

pull/4017/merge
Unknwon 8 years ago
parent
commit
9edac05e05
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 3
      public/css/gogs.css
  2. 3
      public/less/_repository.less
  3. 2
      templates/repo/view_file.tmpl

3
public/css/gogs.css

@ -1450,7 +1450,8 @@ footer .ui.language .menu {
} }
.repository.file.list #file-content .plain-text { .repository.file.list #file-content .plain-text {
font-size: 14px; font-size: 14px;
padding: 10px 15px; padding: 15px 15px 10px 15px;
font-family: Consolas;
} }
.repository.file.list #file-content .code-view * { .repository.file.list #file-content .code-view * {
font-size: 12px; font-size: 12px;

3
public/less/_repository.less

@ -403,7 +403,8 @@
.plain-text { .plain-text {
font-size: 14px; font-size: 14px;
padding: 10px 15px; padding: 15px 15px 10px 15px;
font-family: Consolas;
} }
.code-view { .code-view {
* { * {

2
templates/repo/view_file.tmpl

@ -1,7 +1,7 @@
<div id="file-content" class="{{TabSizeClass .Editorconfig .FileName}}"> <div id="file-content" class="{{TabSizeClass .Editorconfig .FileName}}">
<h4 class="ui top attached header" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}"> <h4 class="ui top attached header" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}">
{{if .ReadmeExist}} {{if .ReadmeExist}}
<i class="book icon ui left"></i> <i class="octicon octicon-book"></i>
{{if .ReadmeInList}} {{if .ReadmeInList}}
<strong>{{.FileName}}</strong> <strong>{{.FileName}}</strong>
{{else}} {{else}}

Loading…
Cancel
Save