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

Buttons for API Commands

While I can use Roll Buttons to send API commands, it keeps putting that annoying dice in the :before section. All of my efforts to remove that image from the button have been in vain, unless I remove the type="roll", however without that, it won't send the command to the chat window. Is there a way to remove the dice image? If not, is there another type of button not mentioned in the character sheets section of the wiki that will send API commands without filling in the content of the button?
1434924604
Lithl
Pro
Sheet Author
API Scripter
You can get rid of it with your CSS. This is from my Exalted sheet: button[type=roll].sheet-blank-roll-button::before { content: ""; } If you want to replace it with something else, note that the ::before uses the d20 dice font, so any content you do use will be using that font unless you also change the font.
Awesome, thank you!
How would I overwrite the .ui-dialog .charsheet button[type=roll] style? I tried adding a button[type=roll] style, but it's still getting it's margins from Roll20's default, which is causing a problem with my layout.