aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/_base.less
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-06-25 00:23:05 +0200
committerGitHub <noreply@github.com>2020-06-24 23:23:05 +0100
commitc86478ec47366dfb7081cc2eb2790a0af1880eca (patch)
tree6301cdfabec3f619cd61e673fa9bef3802a16b82 /web_src/less/_base.less
parentae20de7771d81d76ff62227e464a699d55c62084 (diff)
downloadgitea-c86478ec47366dfb7081cc2eb2790a0af1880eca.tar.gz
gitea-c86478ec47366dfb7081cc2eb2790a0af1880eca.zip
[UI] Sortable Tables Header By Click (#7980)
* [UI] Sortable Tables Header By Click * get rid of padding above header * restart CI * fix lint * convert getArrow JS to SortArrow go func * addopt SortArrow funct * suggestions from @silverwind - tablesort.js Co-authored-by: silverwind <me@silverwind.io> * Update web_src/js/features/tablesort.js Co-authored-by: silverwind <me@silverwind.io> * Update web_src/js/features/tablesort.js Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/less/_base.less')
-rw-r--r--web_src/less/_base.less11
1 files changed, 11 insertions, 0 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index a4a0cefcd0..0f4f8bcd6d 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -1223,6 +1223,17 @@ i.icon.centerlock {
margin-top: 1rem;
}
+table th[data-sortt-asc],
+table th[data-sortt-desc] {
+ &:hover {
+ background: rgba(0, 0, 0, .1) !important;
+ cursor: pointer !important;
+ }
+ .svg {
+ margin-left: .25rem;
+ }
+}
+
/* limit width of all direct dropdown menu children */
/* https://github.com/go-gitea/gitea/pull/10835 */
.dropdown:not(.selection) > .menu:not(.review-box) > *:not(.header) {