summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2009-07-23 16:05:01 +0000
committerRalph Amissah <ralph@amissah.com>2009-07-23 16:05:01 +0000
commitabfd15ad0824b514d0a4e929f00fcf5d35bb6ddb (patch)
treeb53f682f971634119084ef99757100566a54cb20
parentinterim version number 0.71.1-pre (diff)
downloadsisu-abfd15ad0824b514d0a4e929f00fcf5d35bb6ddb.zip
sisu-abfd15ad0824b514d0a4e929f00fcf5d35bb6ddb.tar.xz
html scroll left margin
-rw-r--r--lib/sisu/v1/css.rb7
-rw-r--r--lib/sisu/v1/html.rb2
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/sisu/v1/css.rb b/lib/sisu/v1/css.rb
index 3f2733b..ced72d1 100644
--- a/lib/sisu/v1/css.rb
+++ b/lib/sisu/v1/css.rb
@@ -998,6 +998,13 @@ WOK
padding: 0;
border-left: 13em solid #ffffff;
padding-left: 1em;
+ padding-right: 1em;
+ }
+ div.scroll {
+ margin: 0;
+ padding: 0;
+ padding-left: 1em;
+ padding-right: 1em;
}
div.content:after {
content:' ';
diff --git a/lib/sisu/v1/html.rb b/lib/sisu/v1/html.rb
index 3977583..6e92c47 100644
--- a/lib/sisu/v1/html.rb
+++ b/lib/sisu/v1/html.rb
@@ -655,7 +655,7 @@ WOK
def publish
scroll=[]
hr='<center><hr width=90% /></center>'
- scroll << @scr_toc << hr << @scr_body << @scr_endnotes << hr << @scr_metadata << @scr_owner_details << @scr_tails
+ scroll << @scr_toc << '<div class="scroll">' << hr << @scr_body << @scr_endnotes << hr << @scr_owner_details << '</div>' << @scr_tails
scroll.flatten!.compact!
end
end