Last active
February 9, 2018 16:39
-
-
Save ramsaylanier/ba9f5a037a2181f31f7fdd199935a5d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <svg style="display: none"> | |
| <symbol id="rule-icon" viewBox="0 0 24 24"> | |
| <path d="M14,10H19.5L14,4.5V10M5,3H15L21,9V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3M5,5V19H19V12H12V5H5Z"/> | |
| </symbol> | |
| <symbol id="ruleset-icon" viewBox="0 0 24 24"> | |
| <path d="M3,6V22H21V24H3A2,2 0 0,1 1,22V6H3M16,9H21.5L16,3.5V9M7,2H17L23,8V18A2,2 0 0,1 21,20H7C5.89,20 5,19.1 5,18V4A2,2 0 0,1 7,2M7,4V18H21V11H14V4H7Z"/> | |
| </symbol> | |
| </svg> | |
| </template> | |
| <script> | |
| export default { | |
| name: 'icons' | |
| } | |
| </script> | |
| <style scoped> | |
| // the path is styled using a CSS variable which will be declared | |
| // when we use the icon in another component | |
| path{ | |
| fill: var(--path-color); | |
| } | |
| </style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment