tlienart / FranklinTemplates.jl

Simple website templates for Franklin.jl
https://tlienart.github.io/FranklinTemplates.jl/
MIT License
76 stars 24 forks source link

just-the-docs template, long item in list #149

Closed parfenyev closed 2 years ago

parfenyev commented 2 years ago

I have also found that very long items in lists do not wrap to a new line if they contain hyperlinks (e.g., in table of contents). How can this be fixed? Thank you!

screenshort

tlienart commented 2 years ago

the same CSS can be used as in #148 for .franklin-toc li

PS: if this happens with other items, use the web-developer tools in your browser to figure out the path to the element that needs the wrapping property.

parfenyev commented 2 years ago

Sorry, but this solution doesn't seem to work.

tlienart commented 2 years ago

Checking in the web developer tool you could have seen that it's just the a that was missing; this works (for both issues)

.franklin-content a.header-anchor,
.franklin-toc li a
 {
  word-wrap: break-word;
  white-space: normal;
}
parfenyev commented 2 years ago

Thanks, now everything works. Sorry for the simple questions, I'm not familiar with JavaScript.

tlienart commented 2 years ago

it's all CSS, not javascript. Glad things work!