Skip to content

Commit

Permalink
Improve how overflow wrapping is handled
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Feb 25, 2022
1 parent 2c88f26 commit 10066f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/furo/assets/styles/components/_footer.sass
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ footer
.page-info
display: flex
flex-direction: column
overflow-wrap: anywhere

.next-page &
align-items: flex-end

.context
word-break: break-word
display: flex
align-items: center

Expand Down
2 changes: 1 addition & 1 deletion src/furo/assets/styles/components/_sidebar.sass
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
text-decoration: none

// Don't allow long words to cause wrapping.
word-break: break-word
overflow-wrap: anywhere

height: 100%
width: 100%
Expand Down
2 changes: 1 addition & 1 deletion src/furo/assets/styles/components/_table_of_contents.sass
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
.reference
color: var(--color-toc-item-text)
text-decoration: none
word-break: break-word
overflow-wrap: anywhere

.toc-scroll
max-height: 100vh
Expand Down
2 changes: 1 addition & 1 deletion src/furo/assets/styles/content/_api.sass
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.

// Break words when they're too long
span.pre
word-break: break-word
overflow-wrap: anywhere

em.property
font-style: normal
Expand Down

0 comments on commit 10066f5

Please sign in to comment.