Skip to content

Commit

Permalink
Better selection of font (including line-height) in navbar
Browse files Browse the repository at this point in the history
The previous use of the CSS 'font' property was implying a 'line-height' of 1.0, making the table of contents rather hard to read.

By specifying 'font-size' and 'line-height' instead, we can not ensure that the font face is the same sans-serif as set in .body, and we can make a compromise between readability and need for scrolling by setting a 'line-height' somewhere between 1.0 and the inherited 1.5.
  • Loading branch information
henrikt-ma committed Nov 18, 2020
1 parent 5df9a48 commit 14c7e7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion css/MLS-navbar-left.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ nav > div.ltx_TOC {
top: 0px;
margin: 0px;
padding: 0px;
font: 90% sans-serif;
font-size: 14px; /* Less than what is inherited from .body, to reduce need for scrolling. */
line-height: 1.3; /* Less than what is inherited from .body, to reduce need for scrolling. */
color: black;
border-style: solid;
border-color: #707A85; /* "Bouncing ball trace gray" */
Expand Down

0 comments on commit 14c7e7d

Please sign in to comment.