From 99ab539d6c3a2843da99b08198c2bdb0bb9cead2 Mon Sep 17 00:00:00 2001 From: Matt Price Date: Thu, 9 Jul 2020 13:37:16 -0400 Subject: [PATCH] a few css additions, cleanup --- poem.css | 20 +++++++++++++++++++- poem.js | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/poem.css b/poem.css index d936e12..b28f4e5 100644 --- a/poem.css +++ b/poem.css @@ -17,15 +17,17 @@ line { word { margin-left: .222em; color: green; + display: inline; /*Important!! Don't display on own line*/ } /* consider whether you want to color/display your punctuation */ punctuation { - + display: inline; } indent { white-space: pre-wrap; /*preserve whitespace of indentations*/ + display: inline; } @@ -34,6 +36,22 @@ line::before { counter-increment: poem; /* background-color: magenta; */ content: counter(poem); + width: 2em; background-color: #DDD; } + +.death { + color: #991111; + background-color: rgba(4,4,4,0.3); + font-weight:700; +} + +.wealth { + color: gold; + font-style: italic; +} + +.prayer { + background-color: magenta; +} diff --git a/poem.js b/poem.js index f6a43b2..2fd2719 100644 --- a/poem.js +++ b/poem.js @@ -583,4 +583,4 @@ let poem=[ } ] } -] \ No newline at end of file +]