From: Trevor Daniels Date: Fri, 6 Aug 2010 11:51:03 +0000 (+0100) Subject: Web: Issue 958 (partial) Scroll wide examples X-Git-Tag: release/2.13.30-1~31 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f6e12645c0ac10b81b454cd4dc6b186ffcd7deea;p=lilypond.git Web: Issue 958 (partial) Scroll wide examples - Examples on web pages which are divided into two columns run off the right-hand edge when the width of the browser window is reduced. This patch adds a horizontal scroll bar to examples which do this. --- diff --git a/Documentation/css/lilypond-web.css b/Documentation/css/lilypond-web.css index fd883b5b51..c101fd15ee 100644 --- a/Documentation/css/lilypond-web.css +++ b/Documentation/css/lilypond-web.css @@ -891,6 +891,18 @@ div.color4 h3 { line-height: 0.8; } +.example { + position: relative; + left: -3em; +} + +.h-scroll-auto { + position: relative; + left: 1em; + width: 240px; + overflow: auto; +} + .warning { background: #eef; text-align: left; diff --git a/Documentation/web/download.itexi b/Documentation/web/download.itexi index 08238c9ce5..c9af00daed 100644 --- a/Documentation/web/download.itexi +++ b/Documentation/web/download.itexi @@ -339,11 +339,11 @@ cd ~/bin @item Create a file called @command{lilypond} which contains -@help obvious css issue to be dealt with. :( -@c we need a small font here to fit. -gp -@smallexample +@divClass{h-scroll-auto} +@example exec @var{DIR}/LilyPond.app/Contents/Resources/bin/lilypond "$@@" -@end smallexample +@end example +@divEnd @warning{@var{DIR} will generally be @code{/Applications/}} @@ -386,9 +386,11 @@ inside the @code{.app} file for MacOS@tie{}X. Scripts can also be run from the command line by invoking them directly: +@divClass{h-scroll-auto} @example @var{path/to}/LilyPond.app/Contents/Resources/bin/lilypond @end example +@divEnd The same is true for all other scripts in that directory, such as @command{lilypond-book} and @command{convert-ly}. @@ -606,6 +608,3 @@ is given in @ref{Freedom}. @include gpl.itexi @divEnd - - -