git ssb

16+

cel / patchfoo



Commit e5b902a3d88c52e27b6942034ce43ae3ee93a02e

don't let pre tags with non-breaking content wreck your whole layout

ansuz committed on 6/24/2017, 8:00:47 AM
Parent: 8452aca1021f5c62e7f4b93e23885e538522374d

Files changed

src/styles.lesschanged
static/styles.csschanged
src/styles.lessView
@@ -205,5 +205,20 @@
205205 table.ssb-object td {
206206 border: 1px solid black;
207207 }
208208
209 +div.ssb-post-text {
210 + overflow-wrap: break-word;
211 + word-wrap: break-word;
212 + -ms-word-break: break-all;
213 + /* This is the dangerous one in WebKit, as it breaks things wherever */
214 + word-break: break-all;
215 + /* Instead use this non-standard one: */
216 + word-break: break-word;
209217
218 + /* Adds a hyphen where the word breaks, if supported (No Blink) */
219 + -ms-hyphens: auto;
220 + -moz-hyphens: auto;
221 + -webkit-hyphens: auto;
222 + hyphens: auto;
223 +}
224 +
static/styles.cssView
@@ -285,4 +285,18 @@
285285 }
286286 table.ssb-object td {
287287 border: 1px solid black;
288288 }
289 +div.ssb-post-text {
290 + overflow-wrap: break-word;
291 + word-wrap: break-word;
292 + -ms-word-break: break-all;
293 + /* This is the dangerous one in WebKit, as it breaks things wherever */
294 + word-break: break-all;
295 + /* Instead use this non-standard one: */
296 + word-break: break-word;
297 + /* Adds a hyphen where the word breaks, if supported (No Blink) */
298 + -ms-hyphens: auto;
299 + -moz-hyphens: auto;
300 + -webkit-hyphens: auto;
301 + hyphens: auto;
302 +}

Built with git-ssb-web