jedfoster / SassMeister

The Sass playground
http://sassmeister.com
199 stars 25 forks source link

Allow options in embed code, possibly via data-attributes #122

Closed lunelson closed 9 years ago

lunelson commented 10 years ago

I just used the embed feature for the first time the other day and realized that of course the embeds come out in the default colors, which I'm not used to seeing. Also, I couldn't figure out a way to change the size of the font, which was fairly large. Would there be any way to specify these as data- attributes perhaps, on the embed code?

jedfoster commented 9 years ago

The embed code now includes your current theme, which you can obviously change.

You can also set data-font-size to a decimal; e.g.: reduce the font-size with data-font-size="0.85". I'm going to leave this option undocumented for now, and it may be removed at some point in the future.

lunelson commented 9 years ago

Thanks for this @jedfoster, very nice! —but I believe you've got a fault in the embed script:

it's calling http://embed.sassmeister.dev and so doesn't resolve the host right now