Skip to content

Commit a715f49

Browse files
Tim-Obertlinawolf
authored andcommitted
Adjust line-height for headings + add example for a heading with code and a linebreak
1 parent 8ccc103 commit a715f49

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Documentation-rendertest/Typesetting/Index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ Level 6 Header
6262
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
6363
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
6464

65+
Long Header with code and linebreak At vero eos ea rebum `subtypes_addlist`
66+
===========================================================
67+
68+
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
69+
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
70+
6571
.. _emphasis:
6672

6773
Emphasis

packages/typo3-docs-theme/assets/sass/_variables.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ $h5-font-size: 1em;
119119
$h6-font-size: .85em;
120120

121121
$headings-font-weight: $font-weight-bold;
122-
$headings-margin-bottom: .5em;
122+
$headings-margin-bottom: .3em;
123+
$headings-line-height: 1.4;
123124

124125
//
125126
// Components

packages/typo3-docs-theme/resources/public/css/theme.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11310,9 +11310,9 @@ hr {
1131011310

1131111311
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
1131211312
margin-top: 0;
11313-
margin-bottom: 0.5em;
11313+
margin-bottom: 0.3em;
1131411314
font-weight: 600;
11315-
line-height: 1.2;
11315+
line-height: 1.4;
1131611316
color: var(--bs-heading-color);
1131711317
}
1131811318

0 commit comments

Comments
 (0)