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

Changing the look of the Roll Button

1476223240
Falcon
Pro
Sheet Author
Is there a way through CSS to change the Button so it doesn't have the 20 sided dice first?  I would like to replace that with a ten sided dice from my game since it is D10 based.
1476224266
Kryx
Pro
Sheet Author
API Scripter
Yes. If you use chrome inspector on the shaped sheet buttons (titles at the bottom of boxes) you can see I change them quite a bit. You can either set display: none or content: '' which will make it empty. I forget exactly what I did.
1476227067
Lithl
Pro
Sheet Author
API Scripter
You'll need to change the ::before pseudo-element of the button. If you want to change which kind of die is displayed, you'll have to change the font (to dicefontd10 IIRC if you want a d10 image).
1476227313
Falcon
Pro
Sheet Author
I saw some of the code that eliminate the box and look but I can't find where you eliminated the image of the dice. .charsheet button[type=roll] { background-image: none; border: 0; box-shadow: none; text-align: left; text-shadow: initial; }
1476227422
Kryx
Pro
Sheet Author
API Scripter
As Brian mentioned it's in the before. If you set the before content to an empty string the dice goes away.
1476227440
Falcon
Pro
Sheet Author
Thanks Brian - I have the font ready to go.  How would you write pseudo-element of the button in css code?
1476227504
Falcon
Pro
Sheet Author
You both are masters at this.  Thank you
1476227821
Falcon
Pro
Sheet Author
.charsheet button[type=roll]::before {     font-family: "dicefontd10" }
1476230740
Falcon
Pro
Sheet Author
I got it working. .charsheet button[type=roll]::before {     display:none; }