From 7184552cd9a0fb1590a8893ec936c856d7af56bb Mon Sep 17 00:00:00 2001 From: Arnaud Brousseau Date: Thu, 7 Nov 2013 11:30:01 -0800 Subject: [PATCH 1/2] Fixes CSS styles (colors and multiple selector rules.) --- mocha.css | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/mocha.css b/mocha.css index 274b977624..8fcc5da2e2 100644 --- a/mocha.css +++ b/mocha.css @@ -9,7 +9,8 @@ body { margin: 60px 50px; } -#mocha ul, #mocha li { +#mocha ul, +#mocha li { margin: 0; padding: 0; } @@ -18,7 +19,8 @@ body { list-style: none; } -#mocha h1, #mocha h2 { +#mocha h1, +#mocha h2 { margin: 0; } @@ -67,11 +69,11 @@ body { } #mocha .test.pass.medium .duration { - background: #C09853; + background: #c09853; } #mocha .test.pass.slow .duration { - background: #B94A48; + background: #b94a48; } #mocha .test.pass::before { @@ -87,7 +89,7 @@ body { font-size: 9px; margin-left: 5px; padding: 2px 5px; - color: white; + color: #fff; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2); -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2); box-shadow: inset 0 1px 1px rgba(0,0,0,.2); @@ -243,14 +245,14 @@ body { height: 40px; } -#mocha code .comment { color: #ddd } -#mocha code .init { color: #2F6FAD } -#mocha code .string { color: #5890AD } -#mocha code .keyword { color: #8A6343 } -#mocha code .number { color: #2F6FAD } +#mocha code .comment { color: #ddd; } +#mocha code .init { color: #2f6fad; } +#mocha code .string { color: #5890ad; } +#mocha code .keyword { color: #8a6343; } +#mocha code .number { color: #2f6fad; } @media screen and (max-device-width: 480px) { - #mocha { + #mocha { margin: 60px 0px; } From f2a0875841f11fb74d532d0ee65ae07cd6ab1011 Mon Sep 17 00:00:00 2001 From: Arnaud Brousseau Date: Thu, 7 Nov 2013 19:33:30 -0800 Subject: [PATCH 2/2] Wraps long lines in test results. Fixes #1030. --- mocha.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mocha.css b/mocha.css index 8fcc5da2e2..42b9798fa4 100644 --- a/mocha.css +++ b/mocha.css @@ -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; @@ -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;