Skip to content

Commit

Permalink
Styles: Add styles to 'vehicles__list--wrapper' if has 'loader-indica…
Browse files Browse the repository at this point in the history
…tor'
  • Loading branch information
ITurres committed Apr 1, 2024
1 parent 968fa4a commit 971f1ee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/styles/pages/VehiclesPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ $screen-max-height: 576px;
justify-content: flex-end;
}

.vehicles__list--wrapper:has(.loader-indicator) {
justify-content: center;

@media screen and (min-width: $screen-min-width) {
// * Centers the spinner in the middle of the screen.
.loader-indicator {
margin-left: 20%;
}
}
}

// ? breakpoint for mobile devices when are in landscape mode.
@media (orientation: landscape) and (max-height: $screen-max-height) {
height: unset;
Expand Down

0 comments on commit 971f1ee

Please sign in to comment.