Skip to content

Commit

Permalink
Update CSS for recommended-material component and skeleton.
Browse files Browse the repository at this point in the history
These changes aim to:
- Ensure that the individual recommended-materials in the grid, will "fill out" their respective part of the grid.

- Skeletons / non-skeletons should be equally large.

- That the content will not jump depending on the cover image frame.

DDFFORM-490
  • Loading branch information
LasseStaus committed Apr 18, 2024
1 parent 0163680 commit 413ca14
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
display: flex;
flex-direction: column;
gap: 5px;
margin-bottom: 12px;
}
.ssc-line {
width: 60%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ $_material-image-box-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
background-color: $color__global-secondary;
max-height: $_recommended-material-max-height;
width: 100%;
height: 100%;
padding: $s-md;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr auto;
grid-auto-rows: min-content;
row-gap: $s-lg;
justify-items: center;
align-items: center;
align-content: space-between;
aspect-ratio: $_aspect-ratio-mobile;

@include media-query__small {
Expand Down Expand Up @@ -53,12 +55,12 @@ $_material-image-box-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
.recommended-material--in-grid {
max-width: unset;
border: 1px solid $color__global-tertiary-1;
aspect-ratio: unset;

> .cover {
height: 100%;
height: $MATERIAL_LARGE_DESKTOP;
max-height: $MATERIAL_LARGE_DESKTOP;
@include media-query__medium {
height: $MATERIAL_LARGE_DESKTOP;
max-height: unset;
}
}
Expand Down

0 comments on commit 413ca14

Please sign in to comment.