Skip to content

Commit

Permalink
DRY up line-indent styles for poetry
Browse files Browse the repository at this point in the history
Also add the .poem class to the attribute selector. Note the TODO
regarding what this does to lines of poetry that might include italics.
  • Loading branch information
karlstolley committed Nov 19, 2019
1 parent 534ad9b commit 0960ce4
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions _sass/_ed.scss
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,9 @@ ul.poetry {


/* This snippet helps us reset the margin for all spans with the indent- class */
.poetry span[class^='indent-']{
.poem span[class^='indent-'],
.poetry span[class^='indent-'] {
font-style: normal; /* TODO: what if poetry lines include italic? */
margin: 0;/* reset browsers default margin styles*/
}

Expand All @@ -681,52 +683,42 @@ ul.poetry {
*/

.indent-1 {
font-style: normal;
padding-left: 1rem;
}

.indent-2 {
font-style: normal;
padding-left: 2rem;
}

.indent-3 {
font-style: normal;
padding-left: 3rem;
}

.indent-4 {
font-style: normal;
padding-left: 4rem;
}

.indent-5 {
font-style: normal;
padding-left: 5rem;
}

.indent-6 {
font-style: normal;
padding-left: 6rem;
}

.indent-7 {
font-style: normal;
padding-left: 7rem;
}

.indent-8 {
font-style: normal;
padding-left: 8rem;
}

.indent-9 {
font-style: normal;
padding-left: 9rem;
}

.indent-10 {
font-style: normal;
padding-left: 10rem;
}

Expand Down

0 comments on commit 0960ce4

Please sign in to comment.