PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
266 stars 208 forks source link

CSS for poems #828

Closed rbeezer closed 1 year ago

rbeezer commented 6 years ago

Eliminated all inline style for poems. Example:

http://mathbook.pugetsound.edu/beta/20180202-poem-css/poetry.html

These are examples prior to removal. So these are "before", and "after" can be obtained by just deleting the @style attribute:

<div class="poem" style="display: table; width: auto; max-width: 100%; margin: 0 auto;">
<div class="poemtitle" style="font-weight: bold; text-align: center; font-size: 120%">
<div class="stanza" style="padding-bottom: 20px">
<div class="stanzatitle" style="font-weight: bold; text-align: center">

Used multiple times on a single line to achieve multiple levels of indentation:

<span class="tab" style="margin-left: 2em">

3x each, with XX = left, center, right:

<div class="poemauthorXX" style="font-style: italic; padding-bottom: 20px; text-align: XX" >

3x each, with XX = left, center, right:

<!-- Hanging indentation for overly long lines -->
<div class="poemlineXX" style="margin-left: 4em; text-indent: -4em; text-align: XX" >
davidfarmer commented 1 year ago

We seem to have CSS for poems now.