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

Problem with removing die icon on roll buttons

1489053297

Edited 1489053364
David
Sheet Author
I would like to remove the icon from some, but not all of the buttons on a sheet. So I have reset it in the css button[type="roll"]:before { content: ""!important; font-size:0.75em; display: none; } And then manually added back in on the buttons were I want it. <td><button type="roll" name="roll_Idea" value="removed for clarity"}}" >t</button></td> <td><button type="roll" name="roll_Idea" value="removed for clarity" >x?</button></td> .sheet-old_roll{ font-family:dicefontd20; margin:0px!important; } .sheet-new_roll{ margin:0px!important; font-size:1em!important; } Now with customs sheets this works  From the drop down it does not Anybody have any idea how I could fix this?
It takes time before any changes you make to your character sheet are added to Roll20 from github. The devs have to do a pull  or push or whatever it is they do.
1489053635
David
Sheet Author
I have not made any changes It was just merged and I was checking it and saw the differences.
1489054899
Finderski
Pro
Sheet Author
Compendium Curator
I just created a custom class for the buttons I wanted to look differently. button[type=roll].sheet-GM-button::before {      background-image: none;     /*background-color: #f2f5d3;*/     /*background-color: white;*/     font-size: 13px;     font-family: sans-serif;     content: "gm"; } button[type=roll].sheet-GM-button {     background-image: none;     background-color: #f2f5d3; }
1489055797

Edited 1489055815
David
Sheet Author
Ok, thank you for that. I tried that and it in custom and it worked, I will make changes and make a pull request and wait a week.
1489061490
Kryx
Pro
Sheet Author
API Scripter
As Finderski has done above I'd recommend turning the ones you want off. Turning them all off and then trying to turn some back on is a bad practice for CSS and you'll often encounter problems using such a method.
1489064424
David
Sheet Author
Even  more curious is the fact is I use the same method on another sheet and it does display correctly.
1489064936

Edited 1489065123
David
Sheet Author
ahh It seem it is not the same, adding a class to the button seems to negate the button reset (but not on a custom sheet). This works. Runequest 3 <button style="font-family:dicefontd20;margin:0px;" type="roll" value="snipped">t</button><br> <button type="roll" value="snipped" ><div class="sheet-skill_mod_button">-?</div></button> This doesn't CoC DA <td><button class="sheet-old_roll" type="roll" name="roll_Idea" value="snipped" >t</button></td> <td><button class="sheet-new_roll" type="roll" name="roll_Idea" value="snipped" >-?</button></td> Finderski method is better so I will change it to that.  Thanks for the help.