diff options
author | Ralph Amissah <ralph@amissah.com> | 2009-07-23 12:05:01 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2009-07-23 12:05:01 -0400 |
commit | abfd15ad0824b514d0a4e929f00fcf5d35bb6ddb (patch) | |
tree | b53f682f971634119084ef99757100566a54cb20 /lib | |
parent | interim version number 0.71.1-pre (diff) |
html scroll left margin
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v1/css.rb | 7 | ||||
-rw-r--r-- | lib/sisu/v1/html.rb | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/sisu/v1/css.rb b/lib/sisu/v1/css.rb index 3f2733b1..ced72d17 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 39775832..6e92c473 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 |