Thanks for Sharing. On Wednesday, March 13, 2019 at 12:46:31 PM UTC+11, Kalcifer Kandari wrote: > > I created a workaround for media where the aspect ratio is known. The > width can be set to 100%, and for 16:9, the height can be calculated using > this CSS: height: calc( ( 100vw - <static_elements_width>px ) / 16 * 9);, > where <static_elements_width> is the total width of elements that do not > flex. @media would also need to be used as well for the sidebar > breakpoint. > > Not sure how elegant this is, but wouldn't be difficult to incorporate > into a macro where the CSS is inline and the aspect ratio is a parameter. > > Kalcifer >
-- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3d912d54-e727-4589-ba85-0fa17377c1a0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

