diff --git a/website/src/playground.html b/website/src/playground.html index 22758965d07a..75e4809ef16e 100644 --- a/website/src/playground.html +++ b/website/src/playground.html @@ -18,6 +18,12 @@ +
+ + + + Use console.log() or // => for output +
diff --git a/website/src/scss/includes/base.scss b/website/src/scss/includes/base.scss index 42c4d6d65c65..fab7f5c9fd71 100644 --- a/website/src/scss/includes/base.scss +++ b/website/src/scss/includes/base.scss @@ -162,6 +162,11 @@ table { line-height: 0; width: 24px; height: 24px; + + &.icon-md { + width: 1rem; + height: 1rem; + } } details { diff --git a/website/src/scss/includes/themes.scss b/website/src/scss/includes/themes.scss index 6b93e19f0ba0..c8612c2e38f7 100644 --- a/website/src/scss/includes/themes.scss +++ b/website/src/scss/includes/themes.scss @@ -11,6 +11,7 @@ $themes: ( 'font-success': dark.$green, 'font-warning': dark.$orange, 'font-error': dark.$red, + 'font-note': rgba(dark.$foreground, 0.7), 'button-color': dark.$bg, 'button-color-hover': dark.$selection, @@ -45,6 +46,7 @@ $themes: ( 'font-success': light.$green, 'font-warning': light.$orange, 'font-error': light.$red, + 'font-note': rgba(light.$foreground, 0.7), 'button-color': light.$foreground, 'button-color-hover': light.$selection, diff --git a/website/src/scss/parts/main.scss b/website/src/scss/parts/main.scss index 039b7b9d75c8..cd87aa5d8a64 100644 --- a/website/src/scss/parts/main.scss +++ b/website/src/scss/parts/main.scss @@ -83,7 +83,7 @@ main { top: 1rem; align-self: flex-start; - padding: 0 0.5rem 1rem 0; + padding: 0 0.5rem 150px 0; font-size: 0.875rem; flex-basis: 20%; @@ -93,10 +93,15 @@ main { min-height: 100vh; min-height: 100dvh; + max-height: 100vh; + max-height: 100dvh; overflow-y: auto; - scrollbar-width: none; + overflow-x: hidden; + scrollbar-width: thin; + @include themify($themes) { border-right: 1px solid themed('border-color-lighter'); + scrollbar-color: themed('background-light') themed('background-highlight'); } ul { diff --git a/website/src/scss/parts/playground.scss b/website/src/scss/parts/playground.scss index 1d6ccb96e656..5b20bdb57b13 100644 --- a/website/src/scss/parts/playground.scss +++ b/website/src/scss/parts/playground.scss @@ -148,13 +148,14 @@ margin-bottom: 1rem; @include media("min", "md") { - margin: 0 2rem 0 0; + margin: 0 1.5rem 0 0; } .back-link { flex-basis: 68px; flex-shrink: 0; - margin-right: 2rem; + margin-right: 1.5rem; + padding-left: 0.25rem; a { align-items: center; @@ -210,6 +211,11 @@ .playground-controls { display: flex; + margin-bottom: 1rem; + + @include media("min", "md") { + margin-bottom: unset; + } button { margin-right: 1rem; @@ -219,6 +225,28 @@ } } } + + .playground-notes { + display: flex; + align-items: center; + gap: 0.5rem; + font-size: 0.75rem; + padding: 0 0.5rem; + + @include themify($themes) { + color: themed('font-note'); + } + + @include media("min", "md") { + margin-left: auto; + } + + svg { + @include themify($themes) { + fill: themed('font-note'); + } + } + } } .copy-fallback {