Group up existing components into elements
This commit is contained in:
2
elements/Icon/Icon.pixy
Normal file
2
elements/Icon/Icon.pixy
Normal file
@ -0,0 +1,2 @@
|
||||
component Icon(name string)
|
||||
svg-icon.padded-icon(name=name, class="icon-" + name)
|
10
elements/Icon/Icon.scarlet
Normal file
10
elements/Icon/Icon.scarlet
Normal file
@ -0,0 +1,10 @@
|
||||
svg-icon
|
||||
display inline-block
|
||||
width 1em
|
||||
height 1em
|
||||
|
||||
svg
|
||||
display inherit
|
||||
width 1em
|
||||
height 1em
|
||||
fill currentColor
|
2
elements/Icon/RawIcon.pixy
Normal file
2
elements/Icon/RawIcon.pixy
Normal file
@ -0,0 +1,2 @@
|
||||
component RawIcon(name string)
|
||||
svg-icon(name=name, class="icon-" + name)
|
Reference in New Issue
Block a user