Skip to content

Commit

Permalink
Fix how content overflow is handled
Browse files Browse the repository at this point in the history
Instead of overriding it on every element on its own, set up text
overflow on the article itself.
  • Loading branch information
pradyunsg committed Jul 2, 2023
1 parent 80afa27 commit c8b51d0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/kitchen-sink/really-long.md
Expand Up @@ -100,9 +100,9 @@ Lorem ipsum dolor sit amet consectetur adipisicing elit. Itaque sit temporibus c

Lorem ipsum dolor sit amet consectetur adipisicing elit. Itaque sit temporibus cupiditate in ducimus illum assumenda dolor, dignissimos laboriosam voluptate dolorem dolore eum repellendus minima, nisi sequi? Eveniet, dignissimos asperiores!

## Heading 17
## Heading_17_is_a_really_long_heading_that_is_not_code_and_should_wrap_when_it_reaches_the_sidebar

Lorem ipsum dolor sit amet consectetur adipisicing elit. Itaque sit temporibus cupiditate in ducimus illum assumenda dolor, dignissimos laboriosam voluptate dolorem dolore eum repellendus minima, nisi sequi? Eveniet, dignissimos asperiores!
This_is_a_really_long_sentence_that_is_not_code_and_needs_more_words_and_should_wrap_when_it_reaches_the_sidebar

## Heading 18

Expand Down
1 change: 1 addition & 0 deletions src/furo/assets/styles/_scaffold.sass
Expand Up @@ -47,6 +47,7 @@ body
article
color: var(--color-content-foreground)
background: var(--color-content-background)
overflow-wrap: break-word

.page
display: flex
Expand Down
4 changes: 0 additions & 4 deletions src/furo/assets/styles/content/_api.sass
Expand Up @@ -68,10 +68,6 @@ dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.
font-weight: normal
width: 3.5rem

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

em.property
font-style: normal
&:first-child
Expand Down
2 changes: 0 additions & 2 deletions src/furo/assets/styles/content/_code.sass
Expand Up @@ -6,8 +6,6 @@ code.literal, .sig-inline
font-size: var(--font-size--small--2)
padding: 0.1em 0.2em

overflow-wrap: break-word

p &
border: 1px solid var(--color-background-border)

Expand Down

0 comments on commit c8b51d0

Please sign in to comment.