Rollup merge of #107964 - notriddle:notriddle/title-line-height, r=GuillaumeGomez
rustdoc: use tighter line height in h1 and h2 This keeps the line height for body text the same, as required by WCAG, but for headers, it makes sense to have wrapped lines be a bit tighter packed. ## Before  ## After 
This commit is contained in:
commit
1d4397ba70
6 changed files with 19 additions and 11 deletions
|
|
@ -174,6 +174,14 @@ h1, h2, h3, h4 {
|
|||
.top-doc .docblock > h4 {
|
||||
border-bottom: 1px solid var(--headings-border-bottom-color);
|
||||
}
|
||||
/* while line-height 1.5 is required for any "block of text",
|
||||
which WCAG defines as more than one sentence, it looks weird for
|
||||
very large main headers */
|
||||
h1, h2 {
|
||||
line-height: 1.25;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 9px;
|
||||
}
|
||||
h3.code-header {
|
||||
font-size: 1.125rem; /* 18px */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue