From 84cbdebfa91859e253422076ec1ece143660c942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Tue, 7 Nov 2023 21:34:02 +0100 Subject: [PATCH] Allow resizing preview vierport in style guide --- _sass/pages/_styleguide.scss | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/_sass/pages/_styleguide.scss b/_sass/pages/_styleguide.scss index 4cc46862..fafed5e9 100644 --- a/_sass/pages/_styleguide.scss +++ b/_sass/pages/_styleguide.scss @@ -10,8 +10,10 @@ border-radius: 0.425rem; padding: var(--padding-sm); - &.wide { - max-width: unset; + max-width: unset; + + &:not(.wide) { + width: var(--content-width); } } @@ -23,3 +25,8 @@ } } } + +.styleguide-preview { + resize: both; + overflow: scroll; +}