From 0724796842f73d7543bd2324bd9fc02db93c810e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 12 Aug 2020 11:44:46 +0200 Subject: [PATCH] improve code block styling --- docs/src/layouts/App/prism.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/src/layouts/App/prism.scss b/docs/src/layouts/App/prism.scss index 0b9f82208..62c711680 100644 --- a/docs/src/layouts/App/prism.scss +++ b/docs/src/layouts/App/prism.scss @@ -48,6 +48,11 @@ pre[class*="language-"] { background: $codeBackground; padding: 1.2rem 1.5rem !important; border-radius: 0.5rem; + max-height: unquote("max(300px, 60vh)"); + + &::-webkit-scrollbar-thumb { + background-color: rgba($colorWhite, 0.25); + } } pre[class*="language-"].language-css > code,