Skip to content

Commit

Permalink
Change booking breakdown layout
Browse files Browse the repository at this point in the history
Make the subtotal line stick out a bit more.
  • Loading branch information
lyyder committed Apr 5, 2019
1 parent 1951d21 commit 9a0f1df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/components/BookingBreakdown/BookingBreakdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@
justify-content: space-between;
}

.subTotalLineItem {
@apply --marketplaceH4FontStyles;
font-weight: var(--fontWeightBold);

margin: 4px 0 1px 0;

@media (--viewportMedium) {
margin: 6px 0 9px 0;
}

display: flex;
flex-direction: row;
justify-content: space-between;
}

.itemLabel {
flex: 1;
margin-top: 1px; /* align with baseline */
Expand Down
2 changes: 1 addition & 1 deletion src/components/BookingBreakdown/LineItemSubTotalMaybe.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const LineItemSubTotalMaybe = props => {
const formattedSubTotal = lineItems.length > 0 ? formatMoney(intl, subTotal) : null;

return formattedSubTotal && showSubTotal ? (
<div className={css.lineItem}>
<div className={css.subTotalLineItem}>
<span className={css.itemLabel}>
<FormattedMessage id="BookingBreakdown.subTotal" />
</span>
Expand Down

0 comments on commit 9a0f1df

Please sign in to comment.