Forum How do I...?

scss markup with @page

javib
Just testing PrinceXML for the first time and I have to say that I find it amazing!

I have some experience with css and I was wondering how princexml custom properties deals with css preprocessors such as scss

I was looking at @page element and wondering if I can nest properties in this way so I can keep the code a bit more compact. I am getting compilations errors.

Many thanks!

@page {
@rightnote {
}
&:left {
@top-left {
}
}
&:right {
@top-right {
}
}
}
mikeday
Prince doesn't do anything with scss itself, so you would need to run the preprocessor first, or access the document through a HTTP server that runs the preprocessor on demand.