[TASK] Streamline spacings
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. Resolves: #100663 Releases: main Change-Id: If9757d9dc04d9dca83cb1e89c5bbced1b20b5850 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78682 Tested-by:Benni Mack <benni@typo3.org> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Andreas Fernandez <a.fernandez@scripting-base.de>
Showing
- Build/Sources/Sass/_minimal.scss 2 additions, 0 deletionsBuild/Sources/Sass/_minimal.scss
- Build/Sources/Sass/backend.scss 1 addition, 0 deletionsBuild/Sources/Sass/backend.scss
- Build/Sources/Sass/component/_card.scss 2 additions, 2 deletionsBuild/Sources/Sass/component/_card.scss
- Build/Sources/Sass/component/_checkbox.scss 10 additions, 2 deletionsBuild/Sources/Sass/component/_checkbox.scss
- Build/Sources/Sass/component/_code.scss 29 additions, 1 deletionBuild/Sources/Sass/component/_code.scss
- Build/Sources/Sass/component/_form.scss 33 additions, 1 deletionBuild/Sources/Sass/component/_form.scss
- Build/Sources/Sass/component/_module.scss 0 additions, 4 deletionsBuild/Sources/Sass/component/_module.scss
- Build/Sources/Sass/component/_note.scss 3 additions, 3 deletionsBuild/Sources/Sass/component/_note.scss
- Build/Sources/Sass/component/_pagination.scss 7 additions, 0 deletionsBuild/Sources/Sass/component/_pagination.scss
- Build/Sources/Sass/component/_panel.scss 2 additions, 2 deletionsBuild/Sources/Sass/component/_panel.scss
- Build/Sources/Sass/component/_recordlist.scss 5 additions, 1 deletionBuild/Sources/Sass/component/_recordlist.scss
- Build/Sources/Sass/component/_recordsearchbox.scss 1 addition, 1 deletionBuild/Sources/Sass/component/_recordsearchbox.scss
- Build/Sources/Sass/component/_resources.scss 2 additions, 1 deletionBuild/Sources/Sass/component/_resources.scss
- Build/Sources/Sass/component/_root.scss 1 addition, 1 deletionBuild/Sources/Sass/component/_root.scss
- Build/Sources/Sass/component/_spacer.scss 13 additions, 0 deletionsBuild/Sources/Sass/component/_spacer.scss
- Build/Sources/Sass/component/_statusreport.scss 1 addition, 1 deletionBuild/Sources/Sass/component/_statusreport.scss
- Build/Sources/Sass/component/_table.scss 1 addition, 1 deletionBuild/Sources/Sass/component/_table.scss
- Build/Sources/Sass/component/_type.scss 26 additions, 0 deletionsBuild/Sources/Sass/component/_type.scss
- Build/Sources/Sass/module/_install.scss 2 additions, 0 deletionsBuild/Sources/Sass/module/_install.scss
- Build/Sources/Sass/module/_page.scss 1 addition, 1 deletionBuild/Sources/Sass/module/_page.scss
Please register or sign in to comment