diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2016-10-05 02:32:47 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-05 02:32:47 -0600 |
| commit | 49c433e21d3d0fb2d80c6f678104a5e128788263 (patch) | |
| tree | d4ce34474b883008ef8898236d7d79c83316d2fd /data | |
| parent | 9dc24cf51f3710888bb811ffb0f3badf07089fb1 (diff) | |
resolves #1814 forcefully break monospace phrase if it exceeds length of line (PR #1888)
- use CSS to forcefully break monospace phrase if it exceeds length of line
- introduce nobreak role on monospace phrase to restore old behavior (break only at break opportunity)
- introduce nowrap role on monospace phrase to prevent line breaks
Diffstat (limited to 'data')
| -rw-r--r-- | data/stylesheets/asciidoctor-default.css | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/data/stylesheets/asciidoctor-default.css b/data/stylesheets/asciidoctor-default.css index 4718b9b0..27ac53b3 100644 --- a/data/stylesheets/asciidoctor-default.css +++ b/data/stylesheets/asciidoctor-default.css @@ -111,7 +111,9 @@ h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-s h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400} .clearfix:before,.clearfix:after,.float-group:before,.float-group:after{content:" ";display:table} .clearfix:after,.float-group:after{clear:both} -*:not(pre)>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background-color:#f7f7f8;-webkit-border-radius:4px;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed} +*:not(pre)>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background-color:#f7f7f8;-webkit-border-radius:4px;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed;word-wrap:break-word} +*:not(pre)>code.nobreak{word-wrap:normal} +*:not(pre)>code.nowrap{white-space:nowrap} pre,pre>code{line-height:1.45;color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeSpeed} em em{font-style:normal} strong strong{font-weight:400} |
