Created
September 6, 2017 10:26
-
-
Save freshcutdevelopment/9a8fa8af1ea9742450969509a97cf10f to your computer and use it in GitHub Desktop.
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