Skip to content

Commit

Permalink
reduced the width of the menu (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndossougbe committed Jul 13, 2014
1 parent d2c3990 commit 937308b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/strapdown-toc.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@list-base-indent: 10px;
@list-indent-per-lvl: 10px;
@max-xs-screen-width: 767px;
@toc-width: 15%; /* based on col-sm-2 (16.67%), but a bit smaller to leave
@toc-width: 14%; /* based on col-sm-2 (16.67%), but a bit smaller to leave
* some space to the content*/
@toc-link-color: #158CBA; /* Default link color (when not inverse) */

Expand All @@ -27,7 +27,8 @@

&>a {
padding-left: @indent;
margin-left: -@indent;
margin-left: -@indent;
font-size: 15px - @level;
}
&.active>a {
font-weight: bold;
Expand Down
5 changes: 4 additions & 1 deletion v/0.3/strapdown-toc.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ body h3[id] {
.toc ul > li > a {
padding-left: 20px;
margin-left: -20px;
font-size: 14px;
}
.toc ul > li.active > a {
font-weight: bold;
Expand All @@ -74,6 +75,7 @@ body h3[id] {
.toc ul ul > li > a {
padding-left: 30px;
margin-left: -30px;
font-size: 13px;
}
.toc ul ul > li.active > a {
font-weight: bold;
Expand All @@ -90,6 +92,7 @@ body h3[id] {
.toc ul ul ul > li > a {
padding-left: 40px;
margin-left: -40px;
font-size: 12px;
}
.toc ul ul ul > li.active > a {
font-weight: bold;
Expand All @@ -108,7 +111,7 @@ body h3[id] {
pointer-events: none;
}
.toc .nav {
width: 15%;
width: 14%;
padding-right: 5px;
}
.toc ul {
Expand Down

0 comments on commit 937308b

Please sign in to comment.