Skip to content

Commit 0960ce4

Browse files
committed
DRY up line-indent styles for poetry
Also add the .poem class to the attribute selector. Note the TODO regarding what this does to lines of poetry that might include italics.
1 parent 534ad9b commit 0960ce4

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

_sass/_ed.scss

+3-11
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,9 @@ ul.poetry {
670670

671671

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

@@ -681,52 +683,42 @@ ul.poetry {
681683
*/
682684

683685
.indent-1 {
684-
font-style: normal;
685686
padding-left: 1rem;
686687
}
687688

688689
.indent-2 {
689-
font-style: normal;
690690
padding-left: 2rem;
691691
}
692692

693693
.indent-3 {
694-
font-style: normal;
695694
padding-left: 3rem;
696695
}
697696

698697
.indent-4 {
699-
font-style: normal;
700698
padding-left: 4rem;
701699
}
702700

703701
.indent-5 {
704-
font-style: normal;
705702
padding-left: 5rem;
706703
}
707704

708705
.indent-6 {
709-
font-style: normal;
710706
padding-left: 6rem;
711707
}
712708

713709
.indent-7 {
714-
font-style: normal;
715710
padding-left: 7rem;
716711
}
717712

718713
.indent-8 {
719-
font-style: normal;
720714
padding-left: 8rem;
721715
}
722716

723717
.indent-9 {
724-
font-style: normal;
725718
padding-left: 9rem;
726719
}
727720

728721
.indent-10 {
729-
font-style: normal;
730722
padding-left: 10rem;
731723
}
732724

0 commit comments

Comments
 (0)