Created
September 6, 2017 10:26
Star
You must be signed in to star a gist
Scoped CSS Snippet (Blog)
This file contains 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> | |
<require from="./card-styles.css" as="scoped"></require> //only works in Firefox at the time of writing | |
<template id="info-card"> | |
<div class="card-content"> | |
<slot name="header">To be replaced with header</slot> | |
<div class="card-body"> | |
<slot name="body"><p>To be replaced with body </p></slot> | |
</div> | |
</div> | |
</template> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment