Skip to content

Commit

Permalink
[ckan#1538] Break long title words (module content heading on sidebar…
Browse files Browse the repository at this point in the history
… and media-item heading)
  • Loading branch information
vitoravelino committed Apr 23, 2014
1 parent 9d35add commit 50c3114
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions ckan/public/base/less/layout.less
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
margin: 0 0 5px 0;
font-size: 18px;
line-height: 1.3;
.break-word();
}
.info {
margin-top: 15px;
Expand Down
1 change: 1 addition & 0 deletions ckan/public/base/less/media.less
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
font-size: 18px;
line-height: 1.3;
margin: 5px 0;
.break-word();
}

// Overlay
Expand Down
13 changes: 13 additions & 0 deletions ckan/public/base/less/mixins.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
.break-word {
-ms-word-break: break-all;
word-break: break-all;

/* Non standard for webkit */
word-break: break-word;

-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}

.transform (@func) {
-webkit-transform: @arguments;
-moz-transform: @arguments;
Expand Down

0 comments on commit 50c3114

Please sign in to comment.