This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
fix markdown padding
master
Unknwon
9 years ago
parent
4f03b81ec7
commit
942284648e
3 changed files
with
7 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
public/css/gogs.css
+4
-1
public/less/_markdown.less
+1
-1
templates/repo/view_file.tmpl
+ 2
- 0
public/css/gogs.css
View File
@@ -1072,6 +1072,8 @@ footer .container .links > *:first-child {
font-size: 16px;
line-height: 1.6 !important;
word-wrap: break-word;
}
.markdown.file-view {
padding: 5px 2em 2em !important;
}
.markdown > *:first-child {
+ 4
- 1
public/less/_markdown.less
View File
@@ -4,7 +4,10 @@
font-size: 16px;
line-height: 1.6 !important;
word-wrap: break-word;
padding: 5px 2em 2em !important;
&.file-view {
padding: 5px 2em 2em !important;
}
>*:first-child {
margin-top: 0 !important;
+ 1
- 1
templates/repo/view_file.tmpl
View File
@@ -24,7 +24,7 @@
{{end}}
</h4>
<div class="ui attached table segment">
<div class="{{if .ReadmeExist}}markdown{{else if .IsFileText}}code-view{{end}}">
<div class="
file-view
{{if .ReadmeExist}}markdown{{else if .IsFileText}}code-view{{end}}">
{{if .ReadmeExist}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsFileText}}
Write
Preview
Loading…
Cancel
Save