I have changed colors, font and font family but, I just want to add a unique border to every block using css stroke property, I want the property to be attached to only a specific block, aka every blocks needs to have a unique stroke colors (not possible till now). So, can anyone help me attach a unique id/class to every block category like, I want to attach color-block class/id to color category so that I can apply a unique color border (dark grey border to it). I have tried to do much things but, all threw errors for me.
What i want ?
I just want to attach a unique id to a certain block category so that my css changes don't get applied on other category blocks and are only applied to a certain block category
@ewpatton Sir, I guess it is possible to do it in code if we can do with inspect element
Hello @Know_About_IT,
If you want a workaround with pure CSS, so you can try this, which uses the fill colour property of the block to change the stroke. path.blocklyPath[fill="#B32D5E"] { stroke-width: 3px; stroke: red; }
Where the fill property above us set to the colour of the block you want to change its stroke.
This results in:
That would actually do it, for example:
Assuming that you have the text category which have the block colour: #B32D5E and want to add the stroke colour: red, so you can add to your appinventor instance CSS: