sass-site/source/playground.liquid
Stacy Kvernmo f4f5cc0441 Merge branch 'browser-code-editor' of https://github.com/oddbird/sass-site into browser-code-editor
# Conflicts:
#	source/assets/sass/components/_playground.scss
#	source/playground.liquid
2023-06-12 13:38:27 -05:00

63 lines
1.9 KiB
Plaintext

---
layout: base
title: Playground
is_playground: true
---
<div class="sl-c-playground" data-compiler-has-error="false">
<div class="sl-c-playground__code-editor-wrapper" data-code="precompiled">
<div
class="sl-c-playground__editor-tabbar"
data-active="scss"
data-setting="inputFormat">
<button
type="button"
data-value="scss"
data-tabbar="item"
class="sl-c-button sl-c-button--tab"
data-setting="inputFormat">SCSS</button>
<button
type="button"
data-value="indented"
data-tabbar="item"
class="sl-c-button sl-c-button--tab"
data-setting="inputFormat">Sass</button>
</div>
<div id="editor"></div>
</div>
<div class="sl-c-playground__code-editor-wrapper" data-code="compiled">
<div
class="sl-c-playground__editor-tabbar"
data-active="expanded"
data-setting="outputFormat">
<span data-tabbar="item">
<strong>CSS</strong>
(Compiled)
</span>
<button
type="button"
data-value="expanded"
data-tabbar="item"
class="sl-c-button sl-c-button--tab"
data-setting="outputFormat">Expanded</button>
<button
type="button"
data-value="compressed"
data-tabbar="item"
class="sl-c-button sl-c-button--tab"
data-setting="outputFormat">Compressed</button>
</div>
<div id="code-editor-error-alert" class="sl-c-callout sl-c-callout--warning">Please resolve error to view compiled CSS.</div>
<div id="css-view" class="is-compiled"></div>
</div>
<div class="sl-c-playground__console-wrapper">
<div class="sl-c-playground__editor-tabbar">
<span data-tabbar="item">
Console
</span>
</div>
<pre class="console"></pre>
</div>
</div>
<script type="module" src="/assets/dist/js/playground.js" async></script>