Fork me on GitHub
#cljfx
<
2021-06-20
>
thom18:06:57

is there a way to specify @font-face rules with Charmingly Simple Styling?

vlaaad19:06:21

cljfx/css is pretty dumb (or simple, of you wish), it only converts maps to indented curly-braced blocks. {"@font-face" {:src ...}} should do the trick

thom20:06:05

The only issue here is that it seems valid to specify multiple font-face rules. I wonder if extending the syntax to accept a vector value and just repeating the key for each might be a simple solution?

vlaaad20:06:28

ah, that's a good point

vlaaad20:06:36

please file an issue!