Make WordPress Core


Ignore:
Timestamp:
05/13/2024 04:41:05 PM (2 months ago)
Author:
karmatosed
Message:

Twenty Twenty-One: Fixes primary menu disappearing.

The primary menu was disappearing at 481px. This adjusts to resolve this. It was shown when adjust the browser window not in responsive design mode.

Props stephenbrook, audrasjb, mukesh27, sabernhardt, poena, kristenfisher427, siliconforks, jwgoedert, joedolson.
Fixes #52354.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/03-generic/breakpoints.scss

    r49795 r58142  
    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        }
     
    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        }
     
    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        }
     
    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        }
     
    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        }
Note: See TracChangeset for help on using the changeset viewer.