summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2019-10-07 06:59:17 +0200
committertechknowlogick <techknowlogick@gitea.io>2019-10-07 00:59:17 -0400
commit08896cd9f657c3697af0ed2415a8461080a0eb0a (patch)
treedb5078c9e8b9354e8fb966d5080007353e6ea5cb /public
parent51fade4c44c3517923cd07783ab05a55aaa84dcd (diff)
downloadgitea-08896cd9f657c3697af0ed2415a8461080a0eb0a.tar.gz
gitea-08896cd9f657c3697af0ed2415a8461080a0eb0a.zip
add file line count info on UI (#8396)
Also reworked the header to remove the filename (which is redundant with the file path above) and made the header a flexbox with a monospace font. Fixes: https://github.com/go-gitea/gitea/issues/8170
Diffstat (limited to 'public')
-rw-r--r--public/css/index.css5
-rw-r--r--public/less/_repository.less20
2 files changed, 22 insertions, 3 deletions
diff --git a/public/css/index.css b/public/css/index.css
index 496194decc..0efd787122 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -494,7 +494,7 @@ footer .ui.left,footer .ui.right{line-height:40px}
.repository.file.list #repo-files-table tr:hover{background-color:#ffe}
.repository.file.list #repo-files-table .jumpable-path{color:#888}
.repository.file.list .non-diff-file-content .header .icon{font-size:1em}
-.repository.file.list .non-diff-file-content .header .file-actions{margin-top:0;margin-bottom:-5px;padding-left:20px}
+.repository.file.list .non-diff-file-content .header .file-actions{margin-bottom:-5px}
.repository.file.list .non-diff-file-content .header .file-actions .btn-octicon{display:inline-block;padding:5px;margin-left:5px;line-height:1;color:#767676;vertical-align:middle;background:0 0;border:0;outline:0}
.repository.file.list .non-diff-file-content .header .file-actions .btn-octicon:hover{color:#4078c0}
.repository.file.list .non-diff-file-content .header .file-actions .btn-octicon-danger:hover{color:#bd2c00}
@@ -878,6 +878,9 @@ tbody.commit-list{vertical-align:baseline}
.repo-buttons .disabled-repo-button a.button:hover{background:0 0!important;color:rgba(0,0,0,.6)!important;box-shadow:0 0 0 1px rgba(34,36,38,.15) inset!important}
.repo-buttons .ui.labeled.button>.label{border-left:0!important;margin:0!important}
.tag-code,.tag-code td{background-color:#f0f0f0!important;border-color:#d3cfcf!important;padding-top:8px;padding-bottom:8px}
+.file-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px!important}
+.file-info{display:flex;align-items:center}
+.file-info-entry+.file-info-entry{border-left:1px solid currentColor;margin-left:8px;padding-left:8px}
.CodeMirror{font:14px 'SF Mono',Consolas,Menlo,'Liberation Mono',Monaco,'Lucida Console',monospace}
.CodeMirror.cm-s-default{border-radius:3px;padding:0!important}
.CodeMirror .cm-comment{background:inherit!important}
diff --git a/public/less/_repository.less b/public/less/_repository.less
index ade3477ccc..0527759ed4 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -371,9 +371,7 @@
}
.file-actions {
- margin-top: 0;
margin-bottom: -5px;
- padding-left: 20px;
.btn-octicon {
display: inline-block;
@@ -2385,3 +2383,21 @@ tbody.commit-list {
padding-top: 8px;
padding-bottom: 8px;
}
+
+.file-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 8px 12px !important;
+}
+
+.file-info {
+ display: flex;
+ align-items: center;
+}
+
+.file-info-entry + .file-info-entry {
+ border-left: 1px solid currentColor;
+ margin-left: 8px;
+ padding-left: 8px;
+}