diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-08-04 22:29:45 +0300 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-08-13 01:17:23 +0300 |
commit | 3eba2e4f70f18f2a86d0134e264e963d67cbac45 (patch) | |
tree | 863c2839292eeb4f3c5971cad696fb9955ad06bf /app/assets/stylesheets/pages/detail_page.scss | |
parent | 11eefba891f214eefc1efa334adbcc9e979c0ce3 (diff) |
Wrap single lines of code; horizontally scroll multi-line code blocks
Diffstat (limited to 'app/assets/stylesheets/pages/detail_page.scss')
-rw-r--r-- | app/assets/stylesheets/pages/detail_page.scss | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/detail_page.scss b/app/assets/stylesheets/pages/detail_page.scss index 1b389d83525..742984d6c7a 100644 --- a/app/assets/stylesheets/pages/detail_page.scss +++ b/app/assets/stylesheets/pages/detail_page.scss @@ -36,9 +36,17 @@ } .wiki { + // Single lines of code should wrap code { white-space: pre-wrap; word-break: keep-all; } + + // Code blocks should scroll horizontally + pre { + code { + white-space: pre; + } + } } } |