0

I'm using Clay to generate CSS rules in Haskell. For example:

cssStyle :: Css
cssStyle = body ? paddingTop (px 60)

generates this CSS:

body {padding-top : 60px;}

How can I add an !important tag to this rule that yields

body {padding-top : 60px !important;}
Uli Köhler
  • 13,012
  • 16
  • 70
  • 120

1 Answers1

3

You can use the -: operator to specify a custom value:

cssStyle :: Css
cssStyle = body ? ("padding-top" -: "60px !important")
Fraser
  • 1,521
  • 2
  • 14
  • 23