The bootstrap3 theme has a style rule that sets all SVG files to a height of 1.2em. Apparently, it assumes SVGs will only be used for icons.
Fortunately, bootstrap3 sets that rule directly on the svg element, so it is easy to override. By namespacing it to the abc2 plugin, you can help ensure it doesn't come into play too broadly. I added this rule to both the style.css and print.css files.
An unrelated change I made to the style.css file was the addition of the following rule. I noticed, when the browser viewport was wider than the width of the rendered SVG files (each line of staff notation is 680px wide in both the abc2svg and abc-ui libraries), subsequent lines of rendered notation would float to the right of the previous line. So, if your browser window was at ~1400px or higher, you would get something like this:
[ NOTATION LINE 1 ..............] [ NOTATION LINE 2 ..............]
[ NOTATION LINE 3 ..............] [ NOTATION LINE 4 ..............]
To avoid this, I constrained the container by displaying it as a 700px wide block.
The bootstrap3 theme has a style rule that sets all SVG files to a height of 1.2em. Apparently, it assumes SVGs will only be used for icons.
Fortunately, bootstrap3 sets that rule directly on the
svg
element, so it is easy to override. By namespacing it to the abc2 plugin, you can help ensure it doesn't come into play too broadly. I added this rule to both thestyle.css
andprint.css
files.An unrelated change I made to the
style.css
file was the addition of the following rule. I noticed, when the browser viewport was wider than the width of the rendered SVG files (each line of staff notation is 680px wide in both theabc2svg
andabc-ui
libraries), subsequent lines of rendered notation would float to the right of the previous line. So, if your browser window was at ~1400px or higher, you would get something like this:To avoid this, I constrained the container by displaying it as a 700px wide block.