Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Created September 6, 2017 10:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save freshcutdevelopment/9a8fa8af1ea9742450969509a97cf10f to your computer and use it in GitHub Desktop.
Scoped CSS Snippet (Blog)
<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