Skip to content

Commit

Permalink
Improved mobile styling for banner
Browse files Browse the repository at this point in the history
The previous styling did not handle small screens very well. This both takes care for smaller devices and cleans up some CSS.
  • Loading branch information
JacobArrow committed Nov 17, 2023
1 parent 4c8983a commit 219a2ed
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/stories/Library/pause-reservation/pause-reservation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
flex-wrap: wrap;
width: 100%;
align-items: center;
justify-content: center;
gap: $s-sm;

@include breakpoint-xs {
justify-content: start;
}

&__reservation-icon {
justify-content: center;
Expand All @@ -27,28 +33,22 @@

&__text {
@extend %text-body-large;
@extend %pl-8;
}

&__badge {
background-color: $c-global-primary;
@extend %pl-8;
@extend %pr-8;
@extend %pt-4;
@extend %pb-4;
padding: $s-xs $s-sm;
@extend %text-body-medium-medium;
margin-left: 32px;

@include breakpoint-s {
margin-left: 8px;
}
}

&__button {
display: flex;
flex: 1;
justify-content: flex-end;
@extend %ml-8;
justify-content: center;

@include breakpoint-xs {
justify-content: flex-end;
}
}
}
}

0 comments on commit 219a2ed

Please sign in to comment.