Skip to content

Commit

Permalink
style(toc): nowrap, ellipsis (…)
Browse files Browse the repository at this point in the history
  • Loading branch information
MOxFIVE committed Apr 20, 2016
1 parent 3f7f8c4 commit b25814d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 0 additions & 6 deletions layout/_partial/toc.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@
</script>

<% if (theme.toc_nowrap) { %>
<style>
.toc {
white-space: nowrap;
overflow-x: hidden;
}
</style>
<script>
$(document).ready(function() {
Expand Down
7 changes: 7 additions & 0 deletions source/css/_partial/article.styl
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,13 @@ li:hover {
background: rgba(158, 188, 226, .21);
}
}
if hexo-config("toc_nowrap")
#toc .toc-link
display inline-block
width 100%
text-overflow ellipsis
white-space nowrap
overflow-x hidden

.copyright {
width: 85%;
Expand Down

0 comments on commit b25814d

Please sign in to comment.