Skip to content

Commit

Permalink
Wrap long URL
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Nov 18, 2013
1 parent d9d5c1d commit b823cb4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ckanext/sa/theme/fanstatic_library/styles/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,13 @@ a {
margin-bottom: 0;
}
}

.text-wrap {
/* From http://kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/ */
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
9 changes: 9 additions & 0 deletions ckanext/sa/theme/fanstatic_library/styles/sa.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ a {
.control-order-by select {
margin-bottom: 0;
}
.text-wrap {
/* From http://kenneth.io/blog/2012/03/04/word-wrapping-hypernation-using-css/ */
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
header.account-masthead {
background: #f6f6ee;
margin-bottom: 10px;
Expand Down
2 changes: 1 addition & 1 deletion ckanext/sa/theme/templates/organization/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2 class="module-heading">
<i class="icon-info-sign"></i>
{{ _('What are Organizations?') }}
</h2>
<div class="module-content">
<div class="module-content text-wrap">
<p>Organisations are the entities that have contributed data to the
directory such as South Australian Government departments and agencies,
public sector bodies or participating local government authorities. You
Expand Down

0 comments on commit b823cb4

Please sign in to comment.