From 845101251444617a1fd98188a68d46cb071a4fb4 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Tue, 10 Jan 2017 21:34:15 +0800 Subject: [PATCH] feat(curtana): less aggressive word breaking (wrapping) for codes --- _app/assets/themes/curtana/_less/common.less | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_app/assets/themes/curtana/_less/common.less b/_app/assets/themes/curtana/_less/common.less index eb3137193..bfa771044 100644 --- a/_app/assets/themes/curtana/_less/common.less +++ b/_app/assets/themes/curtana/_less/common.less @@ -348,13 +348,12 @@ body:hover .latest { pre { font-family: @fontstack-monospace; color: @code-color; + word-wrap: break-word; } - // Only apply word breaking rule for codes in paragraphs p code, li code { font-size: 92%; - word-break: break-all; } pre {