Skip to content

Commit

Permalink
style: toc icon on Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
MOxFIVE committed Jun 15, 2016
1 parent d9735d7 commit 14ea30b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/js/toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ define(function (){
if (!!$().tooltip) { $(this).tooltip() }
}
})
var isSafari = !!navigator.userAgent.match(/Version\/[\d\.]+.*Safari/);
if (isSafari) {
$("#toc .toc-item i").css("bottom", ".1em");
}
}
}
TocNoWarp(yiliaConfig.toc[2]);
Expand Down

0 comments on commit 14ea30b

Please sign in to comment.