-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update HTML partials to be inlined / included via Webpack; …
…update inlined CSS used in iframe srcdoc to get bundled and inlined directly using Webpack
- Loading branch information
Showing
3 changed files
with
50 additions
and
53 deletions.
There are no files selected for viewing
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
20 changes: 11 additions & 9 deletions
20
packages/uikit-workshop/src/html/partials/iframe-loader.html
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
<div class="pl-c-viewport pl-js-viewport"> | ||
|
||
<div class="pl-c-viewport__cover pl-js-viewport-cover"></div> | ||
<div class="pl-c-viewport__cover pl-js-viewport-cover"></div> | ||
|
||
<div class="pl-c-viewport__iframe-wrapper pl-js-vp-iframe-container"> | ||
<div class="pl-c-viewport__iframe-wrapper pl-js-vp-iframe-container"> | ||
|
||
<iframe class="pl-c-viewport__iframe pl-js-iframe" sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-modals" srcdoc='<style>@@include('../../../dist/styleguide/css/pattern-lab--iframe-loader.css')</style>@@include('./iframe-loader.html')'></iframe> | ||
<iframe class="pl-c-viewport__iframe pl-js-iframe" sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-modals" srcdoc="${ require('../partials/iframe-loader.html') }"></iframe> | ||
|
||
<div class="pl-c-viewport__resizer pl-js-resize-container"> | ||
<div class="pl-c-viewport__resizer pl-js-resize-container"> | ||
|
||
<div class="pl-c-viewport__resizer-handle pl-js-resize-handle"></div> | ||
<div class="pl-c-viewport__resizer-handle pl-js-resize-handle"></div> | ||
|
||
</div><!--end pl-c-viewport__resizer--> | ||
</div> | ||
<!--end pl-c-viewport__resizer--> | ||
|
||
</div><!--end pl-c-viewport__iframe-wrapper--> | ||
</div> | ||
<!--end pl-c-viewport__iframe-wrapper--> | ||
|
||
</div><!--end pl-c-viewport--> | ||
</div> | ||
<!--end pl-c-viewport--> |