1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Layout: Break long words in markdown preview

Fixes #427
- Uses hyphenation and word-break to break and wrap long words in markdown
  preview.
This commit is contained in:
Christopher Giffard 2013-08-19 20:57:40 +10:00
parent 9fc5816f79
commit 1a32d15c5f

View file

@ -251,6 +251,12 @@
padding: 60px 40px 40px 40px;
overflow: auto;
// Breaking for long words in preview region
word-break: break-word;
word-break: break-all;
-webkit-hyphens: auto;
hyphens: auto;
// Tweak padding for smaller screens
@include breakpoint($netbook) {padding-top: 20px;}
@include breakpoint($mobile) {padding: 15px;}