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

Adjusting inline roll formatting for specific sections.

I have a question I know there are several styles for handling how rolls are displayed. The ones I use, are listed below. What I have been trying to do has been eluding me for a bit. I think I understand a little bit of how and why what I want isnt working, but I just cant figure out the correct code to do what I want. I think its the order of precedence with css classes that I'm not getting or understanding properly. First, all of the rolls have some inherent letter spacing, I want to strip that out. Its annoying and just takes up space for certain rolls such as successive attack rolls separated by "/" or purely display rolls that show the number of dice to be rolled such as, " Damage 6 d6". It should read, " Damage 6d6" Second I want to create, a style where the rolls are blacked out background color and text color black (for fullcrit,fail and important). Then when you mouse over it it removes the black background and adds the correct text color for crit/fail and important. I know its possible, but the only way I've gotten it to work is globally not within a specific span. <span class="sheet-compressedroll"></span> <span class="sheet-blackoutroll"></span> .sheet-rolltemplate-35Adv_spell .inlinerollresult {background-color: transparent; border: none;} .sheet-rolltemplate-35Adv_spell .inlinerollresult.fullcrit {color: #3FB315; border: none;} .sheet-rolltemplate-35Adv_spell .inlinerollresult.fullfail {color: #B31515; border: none;} .sheet-rolltemplate-35Adv_spell .inlinerollresult.importantroll {color: #4A57ED; border: none;} Here is what I have so you can see perhaps what I have and what I want. Auto Calc fields and attack/damage dont need to have all that extra space between.
1429481096

Edited 1429481283
vÍnce
Pro
Sheet Author
Hi Toby. I posted a similar problem recently Q: formatting a single .inlinerollresult.importantroll that G.V. helped me solve. You might find something there to help. In my case I didn't use <span>. I applied a class to a <td> tag.
Thanks, that's exactly what I was looking for. I guess I should have searched better before I asked.