Review main Merged

78682[TASK] Streamline spacings

Benjamin Kott CR +2 V +2 Expert +1239 −919 updated 04/20/23, 13:10

Commit message

General spacings have been streamlined that are most relevant for
CSS declarations that add `margin-bottom` to ensure there is space
available to the next element.

Headlines h1, h2, and h3 will not add additional space to the top if
they are used in a document flow and are not the first element, and
have no classes assigned. This provides a visual divider when a
new content section is opened while keeping existing styles untouched.

There are edge cases where it can be necessary to add the space
manually because some additional necessary nesting is in place. For
this case, the class `.headline-spaced` was introduced. This class is
limited to h1, h2, and h3 and should be used with care.

The code styling for <pre> and <code> has been adjusted when
`[class*="language-"]` is matching. While we have no automatic syntax
highlighting for this kind of area yet, this indicates that a user
wants to highlight a section of code.

Dropping row and col implementations for inline forms. We are
introducing `.form-row` and respective variants to different viewports
`.form-row-*` to have more control over spacing for inline forms.

Each input element will consume the necessary space it needs and
wrap if not enough space is available.

The spacing for clearable elements is now applied to
`.form-control-clearable`. This allows the spacing adjustments to be
present before the JavaScript is invoked. The class will be added
through js if not already present on the element. This avoids
additional layout shifts.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 103

Show 83 more files