thoughtbot / refills

[no longer maintained]
http://refills.bourbon.io
MIT License
1.5k stars 148 forks source link

Design preliminary layout for refills #407

Closed creuter closed 7 years ago

creuter commented 7 years ago

This adds a temporary placeholder refill to use while we figure out layout and how to display its code. It adds middleman-sprockets for asset packaging.

screen shot 2016-12-16 at 1 10 13 pm

interaction

whmii commented 7 years ago

I might change that JS to be something like the following so that if users want to change it later, it's a little easier to add to modularly:

var expandComponent = function(){
  var $button = $("button");
  $menu = $button.siblings(".example");

  var toggleComponent = function() {
    $menu.toggleClass("is-open");
  };

  $menu.click(toggleComponent);
};
$(expandComponent);

p.s. I didn't test this code : P

whmii commented 7 years ago

Generally super pumped to see movement on this 👍

creuter commented 7 years ago

Thanks! Updated based on feedback.