Skip to content

Commit

Permalink
Refacto desktop mq
Browse files Browse the repository at this point in the history
  • Loading branch information
pierregradelet committed Apr 17, 2024
1 parent e8183a7 commit ab85dba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/front/src/styles/_ratio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,11 @@

/// Desktop media query.
/// @param {string} [$breakpoint=breakpoints.$breakpoint-tablet] - Le point de rupture pour les médias queries (par défaut égal à breakpoints.$breakpoint-tablet).
@mixin desktop($breakpoint: breakpoints.$breakpoint-tablet) {
@media (min-width: $breakpoint) and (orientation: landscape) and (min-height: breakpoints.$breakpoint-mobile-horizontal) {
@mixin desktop(
$horizontalBreakpoint: breakpoints.$breakpoint-tablet,
$verticalBreakpoint: breakpoints.$breakpoint-mobile-horizontal
) {
@media (min-width: $horizontalBreakpoint) and (min-height: $verticalBreakpoint) and (orientation: landscape) {
@content;
}
}
Expand Down

0 comments on commit ab85dba

Please sign in to comment.