Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template lang="jade">
- - var background = 'path(d="M0 0h24v24H0z" fill="none")'
- svg(height="0" width="0" style="position:absolute; margin-left: -100%;")
- //- 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.
- g#check-box-outline
- #{background}
- 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")
- g#check-box
- #{background}
- 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")
- //- The xlink:href attribute is a reference to our shape by its ID:
- svg.icon(viewBox="0 0 24 24")
- use(xlink:href="#check-box")
- </template>
- <script>
- export default {
- name: 'icons'
- }
- </script>
- <style lang="stylus">
- .icon
- width 24px
- height 24px
- fill #0099CC
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement