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

Roll template very messy with dark mode

Hi folks, The character sheet I'm using for a game has a roll template that looks like this :  When using dark mode, it's all messy and unreadable : I suspect that since the sheet was created before dark mode was introduced, that's why it's not super compatible. I would like to update the roll template to make it more user friendly for those who prefer dark mode. Roll template appears in the CSS file like that : /* ROLL TEMPLATE STYLE ----------------------------- */ .sheet-rolltemplate-rolls div.sheet-template-container { border: 2px solid black; border-radius: 0.3em; box-shadow: inset 0px 0px 3px 1px #226aae; text-align: center; font-family: 'fantasy'; /* DICE ROLL STYLES ----------------------------- */ } .sheet-rolltemplate-rolls div.sheet-template-container .inlinerollresult.fullfail, .sheet-rolltemplate-rolls div.sheet-template-container .inlinerollresult.fullcrit, .sheet-rolltemplate-rolls div.sheet-template-container .inlinerollresult.importantroll { border: none; } .sheet-rolltemplate-rolls div.sheet-template-container .inlinerollresult.fullfail, .sheet-rolltemplate-rolls div.sheet-template-container .inlinerollresult.fullcrit { color: #226aae; } .sheet-rolltemplate-rolls div.sheet-template-container .inlinerollresult { background-color: transparent; border: none; font-size: 2em; padding: unset; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-header { color: #226aae; font-size: 1.5em; border-bottom: 2px solid black; padding: 3% 2%; text-transform: capitalize; margin-top: 0px; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body { background-color: whitesmoke; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-row:nth-child(2n+0) { background-color: #fefcea; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-row span.sheet-inlinerollresult { color: #226aae; font-size: 2em; font-weight: bold; cursor: help; padding: 0 3px 0 3px; font-weight: bold; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-row span.sheet-percent, .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-row span.sheet-template-desc { color: #226aae; font-size: 1em; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-damage { background-color: #fff; padding: 3% 2%; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-roll { display: inline-grid; grid-template-columns: 1fr 1fr; width: 100%; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-roll div.sheet-template-col { padding: 5%; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-roll div.sheet-template-col:nth-of-type(2) { border-left: 2px solid black; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-roll div.sheet-template-col span { display: block; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-roll div.sheet-template-col span:last-child { margin-top: 5%; } Is there a section I should look at specifically ? Thanks for your help folks :)
1711643490

Edited 1711645440
vÍnce
Pro
Sheet Author
If you just want to fix the light text on the light background; you can override darkmode's specificity by including at least three classes(which you do...), but you also should declare a text color. try adding color: #000; to those class declarations that only have a background-color defined. example; .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body { background-color: whitesmoke; color: #000; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-row:nth-child(2n+0) { background-color: #fefcea; color: #000; } .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-damage { background-color: #fff; padding: 3% 2%; color: #000; }
1711643824

Edited 1711645327
vÍnce
Pro
Sheet Author
To create darkmode versions of some of those class declarations so they take effect only when darkmode is selected; <a href="https://wiki.roll20.net/Character_Sheet_Development/Dark_Mode" rel="nofollow">https://wiki.roll20.net/Character_Sheet_Development/Dark_Mode</a> .sheet-rolltemplate-darkmode .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body { color: whitesmoke; background-color: #000; } .sheet-rolltemplate-darkmode .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-row:nth-child(2n+0) { color: #fefcea; background-color: #000; } .sheet-rolltemplate-darkmode .sheet-rolltemplate-rolls div.sheet-template-container div.sheet-template-body div.sheet-template-damage { color: #fff; background-color: #000; } You may need to make similar darkmode versions for other classes as well.
Thanks for the tips Vince :) I'll have a look and play around with the code in my test game, will report ;)
1711886396
Stephen C.
Pro
Sheet Author
Check the sheet.json file and see if it's a Legacy sheet. If it is, then you'll need to convert it to CSE before you can add dark-mode-specific CSS.