Skip to content

Commit 72dc91f

Browse files
committed
Playground styles
1 parent 37503ff commit 72dc91f

File tree

2 files changed

+28
-15
lines changed

2 files changed

+28
-15
lines changed

website/src/playground.html

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
<div class="back-link">
2-
<a href="#">
3-
<span class="icon">
4-
<svg data-slot="icon" fill="none" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
5-
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9.75 14.25 12m0 0 2.25 2.25M14.25 12l2.25-2.25M14.25 12 12 14.25m-2.58 4.92-6.374-6.375a1.125 1.125 0 0 1 0-1.59L9.42 4.83c.21-.211.497-.33.795-.33H19.5a2.25 2.25 0 0 1 2.25 2.25v10.5a2.25 2.25 0 0 1-2.25 2.25h-9.284c-.298 0-.585-.119-.795-.33Z"></path>
6-
</svg>
7-
</span>
8-
Back
9-
</a>
10-
</div>
111
<h1>Playground</h1>
12-
<div class="playground-versions">{versions-menu}</div>
2+
<div class="playground-navigation">
3+
<div class="back-link">
4+
<a href="#">
5+
<span class="icon">
6+
<svg data-slot="icon" fill="none" stroke-width="1.5" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
7+
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9.75 14.25 12m0 0 2.25 2.25M14.25 12l2.25-2.25M14.25 12 12 14.25m-2.58 4.92-6.374-6.375a1.125 1.125 0 0 1 0-1.59L9.42 4.83c.21-.211.497-.33.795-.33H19.5a2.25 2.25 0 0 1 2.25 2.25v10.5a2.25 2.25 0 0 1-2.25 2.25h-9.284c-.298 0-.585-.119-.795-.33Z"></path>
8+
</svg>
9+
</span> Back
10+
</a>
11+
</div>
12+
<div class="playground-versions">{versions-menu}</div>
13+
</div>
1314
<div class="sandbox-wrapper">
1415
<div class="editor">
1516
<textarea id="code-input" class="input" spellcheck="false"></textarea>

website/src/scss/parts/playground.scss

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@
7272
padding-top: 0.25rem;
7373
z-index: 3;
7474

75-
@include media("min", "lg") {
76-
display: none;
77-
}
78-
7975
a {
8076
display: block;
8177
width: 24px;
@@ -143,9 +139,25 @@
143139
}
144140
}
145141

142+
.playground-navigation {
143+
display: flex;
144+
flex-direction: column;
145+
gap: 1rem;
146+
147+
@include media("min", "md") {
148+
flex-direction: row;
149+
justify-content: space-between;
150+
align-items: center;
151+
}
152+
}
153+
146154
.playground-versions {
155+
min-width: 200px;
156+
width: 100%;
157+
147158
@include media("min", "md") {
148159
max-width: 200px;
160+
margin-left: auto;
149161
}
150162

151163
.dropdown .dropdown-wrapper > a:after {

0 commit comments

Comments
 (0)