Skip to content

Commit

Permalink
Version update
Browse files Browse the repository at this point in the history
  • Loading branch information
vapvarun committed Jul 19, 2024
1 parent 6ccd49c commit e2a3487
Show file tree
Hide file tree
Showing 18 changed files with 182 additions and 613 deletions.
1 change: 1 addition & 0 deletions assets/css/_typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ h6 {
margin-bottom: 1rem;
color: var(--color-link);
line-height: 1.4;
font-weight: inherit;
clear: both;
}

Expand Down
1 change: 1 addition & 0 deletions assets/css/buddypress.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ button#mpp-edit-media-submit,
#bupr_save_review,
button.friendship-button,
button.group-button,
.buddypress-wrap .members-list li .member-button-wrap .generic-button button,
.avatar-history-actions button.avatar-history-action.recycle,
.avatar-history-actions button.avatar-history-action.delete,
.avatar-history-actions button.recycle.disabled,
Expand Down
2 changes: 1 addition & 1 deletion assets/css/buddypress.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/global.min.css

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions assets/css/platform.css
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,15 @@ body.round-avatars .buddypress-wrap ul.bp-list.groups-dir-list.grid.bb-cover-ena
/*--------------------------------------------------------------
# Member Single
--------------------------------------------------------------*/
#cover-image-container {
height: auto;
}

#buddypress #header-cover-image.cover-small {
height: 225px;
}

#buddypress #header-cover-image.cover-large {
height: 300px;
}

Expand Down Expand Up @@ -929,6 +937,36 @@ body .select2-container .select2-dropdown.bb-compose-input .avatar {
vertical-align: middle;
}

/* Notification Settings */
h2.screen-heading.email-settings-screen {
margin-top: 20px;
}

.subnav_tab .subnav li a {
padding: 10px;
display: inline-block;
}

.main-notification-settings tbody .notification_heading td {
padding: 10px;
}

.main-notification-settings tbody td:first-child {
padding-left: 10px;
}

.main-notification-settings .bb-mobile-setting.active ul {
text-align: left;
}

.main-notification-settings .bb-mobile-setting.active ul li label {
margin-top: 0;
}

.main-notification-settings .bb-mobile-setting ul li:first-child {
padding-top: 15px;
}

/*--------------------------------------------------------------
# Group Single
--------------------------------------------------------------*/
Expand Down
2 changes: 1 addition & 1 deletion assets/css/platform.min.css

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions assets/css/wc-vendor.css
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,6 @@
padding: 10px;
}

table {
background: #ffffff;
border: 0px solid var(--global-border-color);
-webkit-box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .1);
border-radius: 5px;
overflow: hidden;
}

table th,
table td {
border: 0px;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/wc-vendor.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 37 additions & 10 deletions assets/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,23 +185,50 @@
// fitVids
BUDDYX.fitVids = function() {

var doFitVids = function() {
setTimeout(function() {
$('iframe[src*="youtube"], iframe[src*="vimeo"]').parent().fitVids();
}, 300);
// LearnDash Player fix
if ( $( '.ld-video iframe' ).length > 0 ) {
$( '.ld-video iframe' ).addClass( 'fitvidsignore' );
}

// Tutor Player fix
if ( $( '.tutor-video-player iframe' ).length > 0 ) {
$( '.tutor-video-player iframe' ).addClass( 'fitvidsignore' );
}

var doFitVids = function () {
setTimeout(
function () {
var youtubeSelector = 'iframe[src*="youtube"]';
var vimeoSelector = '';
if (
! $( '.tutor-course-details-page' ).length > 0 &&
! $( '.tutor-course-single-content-wrapper' ).length > 0
) {
vimeoSelector = 'iframe[src*="vimeo"]';
}
var dynamicSelector = youtubeSelector + ( vimeoSelector ? ',' + vimeoSelector : '' );
$( dynamicSelector ).parent().fitVids();
},
300
);
};
doFitVids();
$(document).ajaxComplete(doFitVids);
$( document ).ajaxComplete( function () {
if ( !$( '.elementor-popup-modal .elementor-widget-video' ).length ) {
doFitVids();
}
$( '.elementor-video-container' ).addClass( 'fitvidsignore' );
} );

var doFitVidsOnLazyLoad = function(event, data) {
if (typeof data !== 'undefined' && typeof data.element !== 'undefined') {
//load iframe in correct dimension
if (data.element.getAttribute('data-lazy-type') == 'iframe') {
var doFitVidsOnLazyLoad = function ( event, data ) {
if ( typeof data !== 'undefined' && typeof data.element !== 'undefined' ) {
// load iframe in correct dimension
if ( data.element.getAttribute( 'data-lazy-type' ) == 'iframe' ) {
doFitVids();
}
}
};
$(document).on('bp_nouveau_lazy_load', doFitVidsOnLazyLoad);
$( document ).on( 'bp_nouveau_lazy_load', doFitVidsOnLazyLoad );

};

Expand Down
Loading

0 comments on commit e2a3487

Please sign in to comment.