Skip to content

Commit

Permalink
Wraps long lines in test results. Fixes mochajs#1030.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBrousseau committed Nov 8, 2013
1 parent 7184552 commit f2a0875
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mocha.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ body {
overflow: auto;
}

/**
* (1): approximate for browsers not supporting calc
* (2): 42 = 2*15 + 2*10 + 2*1 (padding + margin + border)
* ^^ seriously
*/
#mocha .test pre {
display: block;
float: left;
Expand All @@ -144,6 +149,9 @@ body {
margin: 5px;
padding: 15px;
border: 1px solid #eee;
max-width: 85%; /*(1)*/
max-width: calc(100% - 42px); /*(2)*/
word-wrap: break-word;
border-bottom-color: #ddd;
-webkit-border-radius: 3px;
-webkit-box-shadow: 0 1px 3px #eee;
Expand Down

0 comments on commit f2a0875

Please sign in to comment.