Make WordPress Core

Ticket #52354: 52354.diff

File 52354.diff, 1.4 KB (added by sabernhardt, 22 months ago)

subtracting 0.02 instead of 1

  • src/wp-content/themes/twentytwentyone/assets/sass/03-generic/breakpoints.scss

     
    1818@mixin media( $res ) {
    1919
    2020        @if mobile-only == $res {
    21                 @media only screen and (max-width: #{$breakpoint_sm - 1}) {
     21                @media only screen and (max-width: #{$breakpoint_sm - 0.02}) {
    2222                        @content;
    2323                }
    2424        }
     
    3030        }
    3131
    3232        @if tablet-only == $res {
    33                 @media only screen and (max-width: #{$breakpoint_md - 1}) {
     33                @media only screen and (max-width: #{$breakpoint_md - 0.02}) {
    3434                        @content;
    3535                }
    3636        }
     
    4242        }
    4343
    4444        @if laptop-only == $res {
    45                 @media only screen and (max-width: #{$breakpoint_lg - 1}) {
     45                @media only screen and (max-width: #{$breakpoint_lg - 0.02}) {
    4646                        @content;
    4747                }
    4848        }
     
    5454        }
    5555
    5656        @if desktop-only == $res {
    57                 @media only screen and (max-width: #{$breakpoint_xl - 1}) {
     57                @media only screen and (max-width: #{$breakpoint_xl - 0.02}) {
    5858                        @content;
    5959                }
    6060        }
     
    6666        }
    6767
    6868        @if wide-only == $res {
    69                 @media only screen and (max-width: #{$breakpoint_xxl - 1}) {
     69                @media only screen and (max-width: #{$breakpoint_xxl - 0.02}) {
    7070                        @content;
    7171                }
    7272        }