Skip to content

Commit ad17100

Browse files
committed
#1041 allow links to wrap
1 parent c74ca01 commit ad17100

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

_includes/archive-single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h2 class="archive__item-title" itemprop="headline">
5757
{% elsif post.citation %}
5858
<p>Recommended citation: {{ post.citation }} </p>
5959
{% elsif post.paperurl %}
60-
<p>Download <a href=" {{ post.paperurl }} "><u>here</u></a></p>
60+
<p class="wordwrap">Download <a href=" {{ post.paperurl }} "><u>here</u></a></p>
6161
{% endif %}
6262

6363
</article>

_pages/publications.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author_profile: true
66
---
77

88
{% if site.author.googlescholar %}
9-
You can also find my articles on <u><a href="{{site.author.googlescholar}}">my Google Scholar profile</a>.</u>
9+
<div class="wordwrap">You can also find my articles on <u><a href="{{site.author.googlescholar}}">my Google Scholar profile</a>.</u></div>
1010
{% endif %}
1111

1212
{% include base_path %}

_sass/_utilities.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ body:hover .visually-hidden button {
117117
@include container();
118118
}
119119

120+
/* Source: http://snipplr.com/view/10979/css-cross-browser-word-wrap */
121+
.wordwrap {
122+
white-space: pre-wrap; /* CSS3 */
123+
white-space: -moz-pre-wrap; /* Firefox */
124+
white-space: -pre-wrap; /* Opera <7 */
125+
white-space: -o-pre-wrap; /* Opera 7 */
126+
word-wrap: break-word; /* IE */
127+
}
120128

121129
/*
122130
Images

0 commit comments

Comments
 (0)