File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 },
1212 "dependencies" : {
1313 "docpad" : " ~6.79.0" ,
14+ "docpad-plugin-babel" : " ~2.2.1" ,
1415 "docpad-plugin-copy" : " ~2.1.3" ,
1516 "docpad-plugin-eco" : " ~2.1.0" ,
1617 "docpad-plugin-partials" : " ~2.9.2"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ themes : ['Default']
2121
2222 <div class="ui active tab" data-tab="icon">
2323
24- <iconSearch class="ui search">
24+ <iconSearch class="ui right aligned search">
2525 <div class="ui icon input">
2626 <input class="prompt" type="text" placeholder="Search icons...">
2727 <i class="search icon"></i>
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ semantic.icon.ready = function() {
1010 handler = {
1111 getIconList : function ( ) {
1212 var
13- $examples = $ ( '.icon .example' )
14- icons = [ ]
13+ $examples = $ ( '.icon .example' )
14+ icons = [ ]
1515 ;
1616 $examples . each ( function ( ) {
1717 var
@@ -25,11 +25,13 @@ semantic.icon.ready = function() {
2525 icon = $icon . attr ( 'class' ) . replace ( ' icon' , '' )
2626 title = '<i class="' + icon + ' icon"></i> ' + icon
2727 ;
28- icons . push ( {
29- category : category ,
30- title : title ,
31- icon : icon
32- } )
28+ if ( ! _ . findWhere ( icons , { icon : icon } ) ) {
29+ icons . push ( {
30+ category : category ,
31+ title : title ,
32+ icon : icon
33+ } ) ;
34+ }
3335 } ) ;
3436 } ) ;
3537 return icons ;
@@ -70,7 +72,7 @@ semantic.icon.ready = function() {
7072 $search . blur ( ) ;
7173 setTimeout ( function ( ) {
7274 $ ( 'iconSearch' ) . transition ( 'bounce' ) ;
73- $search . val ( 'HTML Copied to clipboard!' ) ;
75+ $search . val ( 'Copied to clipboard!' ) ;
7476 } , 50 )
7577 setTimeout ( function ( ) {
7678 $search . val ( '' ) ;
You can’t perform that action at this time.
0 commit comments