File tree Expand file tree Collapse file tree 5 files changed +50
-4
lines changed
Expand file tree Collapse file tree 5 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 1818 < button class ="run-button "> Run</ button >
1919 < button class ="link-button "> Link</ button >
2020 </ div >
21+ < div class ="playground-notes ">
22+ < span class ="icon icon-md ">
23+ < svg viewBox ="0 0 16 16 " width ="16 " height ="16 " aria-hidden ="true "> < path d ="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z "> </ path > </ svg >
24+ </ span >
25+ < span > Use < code > console.log()</ code > or < code > // => </ code > for output</ span >
26+ </ div >
2127</ div >
2228
2329< div class ="sandbox-wrapper ">
Original file line number Diff line number Diff line change @@ -162,6 +162,11 @@ table {
162162 line-height : 0 ;
163163 width : 24px ;
164164 height : 24px ;
165+
166+ & .icon-md {
167+ width : 1rem ;
168+ height : 1rem ;
169+ }
165170}
166171
167172details {
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ $themes: (
1111 ' font-success' : dark .$green ,
1212 ' font-warning' : dark .$orange ,
1313 ' font-error' : dark .$red ,
14+ ' font-note' : rgba (dark .$foreground , 0.7 ),
1415
1516 ' button-color' : dark .$bg ,
1617 ' button-color-hover' : dark .$selection ,
@@ -45,6 +46,7 @@ $themes: (
4546 ' font-success' : light .$green ,
4647 ' font-warning' : light .$orange ,
4748 ' font-error' : light .$red ,
49+ ' font-note' : rgba (light .$foreground , 0.7 ),
4850
4951 ' button-color' : light .$foreground ,
5052 ' button-color-hover' : light .$selection ,
Original file line number Diff line number Diff line change 8383 top : 1rem ;
8484 align-self : flex-start ;
8585
86- padding : 0 0.5rem 1 rem 0 ;
86+ padding : 0 0.5rem 150 px 0 ;
8787
8888 font-size : 0.875rem ;
8989 flex-basis : 20% ;
@@ -93,10 +93,15 @@ main {
9393
9494 min-height : 100vh ;
9595 min-height : 100 dvh;
96+ max-height : 100vh ;
97+ max-height : 100 dvh;
9698 overflow-y : auto ;
97- scrollbar-width : none ;
99+ overflow-x : hidden ;
100+ scrollbar-width : thin ;
101+
98102 @include themify ($themes ) {
99103 border-right : 1px solid themed (' border-color-lighter' );
104+ scrollbar-color : themed (' background-light' ) themed (' background-highlight' );
100105 }
101106
102107 ul {
Original file line number Diff line number Diff line change 148148 margin-bottom : 1rem ;
149149
150150 @include media (" min" , " md" ) {
151- margin : 0 2 rem 0 0 ;
151+ margin : 0 1.5 rem 0 0 ;
152152 }
153153
154154 .back-link {
155155 flex-basis : 68px ;
156156 flex-shrink : 0 ;
157- margin-right : 2rem ;
157+ margin-right : 1.5rem ;
158+ padding-left : 0.25rem ;
158159
159160 a {
160161 align-items : center ;
210211
211212 .playground-controls {
212213 display : flex ;
214+ margin-bottom : 1rem ;
215+
216+ @include media (" min" , " md" ) {
217+ margin-bottom : unset ;
218+ }
213219
214220 button {
215221 margin-right : 1rem ;
219225 }
220226 }
221227 }
228+
229+ .playground-notes {
230+ display : flex ;
231+ align-items : center ;
232+ gap : 0.5rem ;
233+ font-size : 0.75rem ;
234+ padding : 0 0.5rem ;
235+
236+ @include themify ($themes ) {
237+ color : themed (' font-note' );
238+ }
239+
240+ @include media (" min" , " md" ) {
241+ margin-left : auto ;
242+ }
243+
244+ svg {
245+ @include themify ($themes ) {
246+ fill : themed (' font-note' );
247+ }
248+ }
249+ }
222250}
223251
224252.copy-fallback {
You can’t perform that action at this time.
0 commit comments