Skip to content

CSS issue in rendered documentation with diff code #14472

Closed
@jderusse

Description

@jderusse

Hello,
The documentation on Symfony has a CSS bug in rendering diff.
This is more visible on the fast track https://symfony.com/doc/current/the-fast-track/en/6-controller.html#adding-an-easter-egg

The issue is the .highlight-diff .highlight>pre has a padding-left: 1.5em
But the .highlight-diff .gd and .highlight-diff .gi (used to display - and +) have a padding-left: 1px + margin-left: -15px.

current rendering Expected
symfony com_doc_current_the-fast-track_en_6-controller html (1) symfony com_doc_current_the-fast-track_en_6-controller html

Maybe this is because the documentation indent diff with spaces (https://github.com/symfony/symfony-docs/blame/5.x/http_cache.rst#L98-L99) ?
But the render is not perfect
Screenshot from 2020-10-23 18-32-29

From my tests, using a margin: -1.2em; pading: 0 but maybe it vary on browser and OS?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions