Skip to content

Commit d787042

Browse files
committed
Add sort indicator arrows
1 parent b3481ef commit d787042

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

assets/js/main.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ $(function(){
77
});
88

99
function setup_tables() {
10-
$('.pod-table').addClass('sorted-table')
11-
.tablesorter({sortList: [[0,0]]});
10+
$('.pod-table thead').parent('table').tablesorter({sortList: [[0,0]]});
1211
}
1312

1413
function setup_search_box() {

assets/sass/style.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,3 +559,19 @@ a[href*="//"]:not([href*="perl6.org"])::after,
559559
overflow: visible;
560560
border-radius: 4px;
561561
}
562+
563+
.pod-table {
564+
th {
565+
text-align: left;
566+
}
567+
[class*="headerSort"] {
568+
padding-left: 20px;
569+
background: transparent no-repeat 5px/10px;
570+
}
571+
.headerSortDown {
572+
background-image: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 490.659 490.659" style="enable-background:new 0 0 490.659 490.659;" xml:space="preserve"><path d="M489.272,37.339c-1.92-3.307-5.44-5.333-9.259-5.333H10.68c-3.819,0-7.339,2.027-9.259,5.333 c-1.899,3.307-1.899,7.36,0.021,10.667l234.667,405.333c1.899,3.307,5.419,5.333,9.237,5.333s7.339-2.027,9.237-5.333 L489.251,48.005C491.149,44.72,491.149,40.645,489.272,37.339z"/></svg>');
573+
}
574+
.headerSortUp {
575+
background-image: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 490.659 490.659" style="enable-background:new 0 0 490.659 490.659;" xml:space="preserve"><path d="M489.229,442.468L254.563,37.135c-3.797-6.592-14.677-6.592-18.453,0L1.443,442.468c-1.92,3.307-1.92,7.36-0.021,10.667 c1.92,3.307,5.44,5.333,9.259,5.333h469.333c3.819,0,7.339-2.027,9.259-5.333C491.128,449.849,491.128,445.775,489.229,442.468z"/></svg>');
576+
}
577+
}

0 commit comments

Comments
 (0)