Skip to content

Commit

Permalink
fix: CSS - make hover boxes fit their content
Browse files Browse the repository at this point in the history
  • Loading branch information
david-christiansen committed Mar 21, 2024
1 parent 52f8902 commit 63d7d53
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/verso-blog/Verso/Genre/Blog/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ def highlightingStyle : String := "
top: 1em;
font-weight: normal;
font-style: normal;
width: min-content;
}
}
Expand Down Expand Up @@ -451,14 +452,19 @@ def highlightingStyle : String := "
.hl.lean div.docstring {
font-family: sans-serif;
white-space: normal;
width: 40em;
width: max-content;
max-width: 40em;
}
.hl.lean div.docstring > :last-child {
margin-bottom: 0;
}
.hl.lean .hover-info .sep {
display: block;
width: 95%;
margin-left: auto;
margin-right: auto;
width: auto;
margin-left: 1em;
margin-right: 1em;
margin-top: 0.5em;
margin-bottom: 0.5em;
padding: 0;
Expand Down

0 comments on commit 63d7d53

Please sign in to comment.