Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Character Sheets With Bootstrap

Hi, I've been searching around and can't really find an answer to this and pretty sure it should have come up by now. I'm trying to use classes from bootstrap without having to redefine them all for use in the character sheet, e.g. every class specified for use in the HTML gains a "sheet-" prefix thus eludes any of the defined CSS layout. I'm opposed to using tables (and nested tables) for the limitations and readability (and it being pretty much dropped in HTML4) and leaves me looking to have to redefine all classes and stripping those which throw security exceptions (classes with javascript inclusion, content with Unicode characters, etc). So, if we're to use Bootstrap, how can we actually access its classes without this redefinition with the sheet- prefix? TIA!
1549210753
Natha
KS Backer
Sheet Author
API Scripter
AFAIK, I don't think it's possible as is, as the character sheet code is parsed and embedded by/in Roll20 other code.
Thanks for the prompt reply Natha. Are there any plans to allow this?  Two possible solutions:     - Define each of these classes as is with the sheet prefix without the Sheet Authors having to achieve this due to some of the earlier mentioned security exceptions.     - Before prefixing the sheet- class determine if these are already defined within Bootstrap (or other technology's CSS defined classes) to hopefully remove their repetition (obviously comes with additional issues). Or, is there somewhere where we can make these suggestions/recommendations? Thanks again!
1549228404

Edited 1549271563
Natha
KS Backer
Sheet Author
API Scripter
James K. said: Thanks for the prompt reply Natha. Are there any plans to allow this?  Two possible solutions:     - Define each of these classes as is with the sheet prefix without the Sheet Authors having to achieve this due to some of the earlier mentioned security exceptions.     - Before prefixing the sheet- class determine if these are already defined within Bootstrap (or other technology's CSS defined classes) to hopefully remove their repetition (obviously comes with additional issues). Or, is there somewhere where we can make these suggestions/recommendations? Thanks again! You're welcome :) I would not know if there are any plans to change the way CSS is handled in the sheets, TBH.  But you're surely welcome to add a suggestion in the dedicated sub-forum .
Thanks again for the quick reply, I've suggested the change here . Cheers!