Added a fix for wrapping long lines of text in articles and in the sidebar

This commit is contained in:
Brandon Mathis 2011-07-23 09:05:16 -04:00
parent fe074b2c1b
commit 51b2a36b40
3 changed files with 10 additions and 1 deletions

View File

@ -134,4 +134,11 @@ blockquote {
font-size: 1.4em;
line-height: 1.45em;
}
/* @extend this to force long lines of continuous text to wrap */
.force-wrap {
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
white-space: pre-wrap;
word-wrap: break-word;
}

View File

@ -1,6 +1,7 @@
article {
overflow: hidden;
padding-top: 1em;
@extend force-wrap;
header {
position: relative;
padding-top: 2em;

View File

@ -4,6 +4,7 @@
aside[role=sidebar] {
color: $sidebar-color;
text-shadow: lighten($sidebar-bg, 8) 0 1px;
@extend .force-wrap;
section {
@extend .sans;
font-size: .8em;