summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorjaqra <48099350+jaqra@users.noreply.github.com>2019-09-10 12:03:30 +0300
committerLauris BH <lauris.buksis@zzdats.lv>2019-09-10 12:03:30 +0300
commit7e17424c7e189f91d4f1b35e2504141b1e8116f6 (patch)
treef5d0711fa6f368b9aa751113b4ee868d281e803a /public
parent7eacdcf39a4de3a5ea2f234f9444753ee40d8d35 (diff)
downloadgitea-7e17424c7e189f91d4f1b35e2504141b1e8116f6.tar.gz
gitea-7e17424c7e189f91d4f1b35e2504141b1e8116f6.zip
Make link last commit massages in repository home page and commit tables (#8006)
* Make link last commit massages in repository home page and commit tables * Use RenderCommitMessageLink instead surround with a * deleted __debug_bin file * Exclude email to link from latest commit title * Exclude email processor from commit table Co-Authored-By: mrsdizzie <info@mrsdizzie.com> * Add class parameter to a html element creator functions. Make links underline dashed that are not commit * fix tests * Show dashed underline when also not hovered
Diffstat (limited to 'public')
-rw-r--r--public/css/index.css8
-rw-r--r--public/less/_repository.less36
2 files changed, 44 insertions, 0 deletions
diff --git a/public/css/index.css b/public/css/index.css
index a68547ffb5..2cc7b42cef 100644
--- a/public/css/index.css
+++ b/public/css/index.css
@@ -466,6 +466,10 @@ footer .ui.left,footer .ui.right{line-height:40px}
}
.repository.file.list #repo-files-table thead th{padding-top:8px;padding-bottom:5px;font-weight:400}
.repository.file.list #repo-files-table thead .ui.avatar{margin-bottom:5px}
+.repository.file.list #repo-files-table thead .commit-summary a{text-decoration:underline;-webkit-text-decoration-style:dashed;text-decoration-style:dashed}
+.repository.file.list #repo-files-table thead .commit-summary a:hover{-webkit-text-decoration-style:solid;text-decoration-style:solid}
+.repository.file.list #repo-files-table thead .commit-summary a.default-link{text-decoration:none}
+.repository.file.list #repo-files-table thead .commit-summary a.default-link:hover{text-decoration:underline;-webkit-text-decoration-style:solid;text-decoration-style:solid}
.repository.file.list #repo-files-table tbody .octicon{margin-left:3px;margin-right:5px;color:#777}
.repository.file.list #repo-files-table tbody .octicon.octicon-mail-reply{margin-right:10px}
.repository.file.list #repo-files-table tbody .octicon.octicon-file-directory,.repository.file.list #repo-files-table tbody .octicon.octicon-file-submodule,.repository.file.list #repo-files-table tbody .octicon.octicon-file-symlink-directory{color:#1e70bf}
@@ -829,6 +833,10 @@ footer .ui.left,footer .ui.right{line-height:40px}
.stats-table .table-cell.tiny{height:.5em}
tbody.commit-list{vertical-align:baseline}
.commit-list .message-wrapper{overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 50px);display:inline-block;vertical-align:middle}
+.commit-list .commit-summary a{text-decoration:underline;-webkit-text-decoration-style:dashed;text-decoration-style:dashed}
+.commit-list .commit-summary a:hover{-webkit-text-decoration-style:solid;text-decoration-style:solid}
+.commit-list .commit-summary a.default-link{text-decoration:none}
+.commit-list .commit-summary a.default-link:hover{text-decoration:underline;-webkit-text-decoration-style:solid;text-decoration-style:solid}
.commit-list .commit-status-link{display:inline-block;vertical-align:middle}
.commit-body{white-space:pre-wrap}
.git-notes.top{text-align:left}
diff --git a/public/less/_repository.less b/public/less/_repository.less
index d6572fc306..a64763b393 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -277,6 +277,24 @@
.ui.avatar {
margin-bottom: 5px;
}
+
+ .commit-summary a {
+ text-decoration: underline;
+ text-decoration-style: dashed;
+
+ &:hover {
+ text-decoration-style: solid;
+ }
+
+ &.default-link {
+ text-decoration: none;
+
+ &:hover {
+ text-decoration: underline;
+ text-decoration-style: solid;
+ }
+ }
+ }
}
tbody {
@@ -2188,6 +2206,24 @@ tbody.commit-list {
vertical-align: middle;
}
+.commit-list .commit-summary a {
+ text-decoration: underline;
+ text-decoration-style: dashed;
+
+ &:hover {
+ text-decoration-style: solid;
+ }
+
+ &.default-link {
+ text-decoration: none;
+
+ &:hover {
+ text-decoration: underline;
+ text-decoration-style: solid;
+ }
+ }
+}
+
.commit-list .commit-status-link {
display: inline-block;
vertical-align: middle;