.tc-editor-toolbar button {
fill: Red;
background-color: Yellow;
}
.tc-image-list-bullet {
fill: red;
background: yellow;
}
Sorry for the formatting, I'm on my phone!
I got it by doing something like this...
---
.tc-editor-toolbar > .tc-reveal > button {
display: inline-flex;
padding: 0;
}
.tc-editor-toolbar button .tc-image-button {
padding: 2px;
font-size: 1.25em;
}
.tc-editor-toolbar button .tc-image-list-bullet {
display: flex;
align-items: stretch;
justify-content: stretch;
fill: red;
background-color: yellow;
}
---
More experienced people might have a better solution, but what I basically did was to set the button to flex so that the svg it contains can fill it up, and then the svg itself can now be targeted to have a background. The background will now fill the button thanks to inline-flex.
I set a font size to tc-image-button because inline-flex affected the size of the button, and i used inline-flex instead of flex so the buttons will arrange themselves inline without needing for the whole container to be set to flex too.
I wonder if this will work nicely in all cases hehe
-jd
.tc-editor-toolbar > .tc-reveal > button {
padding: 0px;
}
.tc-editor-toolbar button .tc-image-button {
padding: 4px 0px;
font-size: 1.45em;
}
.tc-editor-toolbar button .tc-image-list-bullet {
fill: white;
background-color: #0044BB;
border-radius: 4px;
}
.tc-editor-toolbar button:hover .tc-image-list-bullet {
fill: #0044BB;
background-color: #D1DDF3;
}
Again I don't know on desktop how this looks but you can also add a width to the svg to make it narrower. This looks ok on my phone:
---
.tc-editor-toolbar button .tc-image-button {
padding: 4px 0px;
font-size: 1.45em;
width: 30px;
}
--
I just added the 30px width.
-jd
Hi,
I played around with JDs solution (which as such works) and tried to simplify and polish it.
To my surprise I ended up with a 'flexless' solution which - at least under my conditions (Linux Mint 19.3, Firefox & Chrome) - gives good results:
width=28.5 px;
.tc-editor-toolbar > .tc-reveal > button