aboutsummaryrefslogtreecommitdiff
path: root/public/css/gogs.css
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-20 21:10:37 +0800
committerslene <vslene@gmail.com>2014-03-20 21:10:37 +0800
commitde956c477684f66a9e27ad895efbebae1837b2b1 (patch)
tree2e18e4a9296b56fb435e517e34975a01075d43e5 /public/css/gogs.css
parentc6bd723ce17ae3c0495f84e46a9296b30db5aee1 (diff)
linenums
Diffstat (limited to 'public/css/gogs.css')
-rwxr-xr-xpublic/css/gogs.css45
1 files changed, 39 insertions, 6 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index eb5f7ad2..41e4be9a 100755
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -644,7 +644,7 @@ html, body {
}
.file-content .file-body {
- padding: 0;
+ padding: 30px 30px 50px;
border: none;
background-color: #FFF;
}
@@ -654,17 +654,50 @@ html, body {
border: none;
}
-.file-content .markdown > pre > ol.linenums > li:first-child {
- padding-top: 0;
+.file-content .file-body.file-code {
+ padding: 0;
+}
+
+.file-content .file-body.file-code .lines-code > pre {
+ border: none;
+ background: none;
+ border-left: 1px solid #ddd;
+}
+
+.file-content .file-body.file-code .lines-code ol.linenums > .active {
+ background: #ffffdd;
+}
+
+.file-content .file-body.file-code .lines-num {
+ text-align: right;
+ color: #999;
+ background: #fafafa;
+ width: 1%;
+}
+
+.file-content .file-body.file-code .lines-num span {
+ font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
+ line-height: 1.6;
+ padding: 0 8px 0 10px;
+ cursor: pointer;
+ display: block;
+ margin-top: 6px;
+ font-size: 90%;
+}
+
+.file-content .file-body.file-code .lines-num span:first-child {
margin-top: 0;
}
-.file-content .file-body.file-code {
- padding: 0;
+.file-content .file-body.file-code > table {
+ width: 100%;
}
-.file-content .file-body.file-code > pre {
+.file-content .file-body.file-code > table > tbody > tr,
+.file-content .file-body.file-code > table > tbody > tr > td,
+.file-content .file-body.file-code > table {
border: none;
+ background: none;
}
.branch-list th, .commit-list th {