rmrevin / yii2-fontawesome

Asset Bundle for Yii2 with Font Awesome http://fortawesome.github.io/Font-Awesome/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot make stack larger

robsch opened this issue · comments

FAS::stack()
  ->on(FAS::icon(FAS::_CIRCLE)->size(FAS::SIZE_3X))
  ->icon(FAB::icon(FAB::_TWITTER)->inverse()->size(FAS::SIZE_3X))

The circle does not get bigger. AFAIK the Stack::__toString() method does not allow such changed. Stacks work only with a single size. How can I enlarge the stack the right way?
I would suggest the feature to set the size of a stack as well: e.g. with

FAS::stack()->size(FAS::SIZE_3X))
  ->on(FAS::icon(FAS::_CIRCLE))
  ->icon(FAB::icon(FAB::_TWITTER)->inverse())

The icon should be one size smaller than the circle automatically.

Also inverting the icon could be done automatically.

Hey. I apologize for the long answer. Welcome to pull request.