Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size of svg icon in TW, a documentation macro #4153

Closed
kookma opened this issue Aug 3, 2019 · 3 comments
Closed

Size of svg icon in TW, a documentation macro #4153

kookma opened this issue Aug 3, 2019 · 3 comments

Comments

@kookma
Copy link
Contributor

kookma commented Aug 3, 2019

The svg icons appear in TW documentation tiddlers are very big and does not look consistent with font size and seems a little annoying!

See for example see: (https://tiddlywiki.com/prerelease/#Using%20Stamp)

One simple solution is a documentation macro to solve this

CSS:

.kk-doc svg{
width: 1.2em;
height: 1.2em;
vertical-align: middle;}

Macro

\define doc-svg(tiddler:"", color:"")
<span class="kk-doc" style="fill:$color$;"><$transclude tiddler=<<__tiddler__>> /></span>
\end

A working version is available here https://github.com/kookma/TW-Trashbin
See the index.html

@Jermolene
Copy link
Member

Hi @kookma I concur that the present arrangement looks klunky. As you note, a good solution would require a bit of CSS and an update to the markup used to incorporate the images in the text.

@kookma
Copy link
Contributor Author

kookma commented Aug 4, 2019

Hi @Jermolene
I hope you find free time to do this minor adjustments!
TW really deserves great and nice looking documentation tiddlers.

@Jermolene
Copy link
Member

Hi @kookma it does indeed look a lot better. Here's an example before/after shot:

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants