From 95a9e5e1d6e83a128ff42e068ee68b8dfacff3a9 Mon Sep 17 00:00:00 2001 From: flaviut Date: Wed, 4 Jun 2014 21:02:22 -0400 Subject: [PATCH] fix overflow --- content/stylesheets/main.css | 18 ++++++++++++------ content/toc.md | 3 ++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/content/stylesheets/main.css b/content/stylesheets/main.css index 2d9b475..66122a7 100644 --- a/content/stylesheets/main.css +++ b/content/stylesheets/main.css @@ -122,18 +122,19 @@ a:hover { } #sidebar { - position: absolute; - - top: 40px; - left: 20px; + float: left; + margin-top: 40px; + margin-left: 0px; width: 211px; padding: 20px; + padding-left: 30px; border-right: 1px solid #ccc; font-size: 90%; line-height: 20px; + box-sizing: border-box; } #sidebar h2 { @@ -146,15 +147,20 @@ a:hover { #sidebar ul { position: relative; - left: 30px; + left: 20px; list-style: decimal-leading-zero; + list-style-position: inside; +} + +#sidebar #toc-list { + left: 10px; } #sidebar a.visited:after { /* selected with JS */ content: ""; font-family: "fontello"; position: absolute; - left: -3em; + left: -20px; color: #EEE; text-shadow: -1px 0 #2B2B2B, 0 1px #2B2B2B, 1px 0 #2B2B2B, 0 -1px #2B2B2B } \ No newline at end of file diff --git a/content/toc.md b/content/toc.md index 77ac503..d6b460c 100644 --- a/content/toc.md +++ b/content/toc.md @@ -14,4 +14,5 @@ * [Procedures](/procs/) * [Exceptions](/exceptions/) * [Varargs](/varargs/) -* [OOP Macro](/oop_macro/) \ No newline at end of file +* [OOP Macro](/oop_macro/) +{: #toc-list} \ No newline at end of file