ireade / caniuse-embed

📊 Embed realtime data from caniuse.com
https://caniuse.bitsofco.de
325 stars 21 forks source link

Allow font-size adjustments #23

Open mirisuzanne opened 3 years ago

mirisuzanne commented 3 years ago

This is such a great tool, thank you!

I'd like to use it for embedding data inside HTML slides when I present at conferences. But the set font-size is very small for a slide format:

html {
  font-size: 62.5%;
}

Since there's no way to style an iframe contents based on context, this feature would need to be built-in explicitly. I propose exposing a data-base-size attribute on the .ciu_embed paragraph, and applying the value to html as an override of the default font-size.

<html dir="ltr" lang="en" style="font-size: {provided-base-size}">