File tree Expand file tree Collapse file tree 4 files changed +34
-20
lines changed Expand file tree Collapse file tree 4 files changed +34
-20
lines changed Original file line number Diff line number Diff line change 11
11
< label for ="checkbox_allcats ">
12
12
Categories
13
13
</ label >
14
+ < span class ="amount-badge ">
15
+ {{ site.data.categories | size }}
16
+ </ span >
14
17
</ div >
15
18
16
19
{% for category in sortedCats %}
46
49
< label for ="checkbox_alltags ">
47
50
Tags
48
51
</ label >
52
+ < span class ="amount-badge ">
53
+ {{ site.data.tags | size }}
54
+ </ span >
49
55
</ div >
50
56
51
57
<!-- All / None Buttons -->
Original file line number Diff line number Diff line change 8
8
9
9
{% assign allPatterns = site.pages | where:"layout","pattern" | sort: 'title' %}
10
10
< div id ="patterns " class ="row ">
11
- <!-- SIDEBAR -->
12
- < div class ="col-md-3 col-md-push-9 ">
13
- {% include sidebar.html allItems=allPatterns %}
14
- </ div >
11
+ <!-- SIDEBAR -->
12
+ < div class ="col-md-3 col-md-push-9 ">
13
+ {% include sidebar.html allItems=allPatterns %}
14
+ </ div >
15
15
<!-- MAIN -->
16
16
< div class ="col-md-9 col-md-pull-3 ">
17
17
< div class ="content-area ">
43
43
</ div >
44
44
</ div >
45
45
</ div >
46
+ < div class ="pattern-statistics row ">
47
+ < div class ="col-md-9 ">
48
+ Currently showing < span id ="current-pattern-count-showing "> {{ allPatterns | size }}</ span > Patterns of {{ allPatterns | size }} Patterns total
49
+ </ div >
50
+ </ div >
Original file line number Diff line number Diff line change @@ -203,22 +203,16 @@ a {
203
203
background-color : $base06 ;
204
204
color : $base03 ;
205
205
}
206
- .amount-badge {
207
- font-size : 12px ;
208
- font-weight : bold ;
209
- color : $base16-blue ;
210
- border : 1px solid $base16-blue ;
211
- // background-color: $base05;
212
- // padding: 0 0 1px 0;
213
- border-radius : 5px ;
214
- float : right ;
215
- width : 32px ;
216
- text-align : center ;
217
- }
218
- /* &:hover .amount-badge {
219
- @include transition(0.4s ease);
220
- @include transform(rotate(360deg) scale(1.2));
221
- }*/
206
+ }
207
+ .amount-badge {
208
+ font-size : 12px ;
209
+ font-weight : bold ;
210
+ color : $base16-blue ;
211
+ border : 1px solid $base16-blue ;
212
+ border-radius : 5px ;
213
+ float : right ;
214
+ width : 32px ;
215
+ text-align : center ;
222
216
}
223
217
224
218
.checkbox label ::before {
@@ -574,3 +568,9 @@ h6:hover .header-link {
574
568
top : 45px !important ;
575
569
right : 45px !important ;
576
570
}
571
+
572
+ .pattern-statistics {
573
+ color : $base02 ;
574
+ font-style : italic ;
575
+ text-align : center ;
576
+ }
Original file line number Diff line number Diff line change @@ -141,6 +141,9 @@ function updateResults() {
141
141
} else if ( text . length > 2 ) {
142
142
intersectionQuery = EMPTY_QUERY ;
143
143
}
144
+ // update the pattern counter
145
+ $ ( '#current-pattern-count-showing' ) . text ( intersectionQuery . length ) ;
146
+
144
147
var diffQuery = $ ( '.list-item' ) . not ( intersectionQuery ) ;
145
148
/* further narrow down to only REAL changes */
146
149
diffQuery = diffQuery . filter ( ':visible' ) ;
You can’t perform that action at this time.
0 commit comments