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

CSS not loading

Hello,  I have build a character sheet for a game (NoteQuest). It works fine on the sandbox, and it was merged to roll20 official repository. When I create a new game (NoteQuest), the css does not load. Any suggestions?
1643154556

Edited 1643155216
Kraynic
Pro
Sheet Author
It seems to be something cropped out by the 1000 entry limit for github to display, so I can't just scroll to the folder and look.  However, running a search only turns up 3 entries for "notequest": html, json, and yaml.  It might be that somehow the css wasn't merged at all, and is actually missing on the main repository. Edit: Might want to submit an issue on the main repository, so whoever is tasked with maintaining it can check it out.
1643155558
Kraynic
Pro
Sheet Author
Ok, I was searching the wrong way to find the files.  It looks like there was some failure with the sheet (specifically on the css file), and it was somehow merged anyway.  If you look at the css file, a couple things that jump out to me is that there is a blank line at the start, and several blank lines at the end. It would not surprise me if the blank lines are the issue.
1643193845
Finderski
Pro
Sheet Author
Compendium Curator
If we are talking about this CSS file:&nbsp; <a href="https://github.com/Roll20/roll20-character-sheets/blob/72a0fa8eda6cb22f60406aae436814cbcfd08b16/notequest/notequest.css" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/blob/72a0fa8eda6cb22f60406aae436814cbcfd08b16/notequest/notequest.css</a> The immediate issue would be they aren't formatted for the legacy sanitization (which the sheet.json seems to indicate should be used). &nbsp;Either sheet.json need to change the legacy line to "legacy": false, or the css will need to be updated to include sheet- in front of the classes...for example: .charsheet .sheet-border1{ padding: 0px; margin: 0; border: 1px solid rgba(208, 208, 208); } I don't know what the sheet is supposed to look like, but when when I added the code to a test game with legacy sanitization set to false, the sheet looks like this: When I set it to use legacy sanitization (like it currently is in the sheet.json), it looks like this:
Thank you. I will update the json as you instructed. Finderski said: If we are talking about this CSS file:&nbsp; <a href="https://github.com/Roll20/roll20-character-sheets/blob/72a0fa8eda6cb22f60406aae436814cbcfd08b16/notequest/notequest.css" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/blob/72a0fa8eda6cb22f60406aae436814cbcfd08b16/notequest/notequest.css</a> The immediate issue would be they aren't formatted for the legacy sanitization (which the sheet.json seems to indicate should be used). &nbsp;Either sheet.json need to change the legacy line to "legacy": false, or the css will need to be updated to include sheet- in front of the classes...for example: .charsheet .sheet-border1{ padding: 0px; margin: 0; border: 1px solid rgba(208, 208, 208); } I don't know what the sheet is supposed to look like, but when when I added the code to a test game with legacy sanitization set to false, the sheet looks like this: When I set it to use legacy sanitization (like it currently is in the sheet.json), it looks like this:
1643243921

Edited 1643243945
Kraynic
Pro
Sheet Author
I didn't even think about the legacy flag in the .json.&nbsp; That probably explains the error flag on the css file.