ucsc / ucsc-2022

Official WordPress theme for UC Santa Cruz
6 stars 0 forks source link

Statistics Pattern Bounding Box #348

Open Herm71 opened 3 months ago

Herm71 commented 3 months ago

The Statistics Pattern has a group-within a group. The inner group is "pushed up" into the cover block above it with a transform rule.

.ucsc__statistics-content {
    position: relative;
    transform: translateY(calc(var(--wp--preset--spacing--70)*-1));
    z-index: 1;
}

When this is done, the outer group's bounding box stays the same, resulting in considerable white space between this whole pattern and the content that comes below it.

Examples

Editor: editor-statistics-block

Front-end: stats-pattern-front