[FIX] allow word wrapping in stripe-style code examples
This commit is contained in:
parent
5d79dd80e5
commit
166ddc98a9
|
@ -6757,6 +6757,9 @@ td.field-body > ul {
|
||||||
width: 0;
|
width: 0;
|
||||||
border-left: 1px solid #777777;
|
border-left: 1px solid #777777;
|
||||||
}
|
}
|
||||||
|
.stripe .highlight pre {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.stripe .switcher {
|
.stripe .switcher {
|
||||||
color: white;
|
color: white;
|
||||||
|
|
|
@ -469,7 +469,7 @@ div.section > h2 {
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
// code block lines should not wrap
|
// don't break lines within words
|
||||||
word-break: normal;
|
word-break: normal;
|
||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
}
|
}
|
||||||
|
@ -595,6 +595,11 @@ td.field-body {
|
||||||
border-left: 1px solid @gray-light;
|
border-left: 1px solid @gray-light;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.highlight pre {
|
||||||
|
// but allow additional line-breaks between "words" to avoid overflow
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.switcher {
|
.switcher {
|
||||||
|
|
Loading…
Reference in New Issue