Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <template lang="jade">
  2. - var background = 'path(d="M0 0h24v24H0z" fill="none")'
  3. svg(height="0" width="0" style="position:absolute; margin-left: -100%;")
  4. //- If your shape consist of many small chunks, you’ll need to wrap them all with a g tag and add an ID to that group.
  5. g#check-box-outline
  6. #{background}
  7. path(d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z")
  8. g#check-box
  9. #{background}
  10. path(d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z")
  11.  
  12. //- The xlink:href attribute is a reference to our shape by its ID:
  13. svg.icon(viewBox="0 0 24 24")
  14. use(xlink:href="#check-box")
  15. </template>
  16.  
  17. <script>
  18. export default {
  19. name: 'icons'
  20. }
  21. </script>
  22.  
  23.  
  24. <style lang="stylus">
  25. .icon
  26. width 24px
  27. height 24px
  28. fill #0099CC
  29. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement