Skip to content

Commit

Permalink
#1041 allow links to wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzupkoii committed Feb 17, 2024
1 parent c74ca01 commit ad17100
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/archive-single.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h2 class="archive__item-title" itemprop="headline">
{% elsif post.citation %}
<p>Recommended citation: {{ post.citation }} </p>
{% elsif post.paperurl %}
<p>Download <a href=" {{ post.paperurl }} "><u>here</u></a></p>
<p class="wordwrap">Download <a href=" {{ post.paperurl }} "><u>here</u></a></p>
{% endif %}

</article>
Expand Down
2 changes: 1 addition & 1 deletion _pages/publications.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ author_profile: true
---

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

{% include base_path %}
Expand Down
8 changes: 8 additions & 0 deletions _sass/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ body:hover .visually-hidden button {
@include container();
}

/* Source: http://snipplr.com/view/10979/css-cross-browser-word-wrap */
.wordwrap {
white-space: pre-wrap; /* CSS3 */
white-space: -moz-pre-wrap; /* Firefox */
white-space: -pre-wrap; /* Opera <7 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* IE */
}

/*
Images
Expand Down

0 comments on commit ad17100

Please sign in to comment.