Permalink
Browse files

style(toc): nowrap, ellipsis (…)

  • Loading branch information...
MOxFIVE committed Apr 20, 2016
1 parent 3f7f8c4 commit b25814d0a85b01de9fc9b7badf44c80735a9fd83
Showing with 7 additions and 6 deletions.
  1. +0 −6 layout/_partial/toc.ejs
  2. +7 −0 source/css/_partial/article.styl
View
@@ -40,12 +40,6 @@
</script>
<% if (theme.toc_nowrap) { %>
<style>
.toc {
white-space: nowrap;
overflow-x: hidden;
}
</style>
<script>
$(document).ready(function() {
@@ -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%;

0 comments on commit b25814d

Please sign in to comment.