diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-07-21 13:06:14 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-07-21 13:06:14 -0500 |
| commit | 6b62ec8b22736dc1620377f7abb6b6558117142b (patch) | |
| tree | b0cb7bda252171ba7b7e33d75f4971e13b55f92b /components/Markdown/markdown.module.scss | |
| parent | 4c972aba53fff163cdac741af95bd0374f117835 (diff) | |
Add a code scroll bar for small UIs
Diffstat (limited to 'components/Markdown/markdown.module.scss')
| -rw-r--r-- | components/Markdown/markdown.module.scss | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/components/Markdown/markdown.module.scss b/components/Markdown/markdown.module.scss index ebd372c..e1debd1 100644 --- a/components/Markdown/markdown.module.scss +++ b/components/Markdown/markdown.module.scss @@ -73,6 +73,10 @@ pre { padding: 0.5rem 1.0rem; margin: 0.5rem 0; + box-sizing: border-box; + } + pre > code { + padding: 0; } code, pre { @@ -80,6 +84,17 @@ border-radius: 5px; } + pre { + overflow: auto; + box-sizing: border-box; + } + + @media screen and (max-width: 700px) { + pre { + padding-bottom: 0.7rem; + } + } + li { line-height: 1.15; margin-left: 1em; |
