Skip to:
Content

BuddyPress.org

Changeset 12877


Ignore:
Timestamp:
04/06/2021 07:18:16 PM (5 years ago)
Author:
imath
Message:

Improve the WP Admin Bar for logged out users on mobile/small screens

On mobile/small screens, the WP Admin Bar generated by BuddyPress does not show anything and becomes a useless dark area at the top of the page. To make it more interesting, let's make sure the login and register links are shown.

Props sabernhardt

Fixes #8451

Location:
trunk/src/bp-core/css
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/css/admin-bar-rtl.css

    r12136 r12877  
    6969        }
    7070}
     71
     72@media screen and (max-width: 782px) {
     73
     74        #wpadminbar li#wp-admin-bar-bp-login,
     75        #wpadminbar li#wp-admin-bar-bp-register {
     76                display: block;
     77        }
     78
     79        #wpadminbar li#wp-admin-bar-bp-login a,
     80        #wpadminbar li#wp-admin-bar-bp-register a {
     81                padding: 0 8px;
     82        }
     83}
  • trunk/src/bp-core/css/admin-bar.css

    r12136 r12877  
    6969        }
    7070}
     71
     72@media screen and (max-width: 782px) {
     73
     74        #wpadminbar li#wp-admin-bar-bp-login,
     75        #wpadminbar li#wp-admin-bar-bp-register {
     76                display: block;
     77        }
     78
     79        #wpadminbar li#wp-admin-bar-bp-login a,
     80        #wpadminbar li#wp-admin-bar-bp-register a {
     81                padding: 0 8px;
     82        }
     83}
Note: See TracChangeset for help on using the changeset viewer.