Skip to content

Commit

Permalink
feat: make sales price absolutely positioned
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford committed May 15, 2024
1 parent 7be8adb commit 96f7cd2
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions assets/newspack-ui/scss/_modals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
justify-content: space-between;
position: sticky;
top: 0;
z-index: 10;

h2 {
font-family: var( --newspack-ui-font-family );
Expand Down Expand Up @@ -153,14 +154,24 @@
.summary {
font-size: var( --newspack-ui-font-size-xs );
line-height: var( --newspack-ui-line-height-xs );
padding: var( --newspack-ui-spacer-2 );

// Scale up just the primary price for a product, not the other fees:
.price > .amount > bdi,
.price > ins > .amount > bdi {
display: block;
font-weight: 600;
font-size: var( --newspack-ui-font-size-xl );
padding: var( --newspack-ui-spacer-4 ) var( --newspack-ui-spacer-2 );
position: relative;

.price {
// Scale up just the primary price for a product, not the other fees:
> .amount > bdi,
> ins > .amount > bdi {
display: block;
font-weight: 600;
font-size: var( --newspack-ui-font-size-xl );
}

del {
position: absolute;
width: 100%;
left: 0;
top: var( --newspack-ui-spacer-base );
}
}
}

Expand Down

0 comments on commit 96f7cd2

Please sign in to comment.