Skip to content

Commit

Permalink
Adjust line-height for headings + add example for a heading with code…
Browse files Browse the repository at this point in the history
… and a linebreak
  • Loading branch information
Tim-Obert committed Oct 30, 2024
1 parent 6dc6de1 commit 4cb4207
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Documentation-rendertest/Typesetting/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ Level 6 Header
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

Long Header with code and linebreak At vero eos ea rebum `subtypes_addlist`
===========================================================

At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

.. _emphasis:

Emphasis
Expand Down
3 changes: 2 additions & 1 deletion packages/typo3-docs-theme/assets/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ $h5-font-size: 1em;
$h6-font-size: .85em;

$headings-font-weight: $font-weight-bold;
$headings-margin-bottom: .5em;
$headings-margin-bottom: .3em;
$headings-line-height: 1.4;

//
// Components
Expand Down
4 changes: 2 additions & 2 deletions packages/typo3-docs-theme/resources/public/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -11310,9 +11310,9 @@ hr {

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
margin-top: 0;
margin-bottom: 0.5em;
margin-bottom: 0.3em;
font-weight: 600;
line-height: 1.2;
line-height: 1.4;
color: var(--bs-heading-color);
}

Expand Down

0 comments on commit 4cb4207

Please sign in to comment.