Autoscoping (#103)
* Add autoscoping with generated demo * Remove manual demo from all snippets * Add JavaScript inside IIFE * Align mouse-cursor-gradient-tracking.md to demo code * Match snippets to demo * Update CONTRIBUTING.md * Create reusable function for code extraction
This commit is contained in:
@ -16,17 +16,7 @@ Brief description
|
||||
|
||||
#### Demo
|
||||
|
||||
<!-- You must create a `snippet-demo` parent block and use it as a namespace with BEM syntax. -->
|
||||
|
||||
<div class="snippet-demo">
|
||||
<some-element class="snippet-demo__snippet-name"></some-element>
|
||||
</div>
|
||||
|
||||
<!-- Add your style rules here. -->
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<!-- Leave this blank, the build script will generate the demo for you. -->
|
||||
|
||||
#### Explanation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user