How to increaase the size of a button image?

62 views
Skip to first unread message

amreus

unread,
Sep 27, 2020, 5:40:41 PM9/27/20
to TiddlyWiki
Hello,


How can I increase the size of the images?  I assume using a Stylesheet but I don't know the correct classes or rules to use. css is still sort of a mystery to me at this stage.

Thanks.

amreus

unread,
Sep 27, 2020, 6:32:40 PM9/27/20
to TiddlyWiki
By trial-and-error I found setting the font-size will size the svg icons as well. Not sure if it's correct but it works.  See link above for a image clipboard gallery.

PMario

unread,
Sep 28, 2020, 4:24:16 AM9/28/20
to TiddlyWiki
Hi,

You did create a style definition, which imo is OK for your usecase.
<div style ... >

My example uses 
<div class=myClass>

The CSS rule, that is responsible for buttons is:

button svg.tc-image-button, button .tc-image-button img {
    height: 1em;
    width: 1em;
}

So if you define your own CSS tiddler you could use the following. Since you only use SVG icons you can use:

.myClass button svg.tc-image-button{
    height: 2em;
    width: 2em;
}

have fun!
mario
Reply all
Reply to author
Forward
0 new messages