Group up existing components into elements

This commit is contained in:
2019-11-19 16:12:52 +09:00
parent dc4fc1410d
commit c542bcdcd6
77 changed files with 291 additions and 349 deletions

2
elements/Icon/Icon.pixy Normal file
View File

@ -0,0 +1,2 @@
component Icon(name string)
svg-icon.padded-icon(name=name, class="icon-" + name)

View File

@ -0,0 +1,10 @@
svg-icon
display inline-block
width 1em
height 1em
svg
display inherit
width 1em
height 1em
fill currentColor

View File

@ -0,0 +1,2 @@
component RawIcon(name string)
svg-icon(name=name, class="icon-" + name)