ChapelR / custom-macros-for-sugarcube-2

A collection of systems and macros for Twine.
https://macros.twinelab.net/
The Unlicense
166 stars 44 forks source link

Speech box styles #58

Closed tmedwards closed 2 years ago

tmedwards commented 2 years ago

It might be a good idea to use child selectors on the .say children to avoid selecting descendant elements. E.g.,

.say > img {
.say > p:first-of-type {
.say > p:last-of-type {

https://github.com/ChapelR/custom-macros-for-sugarcube-2/blob/3bdbdfbe5ae47a46e4f4e52766d78701939ae9a6/scripts/speech.css#L6 https://github.com/ChapelR/custom-macros-for-sugarcube-2/blob/3bdbdfbe5ae47a46e4f4e52766d78701939ae9a6/scripts/speech.css#L12 https://github.com/ChapelR/custom-macros-for-sugarcube-2/blob/3bdbdfbe5ae47a46e4f4e52766d78701939ae9a6/scripts/speech.css#L18

ChapelR commented 2 years ago

Good idea. Thanks.