From f685bb0ae7f1bda34e2e0e4585e04c95c11fccc5 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 6 Aug 2015 10:16:14 +0800 Subject: [PATCH] fix style --- config.codekit | 20 ++++++++++++++++++++ public/ng/css/gogs.css | 8 ++++++++ public/ng/less/gogs/repository.less | 8 ++++++++ templates/repo/view_file.tmpl | 4 ++-- 4 files changed, 38 insertions(+), 2 deletions(-) diff --git a/config.codekit b/config.codekit index 120180d3b..7697f3844 100644 --- a/config.codekit +++ b/config.codekit @@ -448,6 +448,15 @@ "strictMath": 0, "strictUnits": 0 }, + "\/public\/ng\/css\/gogs-prism.css": { + "fileType": 16, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/public\/ng\/css\/gogs-prism.css", + "outputAbbreviatedPath": "No Output Path", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0 + }, "\/public\/ng\/css\/gogs.css": { "fileType": 16, "ignore": 1, @@ -559,6 +568,17 @@ "outputStyle": 1, "syntaxCheckerStyle": 1 }, + "\/public\/ng\/js\/lib\/prism.js": { + "fileType": 64, + "ignore": 0, + "ignoreWasSetByUser": 0, + "inputAbbreviatedPath": "\/public\/ng\/js\/lib\/prism.js", + "outputAbbreviatedPath": "\/public\/ng\/js\/lib\/min\/prism-min.js", + "outputPathIsOutsideProject": 0, + "outputPathIsSetByUser": 0, + "outputStyle": 1, + "syntaxCheckerStyle": 1 + }, "\/public\/ng\/js\/min\/gogs-min.js": { "fileType": 64, "ignore": 1, diff --git a/public/ng/css/gogs.css b/public/ng/css/gogs.css index 6aaf084df..f17fc0910 100644 --- a/public/ng/css/gogs.css +++ b/public/ng/css/gogs.css @@ -1371,6 +1371,7 @@ The register and sign-in page style #repo-branch-switch > .drop-down { top: 40px; left: 0; + z-index: 9999; } #repo-branch-filter-ipt { width: 100%; @@ -1630,6 +1631,13 @@ The register and sign-in page style line-height: 16px; padding: 6px 8px; } +.code-view pre { + padding-top: 0!important; + padding-bottom: 0!important; +} +.code-view pre code { + padding-top: 2px; +} .code-view table { width: 100%; } diff --git a/public/ng/less/gogs/repository.less b/public/ng/less/gogs/repository.less index cddc0adbc..08567c6f1 100644 --- a/public/ng/less/gogs/repository.less +++ b/public/ng/less/gogs/repository.less @@ -197,6 +197,7 @@ >.drop-down { top: 40px; left: 0; + z-index: 9999; } } #repo-branch-filter-ipt { @@ -461,6 +462,13 @@ padding: 6px 8px; } } + pre { + padding-top: 0!important; + padding-bottom: 0!important; + code { + padding-top: 2px; + } + } table { width: 100%; td { diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index ebcc6a098..6b36f066d 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -25,12 +25,12 @@ {{end}}
-