From efe91cff2aafe9ffa0ae1142cf4514227c8664a2 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Tue, 29 May 2018 22:24:37 +0300 Subject: [PATCH] - fixed profile tabs displaying on desktop/mobile; --- assets/css/um-profile.css | 30 +++++++++++++++++++----- includes/core/um-actions-profile.php | 34 ++++++++++++++++------------ 2 files changed, 44 insertions(+), 20 deletions(-) diff --git a/assets/css/um-profile.css b/assets/css/um-profile.css index 1a316863..e14b2721 100644 --- a/assets/css/um-profile.css +++ b/assets/css/um-profile.css @@ -393,13 +393,31 @@ font-weight: normal; border-bottom: 0 !important; } -.um-profile-nav-item.without-icon a {padding-left: 10px} -.um-profile-nav-item.without-icon span.title {display: inline;padding-left: 0;} -.um-profile-nav-item.without-icon i {display: none} +.um-profile-nav-item.without-icon a { + padding-left: 10px; +} +.um-profile-nav-item.without-icon span.title { + padding-left: 0; +} +.um-profile-nav-item.without-icon i { + display: none; +} -.um-profile-nav-item a:hover {background: #555} -.um-profile-nav-item i {font-size: 18px;height: 18px;line-height: 18px;position: absolute;display: block;top: 8px;left: 10px} -.um-profile-nav-item span.title {padding-left: 5px} +.um-profile-nav-item a:hover { + background: #555; +} +.um-profile-nav-item i { + font-size: 18px; + height: 18px; + line-height: 18px; + position: absolute; + display: block; + top: 8px; + left: 10px; +} +.um-profile-nav-item span.title { + padding-left: 5px; +} .um-profile-nav-item span.count { font-size: 12px; font-weight: 300; diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php index 8d064021..4e035551 100644 --- a/includes/core/um-actions-profile.php +++ b/includes/core/um-actions-profile.php @@ -1377,40 +1377,46 @@ function um_profile_menu( $args ) {
options()->get( 'profile_menu_icons' ) ) { ?> - 0 ) { ?> - + - - + - + 0 ) { ?> - + - - + - + + + + + 0 ) { ?> + + + + 0) { ?> - + - - +