![](/s/cache/46/64/466451bb5ac9a98df3506dbeba38cf7c.png)
+1
Answered
Flex Templates--Will they use LESS or SASS, or both?
Hi There!
I and some other colleagues noted that the Flex templates will use Bootstrap , which can use LESS or SASS http://docs.townnews.com/kbpublisher/Flex-Overview_9180.html#Bootstrap.
Has TN already chosen one or the other for use? Or will there be an option?
Thanks!
I and some other colleagues noted that the Flex templates will use Bootstrap , which can use LESS or SASS http://docs.townnews.com/kbpublisher/Flex-Overview_9180.html#Bootstrap.
Has TN already chosen one or the other for use? Or will there be an option?
Thanks!
Answer
![](/s/cache/71/a7/71a7c65ec9f89baf073539b0498173c4.png)
I'd vote or SASS, but I really doubt TN will do CSS preprocessing on the fly. (I'd be happy to be proven wrong, though.)
I'd settle for them allowing us to use UTL inside their stylesheets to create variables and loops, though .scss files would be better.
I'd settle for them allowing us to use UTL inside their stylesheets to create variables and loops, though .scss files would be better.
![](/s/cache/86/78/8678fccc68c8a12d52a4416eb9ef3a5d.png)
Answer
Answered
We aren't using SASS or LESS right now with Flex, but we do have some really interesting tricks we've employed. For one, we have some sections of CSS which are now included in page - which means that you can run UTL in that CSS.
This allows you to do things like conditionals which check the section and then implement CSS if it matches. Or, using a variable color defined in your page customization as the background for a custom block or custom design.
This should be used sparingly, of course, because you don't want 10,000 lines of CSS on your front page.
But it does allow for some programmatic changes, and it gets rid of a separate site CSS http call.
This allows you to do things like conditionals which check the section and then implement CSS if it matches. Or, using a variable color defined in your page customization as the background for a custom block or custom design.
This should be used sparingly, of course, because you don't want 10,000 lines of CSS on your front page.
But it does allow for some programmatic changes, and it gets rid of a separate site CSS http call.
Customer support service by UserEcho
This allows you to do things like conditionals which check the section and then implement CSS if it matches. Or, using a variable color defined in your page customization as the background for a custom block or custom design.
This should be used sparingly, of course, because you don't want 10,000 lines of CSS on your front page.
But it does allow for some programmatic changes, and it gets rid of a separate site CSS http call.