diff options
author | Unknwon <u@gogs.io> | 2017-04-07 15:30:08 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-04-07 15:30:08 -0400 |
commit | 62a20b8a2d3938705235f6d2bf61971ef41e4f22 (patch) | |
tree | 097474e1454189976542b17bccf8e969e6fbde3d | |
parent | d0612be40291f15157afc3aab8e8ce35648ee42d (diff) |
repo/wiki: improve UI
-rw-r--r-- | public/css/gogs.css | 19 | ||||
-rw-r--r-- | public/less/_repository.less | 5 | ||||
-rw-r--r-- | templates/repo/wiki/view.tmpl | 2 |
3 files changed, 14 insertions, 12 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css index 68439911..a06f3deb 100644 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -2331,15 +2331,16 @@ footer .ui.language .menu { .repository.wiki.view .ui.sub.header { text-transform: none; } -.repository.wiki.view > .markdown { - padding: 15px 30px; -} -.repository.wiki.view > .markdown h1:first-of-type, -.repository.wiki.view > .markdown h2:first-of-type, -.repository.wiki.view > .markdown h3:first-of-type, -.repository.wiki.view > .markdown h4:first-of-type, -.repository.wiki.view > .markdown h5:first-of-type, -.repository.wiki.view > .markdown h6:first-of-type { +.repository.wiki.view .markdown { + padding-left: 25px; + margin-left: -25px; +} +.repository.wiki.view .markdown h1:first-of-type, +.repository.wiki.view .markdown h2:first-of-type, +.repository.wiki.view .markdown h3:first-of-type, +.repository.wiki.view .markdown h4:first-of-type, +.repository.wiki.view .markdown h5:first-of-type, +.repository.wiki.view .markdown h6:first-of-type { margin-top: 0; } .repository.settings.collaboration .collaborator.list { diff --git a/public/less/_repository.less b/public/less/_repository.less index f5ca6355..5260af61 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -1313,8 +1313,9 @@ .ui.sub.header { text-transform: none; } - >.markdown { - padding: 15px 30px; + .markdown { + padding-left: 25px; + margin-left: -25px; h1, h2, h3, h4, h5, h6 { &:first-of-type { diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 657c2929..543c2acd 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -61,7 +61,7 @@ {{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}} </div> </div> - <div class="ui segment markdown"> + <div class="markdown"> {{.content | Str2html}} </div> </div> |