~alcinnz/rhapsode

97ae04ec378c395598d00ddc279da7a495278ae1 — Adrian Cochrane 5 years ago 8adde0e
Upgrade Stylist dependency, fix default table styles.

I forgot that the content property replaces all children.
2 files changed, 3 insertions(+), 3 deletions(-)

M rhapsode.cabal
M src/DefaultCSS.hs
M rhapsode.cabal => rhapsode.cabal +1 -1
@@ 64,7 64,7 @@ executable rhapsode
        http-client, http-client-tls, bytestring,
        html-conduit, xml-conduit, text, containers,
        network-uri,
        stylish-haskell >= 0.4.0, css-syntax, stylish-html-conduit >= 0.2.0.0, scientific
        stylist, css-syntax, xml-conduit-stylist, scientific
  
  -- Directories containing source files.
  hs-source-dirs:      src

M src/DefaultCSS.hs => src/DefaultCSS.hs +2 -2
@@ 24,8 24,8 @@ userAgentCSS = unlines [
  "",
  "/** Tables **/",
  "table::before {content: 'Table'; voice-volume: x-soft}",
  "tr {cue-before: url(bulletpoint.wav); content: 'row'}",
  "td, th {cue-before: url(bulletpoint.wav) -1db; content: 'cell'}",
  "tr {cue-before: url(bulletpoint.wav);}",
  "td, th {cue-before: url(bulletpoint.wav) -1db;}",
  "th > :th /* Rhapsode-specific, selects inlined table headers */ {speak: never;}",
  "table caption {voice-volume: soft}",
  "",