Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
fix: wrap long URLs in the bibliography and tooltips
Browse files Browse the repository at this point in the history
Closes #219
  • Loading branch information
dsifford committed Nov 3, 2016
1 parent 977c6d6 commit bc77715
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/lib/css/citations.styl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@import 'collections/colors'
@require 'collections/variables'
@require 'collections/colors'

.abt-citation
{$noselect}
noselect()
display: inline-block;
white-space: nowrap
cursor: pointer
Expand Down Expand Up @@ -36,11 +37,13 @@
display: table-cell
text-align: right
.csl-right-inline
word-wrap()
display: table-cell
&.margin
display: flex
justify-content: flex-end
.csl-right-inline
word-wrap()
min-width: 100%
.csl-left-margin
padding: 0 8px 0 0
Expand Down
2 changes: 1 addition & 1 deletion src/lib/css/collections/shared.styl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
animation: pulse 200ms cubic-bezier(0, 0, 0.2, 1) forwards

.abt-btn
{$noselect} // @stylint ignore
noselect()
background: white
color: $dark-gray
background-image: none
Expand Down
14 changes: 12 additions & 2 deletions src/lib/css/collections/variables.styl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ $animation-curve-default = $animation-curve-fast-out-slow-in

$button-transition = box-shadow 0.2s $animation-curve-fast-out-linear-in, background-color 0.2s $animation-curve-default, color 0.2s $animation-curve-default

// Misc
$noselect =
// Mixins
noselect()
-webkit-appearance: none
-webkit-touch-callout: none
-webkit-user-select: none
Expand All @@ -29,6 +29,16 @@ $noselect =
-ms-user-select: none
user-select: none

word-wrap()
overflow-wrap: break-word
word-wrap: break-word
-ms-word-break: break-all
word-break: break-word
-ms-hyphens: auto
-moz-hyphens: auto
-webkit-hyphens: auto
hyphens: auto


@keyframes colors
0%
Expand Down
2 changes: 1 addition & 1 deletion src/lib/js/tinymce/views/styles.styl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ select
transition: none

label
{$noselect} // @stylint ignore
noselect()
white-space: nowrap
cursor: pointer
font-size: 0.9em
Expand Down

0 comments on commit bc77715

Please sign in to comment.