From 8b79447572b99b86789de47dba566cabff5d9372 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Thu, 23 Nov 2023 21:09:36 +0200 Subject: [PATCH] added vertical scroll css class --- docs/cli/show-commands/chassis-and-env.md | 3 ++- docs/stylesheets/nokia.css | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/cli/show-commands/chassis-and-env.md b/docs/cli/show-commands/chassis-and-env.md index de139c50..10647e5e 100644 --- a/docs/cli/show-commands/chassis-and-env.md +++ b/docs/cli/show-commands/chassis-and-env.md @@ -70,7 +70,7 @@ A:srl-ixr6# show platform environment /// tab | CLI -```srl +```{.srl .code-scroll-lg} A:srl-ixr6# show platform control A detail ==================================================================================================================== Show report for Controller A @@ -1013,6 +1013,7 @@ A:srl-ixr6# info from state platform control A disk /dev/sdb } ``` + /// /// tab | Path `/platform/control[slot=A]/disk[name=/dev/sdb]` diff --git a/docs/stylesheets/nokia.css b/docs/stylesheets/nokia.css index 351abb3a..f81d2561 100644 --- a/docs/stylesheets/nokia.css +++ b/docs/stylesheets/nokia.css @@ -223,4 +223,13 @@ th { padding: .2rem .3rem; } -/* END mkdocs Badge elements (version) */ \ No newline at end of file +/* END mkdocs Badge elements (version) */ + +/* scrollable code blocks used in code snippets */ +div.highlight.code-scroll-lg pre>code { + max-height: 80vh; +} + +div.highlight.code-scroll-sm pre>code { + max-height: 50vh; +} \ No newline at end of file