Thanks a bunch @bjrmatos =D It's something that does not compromise the usage of the Studio, more like some DX improvement.
Posts made by diego-bevilaqua86
-
RE: Configure JSReport Studio editor fontsposted in general forum
-
Configure JSReport Studio editor fontsposted in general forum
I've read the documentation on how to theme JSReport Studio, but as far as I could get it's only possible to change colors with theming. Is there any way to change the fonts used in the editor? I read that I could use a CSS file to customize the editor, but I couldn't quite understand if that way I could modify anything more than I would be able to using the .config.js file
-
RE: Splitting CSS filesposted in general forum
Interestingly enough, using the old
{#asset}directive to inject the assets works perfectly - I can split everything into different files and mix-and-match as I wanted. Should that be considered a regression bug, maybe? -
RE: Splitting CSS filesposted in general forum
Another thing I tried and haven't been successful in doing is using CSS's native
@importto load different CSS files into one. Is that something possible, with a file URL inside the directive, instead of an{{asset}}? -
RE: Splitting CSS filesposted in general forum
Thanks for the help @jan_blaha. I'd read about components already, but it was my understanding they were meant to be used to split the template i.e. split parts of my report's handlebars template. I'll give it a try then.
-
Splitting CSS filesposted in general forum
My company has already some different reports that share common CSS. As the reports grow, also grow the CSS we've been mantaining, so in order to make it something more manageable, I wanted to split it into different CSS files and mix-and-match according to my needs to each report. The idea is something like:
/shared /css base.css system-font.css ...And whatever else we needed. With that structure, I wanted to then import, for example,
system-font.cssintobase.css. That's where my problem begins, as I can't do it using CSS's@importstatement, and trying to use JSReport's{{asset}}doesn't work either - possible assets inside the "imported" CSS file are not correctly parsed and included in the final file. How should I proceed to do this? Is it even something possible to be done?In this playground it's possibile to see what I've tried to explain above.