[FIX] allow word wrapping in stripe-style code examples

This commit is contained in:
Xavier Morel 2014-11-07 14:13:15 +01:00
parent 5d79dd80e5
commit 166ddc98a9
2 changed files with 9 additions and 1 deletions

View File

@ -6757,6 +6757,9 @@ td.field-body > ul {
width: 0;
border-left: 1px solid #777777;
}
.stripe .highlight pre {
white-space: pre-wrap;
}
}
.stripe .switcher {
color: white;

View File

@ -469,7 +469,7 @@ div.section > h2 {
padding: 4px;
font-size: 75%;
// code block lines should not wrap
// don't break lines within words
word-break: normal;
word-wrap: normal;
}
@ -595,6 +595,11 @@ td.field-body {
border-left: 1px solid @gray-light;
}
}
.highlight pre {
// but allow additional line-breaks between "words" to avoid overflow
white-space: pre-wrap;
}
}
.switcher {