Ticket #7540: 7540-1.patch
| File 7540-1.patch, 57.0 KB (added by , 5 years ago) |
|---|
-
new file src/bp-messages/actions/quite.php
diff --git src/bp-messages/actions/quite.php src/bp-messages/actions/quite.php new file mode 100644 index 000000000..3cdbc79a8
- + 1 <?php 2 /** 3 * Messages: Quite action handler. 4 * 5 * @package BuddyPress 6 * @subpackage MessageActions 7 * @since 10.0.0 8 */ 9 10 /** 11 * Process a request to quite a message. 12 * 13 * @return bool False on failure. 14 */ 15 function bp_messages_action_quite_message() { 16 17 if ( ! bp_is_messages_component() || bp_is_current_action( 'notices' ) || ! bp_is_action_variable( 'quite', 0 ) ) { 18 return false; 19 } 20 21 $thread_id = bp_action_variable( 1 ); 22 23 if ( ! $thread_id || ! is_numeric( $thread_id ) || ! messages_check_thread_access( $thread_id ) ) { 24 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) ); 25 } else { 26 if ( ! check_admin_referer( 'bp_messages_quite_thread' ) ) { 27 return false; 28 } 29 30 // quite message. 31 if ( ! bp_messages_quite_thread( $thread_id ) ) { 32 bp_core_add_message( __('There was an error quite that conversation.', 'buddypress'), 'error' ); 33 } else { 34 bp_core_add_message( __('You have left the message thread.', 'buddypress') ); 35 } 36 bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() ) ); 37 } 38 } 39 add_action( 'bp_actions', 'bp_messages_action_quite_message' ); -
src/bp-messages/bp-messages-functions.php
diff --git src/bp-messages/bp-messages-functions.php src/bp-messages/bp-messages-functions.php index 08b30d7cc..f3e977dcd 100644
function bp_messages_dismiss_sitewide_notice( $user_id = 0, $notice_id = 0 ) { 799 799 800 800 return $retval; 801 801 } 802 803 804 /** 805 * Quite message thread(s) for a given user. 806 * 807 * Note that "deleting" a thread for a user means removing it from the user's 808 * message boxes. A thread is not deleted from the database until it's been 809 * "deleted" by all recipients. 810 * 811 * @since 2.7.0 The $user_id parameter was added. Previously the current user 812 * was always assumed. 813 * 814 * @param int|array $thread_ids Thread ID or array of thread IDs. 815 * @param int $user_id ID of the user to delete the threads for. Defaults 816 * to the current logged-in user. 817 * @return bool True on success, false on failure. 818 */ 819 function bp_messages_quite_thread( $thread_ids, $user_id = 0 ) { 820 821 if ( empty( $user_id ) ) { 822 $user_id = 823 bp_displayed_user_id() ? 824 bp_displayed_user_id() : 825 bp_loggedin_user_id(); 826 } 827 828 /** 829 * Fires before specified thread IDs have been deleted. 830 * 831 * @since 1.5.0 832 * @since 2.7.0 The $user_id parameter was added. 833 * 834 * @param int|array $thread_ids Thread ID or array of thread IDs to be deleted. 835 * @param int $user_id ID of the user the threads are being deleted for. 836 */ 837 do_action( 'bp_messages_before_quite_thread', $thread_ids, $user_id ); 838 839 if ( is_array( $thread_ids ) ) { 840 $error = 0; 841 for ( $i = 0, $count = count( $thread_ids ); $i < $count; ++$i ) { 842 if ( ! BP_Messages_Thread::quite( $thread_ids[ $i ], $user_id ) ) { 843 $error = 1; 844 } 845 } 846 847 if ( ! empty( $error ) ) { 848 return false; 849 } 850 851 /** 852 * Fires after specified thread IDs have been deleted. 853 * 854 * @since 1.0.0 855 * @since 2.7.0 The $user_id parameter was added. 856 * 857 * @param int|array Thread ID or array of thread IDs that were deleted. 858 * @param int ID of the user that the threads were deleted for. 859 */ 860 do_action( 'bp_messages_quite_thread', $thread_ids, $user_id ); 861 862 return true; 863 } else { 864 if ( ! BP_Messages_Thread::quite( $thread_ids, $user_id ) ) { 865 return false; 866 } 867 868 /** This action is documented in bp-messages/bp-messages-functions.php */ 869 do_action( 'bp_messages_quite_thread', $thread_ids, $user_id ); 870 871 return true; 872 } 873 } 874 No newline at end of file -
src/bp-messages/bp-messages-template.php
diff --git src/bp-messages/bp-messages-template.php src/bp-messages/bp-messages-template.php index 6c100fe98..2a8240746 100644
function bp_the_thread_delete_link() { 2187 2187 */ 2188 2188 return apply_filters( 'bp_get_message_thread_delete_link', wp_nonce_url( bp_displayed_user_domain() . bp_get_messages_slug() . '/inbox/delete/' . bp_get_the_thread_id(), 'messages_delete_thread' ) ); 2189 2189 } 2190 2191 /** 2192 * Output the URL for quite the current thread. 2193 * 2194 * @since 10.0.0 2195 */ 2196 function bp_the_thread_quite_link() { 2197 echo esc_url( bp_get_the_thread_quite_link() ); 2198 } 2199 /** 2200 * Get the URL for quite the current thread. 2201 * 2202 * @since 10.0.0 2203 * 2204 * @return string URL 2205 */ 2206 function bp_get_the_thread_quite_link() { 2207 2208 /** 2209 * Filters the URL for quite the current thread. 2210 * 2211 * @since 1.0.0 2212 * 2213 * @param string $value URL for quite the current thread. 2214 * @param string $value Text indicating action being executed. 2215 */ 2216 return apply_filters( 'bp_get_message_thread_quite_link', wp_nonce_url( bp_displayed_user_domain() . bp_get_messages_slug() . '/inbox/quite/' . bp_get_the_thread_id(), 'bp_messages_quite_thread' ) ); 2217 } 2190 2218 2191 2219 /** 2192 2220 * Output the 'Sent x hours ago' string for the current message. -
src/bp-messages/classes/class-bp-messages-component.php
diff --git src/bp-messages/classes/class-bp-messages-component.php src/bp-messages/classes/class-bp-messages-component.php index 15f8d0748..a2385be3b 100644
class BP_Messages_Component extends BP_Component { 102 102 103 103 // Authenticated action variables. 104 104 if ( is_user_logged_in() && bp_action_variable( 0 ) && 105 in_array( bp_action_variable( 0 ), array( 'delete', 'read', 'unread', 'bulk-manage', 'bulk-delete' ), true )105 in_array( bp_action_variable( 0 ), array( 'delete', 'read', 'unread', 'bulk-manage', 'bulk-delete', 'quite' ), true ) 106 106 ) { 107 107 require $this->path . 'bp-messages/actions/' . bp_action_variable( 0 ) . '.php'; 108 108 } -
src/bp-messages/classes/class-bp-messages-thread.php
diff --git src/bp-messages/classes/class-bp-messages-thread.php src/bp-messages/classes/class-bp-messages-thread.php index 9b2dd3601..b8384b191 100644
class BP_Messages_Thread { 533 533 534 534 return true; 535 535 } 536 537 /** 538 * Mark messages in a thread as deleted or delete all messages in a thread. 539 * 540 * Note: All messages in a thread are deleted once every recipient in a thread 541 * has marked the thread as deleted. 542 * 543 * @since 10.0.0 544 * @since 2.7.0 The $user_id parameter was added. Previously the current user 545 * was always assumed. 546 * 547 * @global BuddyPress $bp The one true BuddyPress instance. 548 * @global wpdb $wpdb WordPress database object. 549 * 550 * @param int $thread_id The message thread ID. 551 * @param int $user_id The ID of the user in the thread to mark messages as 552 * deleted for. Defaults to the current logged-in user. 553 * 554 * @return bool 555 */ 556 public static function quite( $thread_id = 0, $user_id = 0 ) { 557 global $wpdb; 558 559 $thread_id = (int) $thread_id; 560 $user_id = (int) $user_id; 561 562 if ( empty( $user_id ) ) { 563 $user_id = bp_loggedin_user_id(); 564 } 565 566 /** 567 * Fires before a message thread is marked as deleted. 568 * 569 * @since 2.2.0 570 * @since 2.7.0 The $user_id parameter was added. 571 * 572 * @param int $thread_id ID of the thread being deleted. 573 * @param int $user_id ID of the user that the thread is being deleted for. 574 */ 575 do_action( 'bp_messages_thread_before_mark_quite', $thread_id, $user_id ); 576 577 $bp = buddypress(); 578 579 // Delete from messages recipients 580 $wpdb->query( $wpdb->prepare( "DELETE FROM {$bp->messages->table_name_recipients} WHERE thread_id = %d AND user_id = %d", $thread_id, $user_id ) ); 581 582 // Get the message ids in order to pass to the action. 583 $message_ids = $wpdb->get_col( $wpdb->prepare( "SELECT id FROM {$bp->messages->table_name_messages} WHERE thread_id = %d", $thread_id ) ); 584 585 586 587 /** 588 * Fires after a message thread is either marked as deleted or deleted. 589 * 590 * @since 2.2.0 591 * @since 2.7.0 The $user_id parameter was added. 592 * 593 * @param int $thread_id ID of the thread being deleted. 594 * @param array $message_ids IDs of messages being deleted. 595 * @param int $user_id ID of the user the threads were deleted for. 596 */ 597 do_action( 'bp_messages_thread_after_quite', $thread_id, $message_ids, $user_id ); 598 599 return true; 600 } 536 601 537 602 /** 538 603 * Get current message threads for a user. -
src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php
diff --git src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php index bc423b740..e7a9927fb 100644
49 49 </span> 50 50 51 51 <a class="button confirm" href="<?php bp_the_thread_delete_link(); ?>"><?php _e( 'Delete', 'buddypress' ); ?></a> 52 52 53 <?php if ( bp_get_thread_recipients_count() > 2 ):?> 54 55 <a class="button confirm" href="<?php bp_the_thread_quite_link(); ?>"><?php _e( 'Quit Conversation', 'buddypress' ); ?></a> 56 57 <?php endif;?> 58 53 59 <?php 54 60 55 61 /** -
src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
diff --git src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php index 6b2a5c69f..6ac0a498b 100644
188 188 <button type="button" class="message-action-delete bp-tooltip bp-icons" data-bp-action="delete" data-bp-tooltip="<?php esc_attr_e( 'Delete conversation.', 'buddypress' ); ?>"> 189 189 <span class="bp-screen-reader-text"><?php esc_html_e( 'Delete conversation.', 'buddypress' ); ?></span> 190 190 </button> 191 192 <button type="button" class="message-action-quite bp-tooltip bp-icons" data-bp-action="quite" data-bp-tooltip="<?php esc_attr_e( 'Quite conversation.', 'buddypress' ); ?>"> 193 <span class="bp-screen-reader-text"><?php esc_html_e( 'Quite conversation.', 'buddypress' ); ?></span> 194 </button> 191 195 192 196 <# if ( undefined !== data.star_link ) { #> 193 197 … … 250 254 <button type="button" class="message-action-delete bp-tooltip bp-icons" data-bp-action="delete" data-bp-tooltip="<?php esc_attr_e( 'Delete conversation.', 'buddypress' ); ?>"> 251 255 <span class="bp-screen-reader-text"><?php esc_html_e( 'Delete conversation.', 'buddypress' ); ?></span> 252 256 </button> 257 258 <button type="button" class="message-action-quite bp-tooltip bp-icons" data-bp-action="quite" data-bp-tooltip="<?php esc_attr_e( 'Quite conversation.', 'buddypress' ); ?>"> 259 <span class="bp-screen-reader-text"><?php esc_html_e( 'Quite conversation.', 'buddypress' ); ?></span> 260 </button> 253 261 </div> 254 262 </header> 255 263 </script> -
src/bp-templates/bp-nouveau/css/buddypress-rtl.css
diff --git src/bp-templates/bp-nouveau/css/buddypress-rtl.css src/bp-templates/bp-nouveau/css/buddypress-rtl.css index e8a2edaa1..56a1d7578 100644
body #buddypress select, 69 69 body #buddypress input[type="search"], 70 70 body #buddypress input[type="submit"], 71 71 body #buddypress input[type="reset"] { 72 -webkit-border-radius: 2px; 73 -moz-border-radius: 2px; 74 -ms-border-radius: 2px; 72 75 border-radius: 2px; 73 76 background-clip: padding-box; 74 77 } … … body #buddypress .bp-lists blockquote { 79 82 } 80 83 81 84 body #buddypress .bp-list .action { 85 -webkit-box-sizing: border-box; 86 -moz-box-sizing: border-box; 82 87 box-sizing: border-box; 83 88 } 84 89 … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 375 380 .buddypress-wrap.bp-dir-hori-nav:not(.bp-vertical-navs) nav:not(.tabbed-links) { 376 381 border-bottom: 1px solid #eee; 377 382 border-top: 1px solid #eee; 383 -webkit-box-shadow: 0 2px 12px 0 #fafafa; 384 -moz-box-shadow: 0 2px 12px 0 #fafafa; 378 385 box-shadow: 0 2px 12px 0 #fafafa; 379 386 } 380 387 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 868 875 } 869 876 870 877 .bp-list { 878 -webkit-box-sizing: border-box; 879 -moz-box-sizing: border-box; 871 880 box-sizing: border-box; 872 881 border-top: 1px solid #eaeaea; 873 882 clear: both; … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1018 1027 .activity-list.bp-list .activity-item { 1019 1028 background: #fff; 1020 1029 border: 1px solid #b7b7b7; 1030 -webkit-box-shadow: 0 0 6px #d2d2d2; 1031 -moz-box-shadow: 0 0 6px #d2d2d2; 1021 1032 box-shadow: 0 0 6px #d2d2d2; 1022 1033 margin: 20px 0; 1023 1034 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1038 1049 @media screen and (min-width: 46.8em) { 1039 1050 .friends-request-list li, 1040 1051 .membership-requests-list li { 1052 display: -webkit-flex; 1041 1053 display: -moz-flex; 1042 1054 display: -ms-flex; 1043 1055 display: -o-flex; 1044 1056 display: flex; 1057 -webkit-flex-flow: row nowrap; 1058 -moz-flex-flow: row nowrap; 1059 -ms-flex-flow: row nowrap; 1045 1060 -o-flex-flow: row nowrap; 1046 1061 flex-flow: row nowrap; 1047 1062 } 1048 1063 .friends-request-list li .item, 1049 1064 .membership-requests-list li .item { 1065 -webkit-flex: 1 1 auto; 1050 1066 -moz-flex: 1 1 auto; 1067 -ms-flex: 1 1 auto; 1051 1068 -o-flex: 1 1 auto; 1052 1069 flex: 1 1 auto; 1053 1070 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1103 1120 1104 1121 .activity-update-form { 1105 1122 border: 1px solid #ccc; 1123 -webkit-box-shadow: inset 0 0 6px #eee; 1124 -moz-box-shadow: inset 0 0 6px #eee; 1106 1125 box-shadow: inset 0 0 6px #eee; 1107 1126 margin: 15px 0; 1108 1127 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1125 1144 1126 1145 .activity-update-form #whats-new-textarea textarea { 1127 1146 background: #fff; 1147 -webkit-box-sizing: border-box; 1148 -moz-box-sizing: border-box; 1128 1149 box-sizing: border-box; 1129 1150 color: #333; 1130 1151 font-family: inherit; … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1136 1157 } 1137 1158 1138 1159 .activity-update-form #whats-new-textarea textarea:focus { 1160 -webkit-box-shadow: 0 0 6px 0 #d6d6d6; 1161 -moz-box-shadow: 0 0 6px 0 #d6d6d6; 1139 1162 box-shadow: 0 0 6px 0 #d6d6d6; 1140 1163 } 1141 1164 … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1164 1187 } 1165 1188 1166 1189 .activity-update-form #whats-new-post-in-box #whats-new-post-in-box-items .bp-activity-object { 1190 display: -webkit-box; 1191 display: -ms-flexbox; 1192 display: -webkit-flex; 1167 1193 display: flex; 1194 -ms-flex-align: center; 1195 -webkit-align-items: center; 1196 -webkit-box-align: center; 1168 1197 align-items: center; 1169 1198 padding: 0.2em; 1170 1199 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1512 1541 .buddypress-wrap .activity-list .load-newest:focus, 1513 1542 .buddypress-wrap .activity-list .load-newest:hover { 1514 1543 border-color: #e1e1e1; 1544 -webkit-box-shadow: 0 0 6px 0 #eaeaea; 1545 -moz-box-shadow: 0 0 6px 0 #eaeaea; 1515 1546 box-shadow: 0 0 6px 0 #eaeaea; 1516 1547 } 1517 1548 … … body.activity-permalink .activity-list .activity-comments { 1577 1608 top: -20px; 1578 1609 } 1579 1610 body.activity-permalink .activity-list .activity-avatar img { 1611 -webkit-box-shadow: 0 0 0 8px #fff; 1580 1612 box-shadow: 0 0 0 8px #fff; 1581 1613 } 1582 1614 body.activity-permalink .activity-list .activity-content { … … body.activity-permalink .activity-list .activity-comments { 1597 1629 .bp-member-preview-cover img, 1598 1630 .bp-group-preview-cover img { 1599 1631 background: #c5c5c5; 1600 -o-object-fit: cover;1601 1632 object-fit: cover; 1602 1633 border: 0; 1603 1634 display: block; … … form.ac-form .ac-reply-content .ac-textarea textarea { 1845 1876 } 1846 1877 1847 1878 form.ac-form .ac-reply-content .ac-textarea textarea:focus { 1879 -webkit-box-shadow: 0 0 6px #d6d6d6; 1880 -moz-box-shadow: 0 0 6px #d6d6d6; 1848 1881 box-shadow: 0 0 6px #d6d6d6; 1849 1882 } 1850 1883 … … form.ac-form .ac-reply-content input { 1908 1941 1909 1942 .buddypress-wrap .groups-list li .group-desc { 1910 1943 border: 1px solid #eaeaea; 1944 -webkit-border-radius: 10px; 1945 -moz-border-radius: 10px; 1946 -ms-border-radius: 10px; 1911 1947 border-radius: 10px; 1912 1948 background-clip: padding-box; 1913 1949 font-size: 13px; … … form.ac-form .ac-reply-content input { 1983 2019 1984 2020 .buddypress-wrap .members-list li .user-update { 1985 2021 border: 1px solid #eaeaea; 2022 -webkit-border-radius: 10px; 2023 -moz-border-radius: 10px; 2024 -ms-border-radius: 10px; 1986 2025 border-radius: 10px; 1987 2026 background-clip: padding-box; 1988 2027 color: #737373; … … form.ac-form .ac-reply-content input { 2032 2071 *------------------------------------------------------------------------------- 2033 2072 */ 2034 2073 .register-page .register-section { 2074 -webkit-box-sizing: border-box; 2075 -moz-box-sizing: border-box; 2035 2076 box-sizing: border-box; 2036 2077 } 2037 2078 … … body.no-js .single-item-header .js-self-profile-button { 2441 2482 } 2442 2483 2443 2484 .groups-header .moderators-lists img.avatar { 2485 -moz-box-shadow: none; 2486 -webkit-box-shadow: none; 2444 2487 box-shadow: none; 2445 2488 float: none; 2446 2489 height: 30px; … … body.no-js .single-item-header .js-self-profile-button { 2478 2521 2479 2522 .groups-header .desc-wrap .group-description { 2480 2523 background: #fafafa; 2524 -webkit-box-shadow: inset 0 0 9px #ccc; 2525 -moz-box-shadow: inset 0 0 9px #ccc; 2481 2526 box-shadow: inset 0 0 9px #ccc; 2482 2527 padding: 1em; 2483 2528 text-align: right; … … body.buddypress.bp-user .buddypress-wrap .member-header-actions * > * { 2756 2801 } 2757 2802 2758 2803 .buddypress .bp-invites-content ul.item-list li.selected { 2804 -webkit-box-shadow: inset 0 0 12px 0 rgba(237, 187, 52, 0.2); 2805 -moz-box-shadow: inset 0 0 12px 0 rgba(237, 187, 52, 0.2); 2759 2806 box-shadow: inset 0 0 12px 0 rgba(237, 187, 52, 0.2); 2760 2807 } 2761 2808 … … body.buddypress.bp-user .buddypress-wrap .member-header-actions * > * { 2827 2874 2828 2875 @media screen and (min-width: 46.8em) { 2829 2876 .buddypress .bp-invites-content ul.item-list > li { 2877 -webkit-box-sizing: border-box; 2878 -moz-box-sizing: border-box; 2830 2879 box-sizing: border-box; 2831 2880 border: 1px solid #eaeaea; 2832 2881 float: right; … … body.buddypress.bp-user .buddypress-wrap .member-header-actions * > * { 2848 2897 2849 2898 @media screen and (min-width: 46.8em) { 2850 2899 :not(.vertical) + .item-body #group-invites-container { 2900 display: -ms-grid; 2851 2901 display: grid; 2902 -ms-grid-columns: 25% auto; 2852 2903 grid-template-columns: 25% auto; 2853 2904 grid-template-areas: "group-invites-nav group-invites-column"; 2854 2905 } … … body.register .buddypress-wrap .page ul { 3071 3122 .message-action-star:before, 3072 3123 .message-action-unstar:before, 3073 3124 .message-action-view:before, 3074 .message-action-delete:before { 3125 .message-action-delete:before, 3126 .message-action-quite:before { 3075 3127 font-family: dashicons; 3076 3128 font-size: 18px; 3077 3129 } … … body.register .buddypress-wrap .page ul { 3094 3146 content: "\f153"; 3095 3147 } 3096 3148 3149 .message-action-quite:before { 3150 content: "\f14a"; 3151 } 3152 3097 3153 .message-action-delete:hover:before { 3098 3154 color: #a00; 3099 3155 } … … body.register .buddypress-wrap .page ul { 3107 3163 } 3108 3164 3109 3165 .bp-messages-content .avatar { 3166 -moz-box-shadow: none; 3167 -webkit-box-shadow: none; 3110 3168 box-shadow: none; 3111 3169 } 3112 3170 … … body.register .buddypress-wrap .page ul { 3137 3195 3138 3196 #message-threads li { 3139 3197 border-bottom: 1px solid #eaeaea; 3198 display: -webkit-flex; 3140 3199 display: -moz-flex; 3141 3200 display: -ms-flex; 3142 3201 display: -o-flex; 3143 3202 display: flex; 3203 -webkit-flex-flow: row nowrap; 3204 -moz-flex-flow: row nowrap; 3205 -ms-flex-flow: row nowrap; 3144 3206 -o-flex-flow: row nowrap; 3145 3207 flex-flow: row nowrap; 3146 3208 margin: 0; … … body.register .buddypress-wrap .page ul { 3149 3211 } 3150 3212 3151 3213 #message-threads li .thread-cb { 3214 display: -webkit-box; 3215 display: -ms-flexbox; 3216 display: -webkit-flex; 3152 3217 display: flex; 3218 -ms-flex-align: center; 3219 -webkit-align-items: center; 3220 -webkit-box-align: center; 3153 3221 align-items: center; 3222 -webkit-flex: 1 2 5%; 3154 3223 -moz-flex: 1 2 5%; 3224 -ms-flex: 1 2 5%; 3155 3225 -o-flex: 1 2 5%; 3156 3226 flex: 1 2 5%; 3157 3227 } 3158 3228 3159 3229 #message-threads li .thread-from, 3160 3230 #message-threads li .thread-to { 3231 -webkit-flex: 1 2 20%; 3161 3232 -moz-flex: 1 2 20%; 3233 -ms-flex: 1 2 20%; 3162 3234 -o-flex: 1 2 20%; 3163 3235 flex: 1 2 20%; 3164 3236 } … … body.register .buddypress-wrap .page ul { 3184 3256 } 3185 3257 3186 3258 #message-threads li .thread-content { 3259 -webkit-flex: 1 2 60%; 3187 3260 -moz-flex: 1 2 60%; 3261 -ms-flex: 1 2 60%; 3188 3262 -o-flex: 1 2 60%; 3189 3263 flex: 1 2 60%; 3190 3264 } 3191 3265 3192 3266 #message-threads li .thread-date { 3267 -webkit-flex: 1 2 15%; 3193 3268 -moz-flex: 1 2 15%; 3269 -ms-flex: 1 2 15%; 3194 3270 -o-flex: 1 2 15%; 3195 3271 flex: 1 2 15%; 3196 3272 } … … body.register .buddypress-wrap .page ul { 3292 3368 3293 3369 .bp-messages-content #bp-message-thread-list .message-metadata { 3294 3370 border-bottom: 1px solid #ccc; 3371 -webkit-box-shadow: 2px 1px 9px 0 #eee; 3372 -moz-box-shadow: 2px 1px 9px 0 #eee; 3295 3373 box-shadow: 2px 1px 9px 0 #eee; 3296 3374 display: table; 3297 3375 padding: 0.2em; … … body.buddypress.settings.data #buddypress.buddypress-wrap .item-body p a { 3535 3613 .buddypress-wrap input[type="url"]:focus, 3536 3614 .buddypress-wrap input[type="tel"]:focus, 3537 3615 .buddypress-wrap input[type="password"]:focus { 3616 -webkit-box-shadow: 0 0 8px #eaeaea; 3617 -moz-box-shadow: 0 0 8px #eaeaea; 3538 3618 box-shadow: 0 0 8px #eaeaea; 3539 3619 } 3540 3620 … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 3774 3854 } 3775 3855 3776 3856 .buddypress-wrap .select-wrap select { 3857 -moz-appearance: none; 3777 3858 -webkit-appearance: none; 3778 3859 -o-appearance: none; 3779 3860 appearance: none; … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 3868 3949 .buddypress-wrap form#group-members-search button[type="submit"] { 3869 3950 background: none; 3870 3951 border: 0; 3952 -webkit-border-radius: 0; 3953 -moz-border-radius: 0; 3954 -ms-border-radius: 0; 3871 3955 border-radius: 0; 3872 3956 background-clip: padding-box; 3873 3957 } … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4144 4228 } 4145 4229 4146 4230 .center-vert { 4231 display: -ms-flexbox; 4232 display: -webkit-flex; 4147 4233 display: flex; 4234 -ms-flex-align: center; 4235 -webkit-align-items: center; 4236 -webkit-box-align: center; 4148 4237 align-items: center; 4149 4238 } 4150 4239 … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4258 4347 .buddypress .buddypress-wrap input.text-button { 4259 4348 background: none; 4260 4349 border: 0; 4350 -moz-box-shadow: none; 4351 -webkit-box-shadow: none; 4261 4352 box-shadow: none; 4262 4353 color: #767676; 4263 4354 } … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4353 4444 4354 4445 .buddypress #buddypress .create-button a { 4355 4446 border: 1px solid #ccc; 4447 -webkit-border-radius: 5px; 4448 -moz-border-radius: 5px; 4449 -ms-border-radius: 5px; 4356 4450 border-radius: 5px; 4357 4451 background-clip: padding-box; 4452 -webkit-box-shadow: inset 0 0 6px 0 #eaeaea; 4453 -moz-box-shadow: inset 0 0 6px 0 #eaeaea; 4358 4454 box-shadow: inset 0 0 6px 0 #eaeaea; 4359 4455 margin: 0.2em 0; 4360 4456 width: auto; … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4363 4459 .buddypress #buddypress .create-button a:focus, .buddypress #buddypress .create-button a:hover { 4364 4460 background: none; 4365 4461 border-color: #ccc; 4462 -webkit-box-shadow: inset 0 0 12px 0 #eaeaea; 4463 -moz-box-shadow: inset 0 0 12px 0 #eaeaea; 4366 4464 box-shadow: inset 0 0 12px 0 #eaeaea; 4367 4465 } 4368 4466 … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4384 4482 .buddypress #buddypress.bp-dir-hori-nav .create-button a:hover { 4385 4483 background: none; 4386 4484 border: 0; 4485 -moz-box-shadow: none; 4486 -webkit-box-shadow: none; 4387 4487 box-shadow: none; 4388 4488 margin: 0; 4389 4489 } … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4484 4584 .buddypress-wrap #group-create-body .bp-cover-image-status p.warning { 4485 4585 background: #0b80a4; 4486 4586 border: 0; 4587 -webkit-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2); 4588 -moz-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2); 4487 4589 box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2); 4488 4590 color: #fff; 4489 4591 } 4490 4592 4491 4593 .buddypress-wrap .bp-feedback:not(.custom-homepage-info) { 4594 display: -webkit-flex; 4492 4595 display: -moz-flex; 4493 4596 display: -ms-flex; 4494 4597 display: -o-flex; 4495 4598 display: flex; 4599 -webkit-flex-flow: row nowrap; 4600 -moz-flex-flow: row nowrap; 4601 -ms-flex-flow: row nowrap; 4496 4602 -o-flex-flow: row nowrap; 4497 4603 flex-flow: row nowrap; 4604 -ms-flex-align: stretch; 4605 -webkit-align-items: stretch; 4606 -webkit-box-align: stretch; 4498 4607 align-items: stretch; 4499 4608 align-items: center; 4500 4609 } … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4502 4611 .buddypress-wrap .bp-feedback { 4503 4612 background: #fff; 4504 4613 color: #807f7f; 4614 -webkit-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4615 -moz-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4505 4616 box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4506 4617 color: #737373; 4507 4618 margin: 10px 0; … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4580 4691 .buddypress-wrap .bp-feedback.loading .bp-icon, 4581 4692 .buddypress-wrap .bp-feedback.success .bp-icon, 4582 4693 .buddypress-wrap .bp-feedback.updated .bp-icon { 4694 display: -webkit-box; 4695 display: -ms-flexbox; 4696 display: -webkit-flex; 4583 4697 display: flex; 4698 -ms-flex-align: center; 4699 -webkit-align-items: center; 4700 -webkit-box-align: center; 4584 4701 align-items: center; 4585 4702 align-self: stretch; 4586 4703 } … … body.create-blog #buddypress .error, 4703 4820 body.create-blog #buddypress .success { 4704 4821 background: #fff; 4705 4822 color: #807f7f; 4823 -webkit-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4824 -moz-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4706 4825 box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4707 4826 color: #737373; 4708 4827 padding: 10px 15px; … … body.create-blog #buddypress .success { 4822 4941 } 4823 4942 4824 4943 .buddypress.widget .avatar-block { 4944 display: -webkit-flex; 4825 4945 display: -moz-flex; 4826 4946 display: -ms-flex; 4827 4947 display: -o-flex; 4828 4948 display: flex; 4949 -webkit-flex-flow: row wrap; 4950 -moz-flex-flow: row wrap; 4951 -ms-flex-flow: row wrap; 4829 4952 -o-flex-flow: row wrap; 4830 4953 flex-flow: row wrap; 4831 4954 } … … body.create-blog #buddypress .success { 4872 4995 .buddypress-wrap .buddypress.widget ul#friends-list, 4873 4996 .buddypress-wrap .buddypress.widget ul#groups-list, 4874 4997 .buddypress-wrap .buddypress.widget ul#members-list { 4998 display: -webkit-flex; 4875 4999 display: -moz-flex; 4876 5000 display: -ms-flex; 4877 5001 display: -o-flex; 4878 5002 display: flex; 5003 -webkit-flex-flow: column nowrap; 5004 -moz-flex-flow: column nowrap; 5005 -ms-flex-flow: column nowrap; 4879 5006 -o-flex-flow: column nowrap; 4880 5007 flex-flow: column nowrap; 4881 5008 } … … body.create-blog #buddypress .success { 4884 5011 .buddypress-wrap .buddypress.widget ul#friends-list, 4885 5012 .buddypress-wrap .buddypress.widget ul#groups-list, 4886 5013 .buddypress-wrap .buddypress.widget ul#members-list { 5014 display: -webkit-flex; 4887 5015 display: -moz-flex; 4888 5016 display: -ms-flex; 4889 5017 display: -o-flex; 4890 5018 display: flex; 5019 -webkit-flex-flow: row wrap; 5020 -moz-flex-flow: row wrap; 5021 -ms-flex-flow: row wrap; 4891 5022 -o-flex-flow: row wrap; 4892 5023 flex-flow: row wrap; 4893 5024 } … … body.create-blog #buddypress .success { 4897 5028 .buddypress-wrap .buddypress.widget ul#groups-list li, 4898 5029 .buddypress-wrap .buddypress.widget ul#members-list li { 4899 5030 border: 1px solid #eee; 5031 -ms-flex-align: stretch; 5032 -webkit-align-items: stretch; 5033 -webkit-box-align: stretch; 4900 5034 align-items: stretch; 5035 -webkit-flex: 1 1 46%; 4901 5036 -moz-flex: 1 1 46%; 5037 -ms-flex: 1 1 46%; 4902 5038 -o-flex: 1 1 46%; 4903 5039 flex: 1 1 46%; 4904 5040 margin: 2%; … … body.create-blog #buddypress .success { 4908 5044 .buddypress-wrap .buddypress.widget ul#friends-list li, 4909 5045 .buddypress-wrap .buddypress.widget ul#groups-list li, 4910 5046 .buddypress-wrap .buddypress.widget ul#members-list li { 5047 -webkit-flex: 0 1 20%; 4911 5048 -moz-flex: 0 1 20%; 5049 -ms-flex: 0 1 20%; 4912 5050 -o-flex: 0 1 20%; 4913 5051 flex: 0 1 20%; 4914 5052 } … … body.create-blog #buddypress .success { 4944 5082 .buddypress-wrap .buddypress.widget ul#friends-list li, 4945 5083 .buddypress-wrap .buddypress.widget ul#groups-list li, 4946 5084 .buddypress-wrap .buddypress.widget ul#members-list li { 5085 -webkit-flex: 0 1 auto; 4947 5086 -moz-flex: 0 1 auto; 5087 -ms-flex: 0 1 auto; 4948 5088 -o-flex: 0 1 auto; 4949 5089 flex: 0 1 auto; 4950 5090 margin: 10px 2% 1%; … … body.create-blog #buddypress .success { 4972 5112 4973 5113 .buddypress-wrap a.loading, 4974 5114 .buddypress-wrap input.loading { 5115 -moz-animation: loader-pulsate 0.5s infinite ease-in-out alternate; 5116 -webkit-animation: loader-pulsate 0.5s infinite ease-in-out alternate; 4975 5117 animation: loader-pulsate 0.5s infinite ease-in-out alternate; 4976 5118 border-color: #aaa; 4977 5119 } 4978 5120 5121 @-webkit-keyframes loader-pulsate { 5122 from { 5123 border-color: #aaa; 5124 -webkit-box-shadow: 0 0 6px #ccc; 5125 box-shadow: 0 0 6px #ccc; 5126 } 5127 to { 5128 border-color: #ccc; 5129 -webkit-box-shadow: 0 0 6px #f8f8f8; 5130 box-shadow: 0 0 6px #f8f8f8; 5131 } 5132 } 5133 5134 @-moz-keyframes loader-pulsate { 5135 from { 5136 border-color: #aaa; 5137 -moz-box-shadow: 0 0 6px #ccc; 5138 box-shadow: 0 0 6px #ccc; 5139 } 5140 to { 5141 border-color: #ccc; 5142 -moz-box-shadow: 0 0 6px #f8f8f8; 5143 box-shadow: 0 0 6px #f8f8f8; 5144 } 5145 } 5146 4979 5147 @keyframes loader-pulsate { 4980 5148 from { 4981 5149 border-color: #aaa; 5150 -moz-box-shadow: 0 0 6px #ccc; 4982 5151 box-shadow: 0 0 6px #ccc; 4983 5152 } 4984 5153 to { 4985 5154 border-color: #ccc; 5155 -moz-box-shadow: 0 0 6px #f8f8f8; 4986 5156 box-shadow: 0 0 6px #f8f8f8; 4987 5157 } 4988 5158 } … … body.create-blog #buddypress .success { 5001 5171 display: none; 5002 5172 opacity: 0; 5003 5173 position: absolute; 5174 -webkit-transform: translate3d(0, 0, 0); 5175 -ms-transform: translate3d(0, 0, 0); 5004 5176 transform: translate3d(0, 0, 0); 5005 5177 visibility: hidden; 5006 5178 } … … body.create-blog #buddypress .success { 5021 5193 pointer-events: none; 5022 5194 text-shadow: none; 5023 5195 text-transform: none; 5196 -webkit-transition: all 1.5s ease; 5197 -ms-transition: all 1.5s ease; 5024 5198 transition: all 1.5s ease; 5025 5199 white-space: nowrap; 5026 5200 word-wrap: break-word; … … body.create-blog #buddypress .success { 5044 5218 right: 50%; 5045 5219 margin-top: 7px; 5046 5220 top: 110%; 5221 -webkit-transform: translate(50%, 0); 5222 -ms-transform: translate(50%, 0); 5047 5223 transform: translate(50%, 0); 5048 5224 } 5049 5225 5050 5226 .user-list .bp-tooltip:after { 5051 5227 right: 0; 5228 -webkit-transform: translate(0, 0); 5229 -ms-transform: translate(0, 0); 5052 5230 transform: translate(0, 0); 5053 5231 } 5054 5232 … … body.create-blog #buddypress .success { 5056 5234 .user-list .bp-tooltip:after { 5057 5235 right: auto; 5058 5236 left: 0; 5237 -webkit-transform: translate(0, 0); 5238 -ms-transform: translate(0, 0); 5059 5239 transform: translate(0, 0); 5060 5240 } 5061 5241 } … … body.create-blog #buddypress .success { 5066 5246 .notification-actions .bp-tooltip:after, 5067 5247 .participants-list .bp-tooltip:after { 5068 5248 right: 0; 5249 -webkit-transform: translate(0, 0); 5250 -ms-transform: translate(0, 0); 5069 5251 transform: translate(0, 0); 5070 5252 } 5071 5253 … … body.create-blog #buddypress .success { 5074 5256 .single-message-thread-header .actions .bp-tooltip:after { 5075 5257 right: auto; 5076 5258 left: 0; 5259 -webkit-transform: translate(0, 0); 5260 -ms-transform: translate(0, 0); 5077 5261 transform: translate(0, 0); 5078 5262 } 5079 5263 … … body.create-blog #buddypress .success { 5089 5273 */ 5090 5274 #item-body, 5091 5275 .single-screen-navs { 5276 -webkit-box-sizing: border-box; 5277 -moz-box-sizing: border-box; 5092 5278 box-sizing: border-box; 5093 5279 } 5094 5280 5095 5281 .grid > li, 5096 5282 .grid > li .generic-button a { 5283 -webkit-box-sizing: border-box; 5284 -moz-box-sizing: border-box; 5097 5285 box-sizing: border-box; 5098 5286 } 5099 5287 -
src/bp-templates/bp-nouveau/css/buddypress.css
diff --git src/bp-templates/bp-nouveau/css/buddypress.css src/bp-templates/bp-nouveau/css/buddypress.css index be35e509e..f0488b8ec 100644
body #buddypress select, 69 69 body #buddypress input[type="search"], 70 70 body #buddypress input[type="submit"], 71 71 body #buddypress input[type="reset"] { 72 -webkit-border-radius: 2px; 73 -moz-border-radius: 2px; 74 -ms-border-radius: 2px; 72 75 border-radius: 2px; 73 76 background-clip: padding-box; 74 77 } … … body #buddypress .bp-lists blockquote { 79 82 } 80 83 81 84 body #buddypress .bp-list .action { 85 -webkit-box-sizing: border-box; 86 -moz-box-sizing: border-box; 82 87 box-sizing: border-box; 83 88 } 84 89 … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 375 380 .buddypress-wrap.bp-dir-hori-nav:not(.bp-vertical-navs) nav:not(.tabbed-links) { 376 381 border-bottom: 1px solid #eee; 377 382 border-top: 1px solid #eee; 383 -webkit-box-shadow: 0 2px 12px 0 #fafafa; 384 -moz-box-shadow: 0 2px 12px 0 #fafafa; 378 385 box-shadow: 0 2px 12px 0 #fafafa; 379 386 } 380 387 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 868 875 } 869 876 870 877 .bp-list { 878 -webkit-box-sizing: border-box; 879 -moz-box-sizing: border-box; 871 880 box-sizing: border-box; 872 881 border-top: 1px solid #eaeaea; 873 882 clear: both; … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1018 1027 .activity-list.bp-list .activity-item { 1019 1028 background: #fff; 1020 1029 border: 1px solid #b7b7b7; 1030 -webkit-box-shadow: 0 0 6px #d2d2d2; 1031 -moz-box-shadow: 0 0 6px #d2d2d2; 1021 1032 box-shadow: 0 0 6px #d2d2d2; 1022 1033 margin: 20px 0; 1023 1034 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1038 1049 @media screen and (min-width: 46.8em) { 1039 1050 .friends-request-list li, 1040 1051 .membership-requests-list li { 1052 display: -webkit-flex; 1041 1053 display: -moz-flex; 1042 1054 display: -ms-flex; 1043 1055 display: -o-flex; 1044 1056 display: flex; 1057 -webkit-flex-flow: row nowrap; 1058 -moz-flex-flow: row nowrap; 1059 -ms-flex-flow: row nowrap; 1045 1060 -o-flex-flow: row nowrap; 1046 1061 flex-flow: row nowrap; 1047 1062 } 1048 1063 .friends-request-list li .item, 1049 1064 .membership-requests-list li .item { 1065 -webkit-flex: 1 1 auto; 1050 1066 -moz-flex: 1 1 auto; 1067 -ms-flex: 1 1 auto; 1051 1068 -o-flex: 1 1 auto; 1052 1069 flex: 1 1 auto; 1053 1070 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1103 1120 1104 1121 .activity-update-form { 1105 1122 border: 1px solid #ccc; 1123 -webkit-box-shadow: inset 0 0 6px #eee; 1124 -moz-box-shadow: inset 0 0 6px #eee; 1106 1125 box-shadow: inset 0 0 6px #eee; 1107 1126 margin: 15px 0; 1108 1127 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1125 1144 1126 1145 .activity-update-form #whats-new-textarea textarea { 1127 1146 background: #fff; 1147 -webkit-box-sizing: border-box; 1148 -moz-box-sizing: border-box; 1128 1149 box-sizing: border-box; 1129 1150 color: #333; 1130 1151 font-family: inherit; … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1136 1157 } 1137 1158 1138 1159 .activity-update-form #whats-new-textarea textarea:focus { 1160 -webkit-box-shadow: 0 0 6px 0 #d6d6d6; 1161 -moz-box-shadow: 0 0 6px 0 #d6d6d6; 1139 1162 box-shadow: 0 0 6px 0 #d6d6d6; 1140 1163 } 1141 1164 … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1164 1187 } 1165 1188 1166 1189 .activity-update-form #whats-new-post-in-box #whats-new-post-in-box-items .bp-activity-object { 1190 display: -webkit-box; 1191 display: -ms-flexbox; 1192 display: -webkit-flex; 1167 1193 display: flex; 1194 -ms-flex-align: center; 1195 -webkit-align-items: center; 1196 -webkit-box-align: center; 1168 1197 align-items: center; 1169 1198 padding: 0.2em; 1170 1199 } … … body.buddypress article.page > .entry-header:not(.alignwide):not(.alignfull) .en 1512 1541 .buddypress-wrap .activity-list .load-newest:focus, 1513 1542 .buddypress-wrap .activity-list .load-newest:hover { 1514 1543 border-color: #e1e1e1; 1544 -webkit-box-shadow: 0 0 6px 0 #eaeaea; 1545 -moz-box-shadow: 0 0 6px 0 #eaeaea; 1515 1546 box-shadow: 0 0 6px 0 #eaeaea; 1516 1547 } 1517 1548 … … body.activity-permalink .activity-list .activity-comments { 1577 1608 top: -20px; 1578 1609 } 1579 1610 body.activity-permalink .activity-list .activity-avatar img { 1611 -webkit-box-shadow: 0 0 0 8px #fff; 1580 1612 box-shadow: 0 0 0 8px #fff; 1581 1613 } 1582 1614 body.activity-permalink .activity-list .activity-content { … … body.activity-permalink .activity-list .activity-comments { 1597 1629 .bp-member-preview-cover img, 1598 1630 .bp-group-preview-cover img { 1599 1631 background: #c5c5c5; 1600 -o-object-fit: cover;1601 1632 object-fit: cover; 1602 1633 border: 0; 1603 1634 display: block; … … form.ac-form .ac-reply-content .ac-textarea textarea { 1845 1876 } 1846 1877 1847 1878 form.ac-form .ac-reply-content .ac-textarea textarea:focus { 1879 -webkit-box-shadow: 0 0 6px #d6d6d6; 1880 -moz-box-shadow: 0 0 6px #d6d6d6; 1848 1881 box-shadow: 0 0 6px #d6d6d6; 1849 1882 } 1850 1883 … … form.ac-form .ac-reply-content input { 1908 1941 1909 1942 .buddypress-wrap .groups-list li .group-desc { 1910 1943 border: 1px solid #eaeaea; 1944 -webkit-border-radius: 10px; 1945 -moz-border-radius: 10px; 1946 -ms-border-radius: 10px; 1911 1947 border-radius: 10px; 1912 1948 background-clip: padding-box; 1913 1949 font-size: 13px; … … form.ac-form .ac-reply-content input { 1983 2019 1984 2020 .buddypress-wrap .members-list li .user-update { 1985 2021 border: 1px solid #eaeaea; 2022 -webkit-border-radius: 10px; 2023 -moz-border-radius: 10px; 2024 -ms-border-radius: 10px; 1986 2025 border-radius: 10px; 1987 2026 background-clip: padding-box; 1988 2027 color: #737373; … … form.ac-form .ac-reply-content input { 2032 2071 *------------------------------------------------------------------------------- 2033 2072 */ 2034 2073 .register-page .register-section { 2074 -webkit-box-sizing: border-box; 2075 -moz-box-sizing: border-box; 2035 2076 box-sizing: border-box; 2036 2077 } 2037 2078 … … body.no-js .single-item-header .js-self-profile-button { 2441 2482 } 2442 2483 2443 2484 .groups-header .moderators-lists img.avatar { 2485 -moz-box-shadow: none; 2486 -webkit-box-shadow: none; 2444 2487 box-shadow: none; 2445 2488 float: none; 2446 2489 height: 30px; … … body.no-js .single-item-header .js-self-profile-button { 2478 2521 2479 2522 .groups-header .desc-wrap .group-description { 2480 2523 background: #fafafa; 2524 -webkit-box-shadow: inset 0 0 9px #ccc; 2525 -moz-box-shadow: inset 0 0 9px #ccc; 2481 2526 box-shadow: inset 0 0 9px #ccc; 2482 2527 padding: 1em; 2483 2528 text-align: left; … … body.buddypress.bp-user .buddypress-wrap .member-header-actions * > * { 2756 2801 } 2757 2802 2758 2803 .buddypress .bp-invites-content ul.item-list li.selected { 2804 -webkit-box-shadow: inset 0 0 12px 0 rgba(237, 187, 52, 0.2); 2805 -moz-box-shadow: inset 0 0 12px 0 rgba(237, 187, 52, 0.2); 2759 2806 box-shadow: inset 0 0 12px 0 rgba(237, 187, 52, 0.2); 2760 2807 } 2761 2808 … … body.buddypress.bp-user .buddypress-wrap .member-header-actions * > * { 2827 2874 2828 2875 @media screen and (min-width: 46.8em) { 2829 2876 .buddypress .bp-invites-content ul.item-list > li { 2877 -webkit-box-sizing: border-box; 2878 -moz-box-sizing: border-box; 2830 2879 box-sizing: border-box; 2831 2880 border: 1px solid #eaeaea; 2832 2881 float: left; … … body.buddypress.bp-user .buddypress-wrap .member-header-actions * > * { 2848 2897 2849 2898 @media screen and (min-width: 46.8em) { 2850 2899 :not(.vertical) + .item-body #group-invites-container { 2900 display: -ms-grid; 2851 2901 display: grid; 2902 -ms-grid-columns: 25% auto; 2852 2903 grid-template-columns: 25% auto; 2853 2904 grid-template-areas: "group-invites-nav group-invites-column"; 2854 2905 } … … body.register .buddypress-wrap .page ul { 3071 3122 .message-action-star:before, 3072 3123 .message-action-unstar:before, 3073 3124 .message-action-view:before, 3074 .message-action-delete:before { 3125 .message-action-delete:before, 3126 .message-action-quite:before { 3075 3127 font-family: dashicons; 3076 3128 font-size: 18px; 3077 3129 } … … body.register .buddypress-wrap .page ul { 3094 3146 content: "\f153"; 3095 3147 } 3096 3148 3149 .message-action-quite:before { 3150 content: "\f14a"; 3151 } 3152 3097 3153 .message-action-delete:hover:before { 3098 3154 color: #a00; 3099 3155 } … … body.register .buddypress-wrap .page ul { 3107 3163 } 3108 3164 3109 3165 .bp-messages-content .avatar { 3166 -moz-box-shadow: none; 3167 -webkit-box-shadow: none; 3110 3168 box-shadow: none; 3111 3169 } 3112 3170 … … body.register .buddypress-wrap .page ul { 3137 3195 3138 3196 #message-threads li { 3139 3197 border-bottom: 1px solid #eaeaea; 3198 display: -webkit-flex; 3140 3199 display: -moz-flex; 3141 3200 display: -ms-flex; 3142 3201 display: -o-flex; 3143 3202 display: flex; 3203 -webkit-flex-flow: row nowrap; 3204 -moz-flex-flow: row nowrap; 3205 -ms-flex-flow: row nowrap; 3144 3206 -o-flex-flow: row nowrap; 3145 3207 flex-flow: row nowrap; 3146 3208 margin: 0; … … body.register .buddypress-wrap .page ul { 3149 3211 } 3150 3212 3151 3213 #message-threads li .thread-cb { 3214 display: -webkit-box; 3215 display: -ms-flexbox; 3216 display: -webkit-flex; 3152 3217 display: flex; 3218 -ms-flex-align: center; 3219 -webkit-align-items: center; 3220 -webkit-box-align: center; 3153 3221 align-items: center; 3222 -webkit-flex: 1 2 5%; 3154 3223 -moz-flex: 1 2 5%; 3224 -ms-flex: 1 2 5%; 3155 3225 -o-flex: 1 2 5%; 3156 3226 flex: 1 2 5%; 3157 3227 } 3158 3228 3159 3229 #message-threads li .thread-from, 3160 3230 #message-threads li .thread-to { 3231 -webkit-flex: 1 2 20%; 3161 3232 -moz-flex: 1 2 20%; 3233 -ms-flex: 1 2 20%; 3162 3234 -o-flex: 1 2 20%; 3163 3235 flex: 1 2 20%; 3164 3236 } … … body.register .buddypress-wrap .page ul { 3184 3256 } 3185 3257 3186 3258 #message-threads li .thread-content { 3259 -webkit-flex: 1 2 60%; 3187 3260 -moz-flex: 1 2 60%; 3261 -ms-flex: 1 2 60%; 3188 3262 -o-flex: 1 2 60%; 3189 3263 flex: 1 2 60%; 3190 3264 } 3191 3265 3192 3266 #message-threads li .thread-date { 3267 -webkit-flex: 1 2 15%; 3193 3268 -moz-flex: 1 2 15%; 3269 -ms-flex: 1 2 15%; 3194 3270 -o-flex: 1 2 15%; 3195 3271 flex: 1 2 15%; 3196 3272 } … … body.register .buddypress-wrap .page ul { 3292 3368 3293 3369 .bp-messages-content #bp-message-thread-list .message-metadata { 3294 3370 border-bottom: 1px solid #ccc; 3371 -webkit-box-shadow: -2px 1px 9px 0 #eee; 3372 -moz-box-shadow: -2px 1px 9px 0 #eee; 3295 3373 box-shadow: -2px 1px 9px 0 #eee; 3296 3374 display: table; 3297 3375 padding: 0.2em; … … body.buddypress.settings.data #buddypress.buddypress-wrap .item-body p a { 3535 3613 .buddypress-wrap input[type="url"]:focus, 3536 3614 .buddypress-wrap input[type="tel"]:focus, 3537 3615 .buddypress-wrap input[type="password"]:focus { 3616 -webkit-box-shadow: 0 0 8px #eaeaea; 3617 -moz-box-shadow: 0 0 8px #eaeaea; 3538 3618 box-shadow: 0 0 8px #eaeaea; 3539 3619 } 3540 3620 … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 3774 3854 } 3775 3855 3776 3856 .buddypress-wrap .select-wrap select { 3857 -moz-appearance: none; 3777 3858 -webkit-appearance: none; 3778 3859 -o-appearance: none; 3779 3860 appearance: none; … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 3868 3949 .buddypress-wrap form#group-members-search button[type="submit"] { 3869 3950 background: none; 3870 3951 border: 0; 3952 -webkit-border-radius: 0; 3953 -moz-border-radius: 0; 3954 -ms-border-radius: 0; 3871 3955 border-radius: 0; 3872 3956 background-clip: padding-box; 3873 3957 } … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4144 4228 } 4145 4229 4146 4230 .center-vert { 4231 display: -ms-flexbox; 4232 display: -webkit-flex; 4147 4233 display: flex; 4234 -ms-flex-align: center; 4235 -webkit-align-items: center; 4236 -webkit-box-align: center; 4148 4237 align-items: center; 4149 4238 } 4150 4239 … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4258 4347 .buddypress .buddypress-wrap input.text-button { 4259 4348 background: none; 4260 4349 border: 0; 4350 -moz-box-shadow: none; 4351 -webkit-box-shadow: none; 4261 4352 box-shadow: none; 4262 4353 color: #767676; 4263 4354 } … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4353 4444 4354 4445 .buddypress #buddypress .create-button a { 4355 4446 border: 1px solid #ccc; 4447 -webkit-border-radius: 5px; 4448 -moz-border-radius: 5px; 4449 -ms-border-radius: 5px; 4356 4450 border-radius: 5px; 4357 4451 background-clip: padding-box; 4452 -webkit-box-shadow: inset 0 0 6px 0 #eaeaea; 4453 -moz-box-shadow: inset 0 0 6px 0 #eaeaea; 4358 4454 box-shadow: inset 0 0 6px 0 #eaeaea; 4359 4455 margin: 0.2em 0; 4360 4456 width: auto; … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4363 4459 .buddypress #buddypress .create-button a:focus, .buddypress #buddypress .create-button a:hover { 4364 4460 background: none; 4365 4461 border-color: #ccc; 4462 -webkit-box-shadow: inset 0 0 12px 0 #eaeaea; 4463 -moz-box-shadow: inset 0 0 12px 0 #eaeaea; 4366 4464 box-shadow: inset 0 0 12px 0 #eaeaea; 4367 4465 } 4368 4466 … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4384 4482 .buddypress #buddypress.bp-dir-hori-nav .create-button a:hover { 4385 4483 background: none; 4386 4484 border: 0; 4485 -moz-box-shadow: none; 4486 -webkit-box-shadow: none; 4387 4487 box-shadow: none; 4388 4488 margin: 0; 4389 4489 } … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4484 4584 .buddypress-wrap #group-create-body .bp-cover-image-status p.warning { 4485 4585 background: #0b80a4; 4486 4586 border: 0; 4587 -webkit-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2); 4588 -moz-box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2); 4487 4589 box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.2); 4488 4590 color: #fff; 4489 4591 } 4490 4592 4491 4593 .buddypress-wrap .bp-feedback:not(.custom-homepage-info) { 4594 display: -webkit-flex; 4492 4595 display: -moz-flex; 4493 4596 display: -ms-flex; 4494 4597 display: -o-flex; 4495 4598 display: flex; 4599 -webkit-flex-flow: row nowrap; 4600 -moz-flex-flow: row nowrap; 4601 -ms-flex-flow: row nowrap; 4496 4602 -o-flex-flow: row nowrap; 4497 4603 flex-flow: row nowrap; 4604 -ms-flex-align: stretch; 4605 -webkit-align-items: stretch; 4606 -webkit-box-align: stretch; 4498 4607 align-items: stretch; 4499 4608 align-items: center; 4500 4609 } … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4502 4611 .buddypress-wrap .bp-feedback { 4503 4612 background: #fff; 4504 4613 color: #807f7f; 4614 -webkit-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4615 -moz-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4505 4616 box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4506 4617 color: #737373; 4507 4618 margin: 10px 0; … … body.no-js .buddypress #messages-bulk-management #select-all-messages { 4580 4691 .buddypress-wrap .bp-feedback.loading .bp-icon, 4581 4692 .buddypress-wrap .bp-feedback.success .bp-icon, 4582 4693 .buddypress-wrap .bp-feedback.updated .bp-icon { 4694 display: -webkit-box; 4695 display: -ms-flexbox; 4696 display: -webkit-flex; 4583 4697 display: flex; 4698 -ms-flex-align: center; 4699 -webkit-align-items: center; 4700 -webkit-box-align: center; 4584 4701 align-items: center; 4585 4702 align-self: stretch; 4586 4703 } … … body.create-blog #buddypress .error, 4703 4820 body.create-blog #buddypress .success { 4704 4821 background: #fff; 4705 4822 color: #807f7f; 4823 -webkit-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4824 -moz-box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4706 4825 box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.1); 4707 4826 color: #737373; 4708 4827 padding: 10px 15px; … … body.create-blog #buddypress .success { 4822 4941 } 4823 4942 4824 4943 .buddypress.widget .avatar-block { 4944 display: -webkit-flex; 4825 4945 display: -moz-flex; 4826 4946 display: -ms-flex; 4827 4947 display: -o-flex; 4828 4948 display: flex; 4949 -webkit-flex-flow: row wrap; 4950 -moz-flex-flow: row wrap; 4951 -ms-flex-flow: row wrap; 4829 4952 -o-flex-flow: row wrap; 4830 4953 flex-flow: row wrap; 4831 4954 } … … body.create-blog #buddypress .success { 4872 4995 .buddypress-wrap .buddypress.widget ul#friends-list, 4873 4996 .buddypress-wrap .buddypress.widget ul#groups-list, 4874 4997 .buddypress-wrap .buddypress.widget ul#members-list { 4998 display: -webkit-flex; 4875 4999 display: -moz-flex; 4876 5000 display: -ms-flex; 4877 5001 display: -o-flex; 4878 5002 display: flex; 5003 -webkit-flex-flow: column nowrap; 5004 -moz-flex-flow: column nowrap; 5005 -ms-flex-flow: column nowrap; 4879 5006 -o-flex-flow: column nowrap; 4880 5007 flex-flow: column nowrap; 4881 5008 } … … body.create-blog #buddypress .success { 4884 5011 .buddypress-wrap .buddypress.widget ul#friends-list, 4885 5012 .buddypress-wrap .buddypress.widget ul#groups-list, 4886 5013 .buddypress-wrap .buddypress.widget ul#members-list { 5014 display: -webkit-flex; 4887 5015 display: -moz-flex; 4888 5016 display: -ms-flex; 4889 5017 display: -o-flex; 4890 5018 display: flex; 5019 -webkit-flex-flow: row wrap; 5020 -moz-flex-flow: row wrap; 5021 -ms-flex-flow: row wrap; 4891 5022 -o-flex-flow: row wrap; 4892 5023 flex-flow: row wrap; 4893 5024 } … … body.create-blog #buddypress .success { 4897 5028 .buddypress-wrap .buddypress.widget ul#groups-list li, 4898 5029 .buddypress-wrap .buddypress.widget ul#members-list li { 4899 5030 border: 1px solid #eee; 5031 -ms-flex-align: stretch; 5032 -webkit-align-items: stretch; 5033 -webkit-box-align: stretch; 4900 5034 align-items: stretch; 5035 -webkit-flex: 1 1 46%; 4901 5036 -moz-flex: 1 1 46%; 5037 -ms-flex: 1 1 46%; 4902 5038 -o-flex: 1 1 46%; 4903 5039 flex: 1 1 46%; 4904 5040 margin: 2%; … … body.create-blog #buddypress .success { 4908 5044 .buddypress-wrap .buddypress.widget ul#friends-list li, 4909 5045 .buddypress-wrap .buddypress.widget ul#groups-list li, 4910 5046 .buddypress-wrap .buddypress.widget ul#members-list li { 5047 -webkit-flex: 0 1 20%; 4911 5048 -moz-flex: 0 1 20%; 5049 -ms-flex: 0 1 20%; 4912 5050 -o-flex: 0 1 20%; 4913 5051 flex: 0 1 20%; 4914 5052 } … … body.create-blog #buddypress .success { 4944 5082 .buddypress-wrap .buddypress.widget ul#friends-list li, 4945 5083 .buddypress-wrap .buddypress.widget ul#groups-list li, 4946 5084 .buddypress-wrap .buddypress.widget ul#members-list li { 5085 -webkit-flex: 0 1 auto; 4947 5086 -moz-flex: 0 1 auto; 5087 -ms-flex: 0 1 auto; 4948 5088 -o-flex: 0 1 auto; 4949 5089 flex: 0 1 auto; 4950 5090 margin: 10px 2% 1%; … … body.create-blog #buddypress .success { 4972 5112 4973 5113 .buddypress-wrap a.loading, 4974 5114 .buddypress-wrap input.loading { 5115 -moz-animation: loader-pulsate 0.5s infinite ease-in-out alternate; 5116 -webkit-animation: loader-pulsate 0.5s infinite ease-in-out alternate; 4975 5117 animation: loader-pulsate 0.5s infinite ease-in-out alternate; 4976 5118 border-color: #aaa; 4977 5119 } 4978 5120 5121 @-webkit-keyframes loader-pulsate { 5122 from { 5123 border-color: #aaa; 5124 -webkit-box-shadow: 0 0 6px #ccc; 5125 box-shadow: 0 0 6px #ccc; 5126 } 5127 to { 5128 border-color: #ccc; 5129 -webkit-box-shadow: 0 0 6px #f8f8f8; 5130 box-shadow: 0 0 6px #f8f8f8; 5131 } 5132 } 5133 5134 @-moz-keyframes loader-pulsate { 5135 from { 5136 border-color: #aaa; 5137 -moz-box-shadow: 0 0 6px #ccc; 5138 box-shadow: 0 0 6px #ccc; 5139 } 5140 to { 5141 border-color: #ccc; 5142 -moz-box-shadow: 0 0 6px #f8f8f8; 5143 box-shadow: 0 0 6px #f8f8f8; 5144 } 5145 } 5146 4979 5147 @keyframes loader-pulsate { 4980 5148 from { 4981 5149 border-color: #aaa; 5150 -moz-box-shadow: 0 0 6px #ccc; 4982 5151 box-shadow: 0 0 6px #ccc; 4983 5152 } 4984 5153 to { 4985 5154 border-color: #ccc; 5155 -moz-box-shadow: 0 0 6px #f8f8f8; 4986 5156 box-shadow: 0 0 6px #f8f8f8; 4987 5157 } 4988 5158 } … … body.create-blog #buddypress .success { 5001 5171 display: none; 5002 5172 opacity: 0; 5003 5173 position: absolute; 5174 -webkit-transform: translate3d(0, 0, 0); 5175 -ms-transform: translate3d(0, 0, 0); 5004 5176 transform: translate3d(0, 0, 0); 5005 5177 visibility: hidden; 5006 5178 } … … body.create-blog #buddypress .success { 5021 5193 pointer-events: none; 5022 5194 text-shadow: none; 5023 5195 text-transform: none; 5196 -webkit-transition: all 1.5s ease; 5197 -ms-transition: all 1.5s ease; 5024 5198 transition: all 1.5s ease; 5025 5199 white-space: nowrap; 5026 5200 word-wrap: break-word; … … body.create-blog #buddypress .success { 5044 5218 left: 50%; 5045 5219 margin-top: 7px; 5046 5220 top: 110%; 5221 -webkit-transform: translate(-50%, 0); 5222 -ms-transform: translate(-50%, 0); 5047 5223 transform: translate(-50%, 0); 5048 5224 } 5049 5225 5050 5226 .user-list .bp-tooltip:after { 5051 5227 left: 0; 5228 -webkit-transform: translate(0, 0); 5229 -ms-transform: translate(0, 0); 5052 5230 transform: translate(0, 0); 5053 5231 } 5054 5232 … … body.create-blog #buddypress .success { 5056 5234 .user-list .bp-tooltip:after { 5057 5235 left: auto; 5058 5236 right: 0; 5237 -webkit-transform: translate(0, 0); 5238 -ms-transform: translate(0, 0); 5059 5239 transform: translate(0, 0); 5060 5240 } 5061 5241 } … … body.create-blog #buddypress .success { 5066 5246 .notification-actions .bp-tooltip:after, 5067 5247 .participants-list .bp-tooltip:after { 5068 5248 left: 0; 5249 -webkit-transform: translate(0, 0); 5250 -ms-transform: translate(0, 0); 5069 5251 transform: translate(0, 0); 5070 5252 } 5071 5253 … … body.create-blog #buddypress .success { 5074 5256 .single-message-thread-header .actions .bp-tooltip:after { 5075 5257 left: auto; 5076 5258 right: 0; 5259 -webkit-transform: translate(0, 0); 5260 -ms-transform: translate(0, 0); 5077 5261 transform: translate(0, 0); 5078 5262 } 5079 5263 … … body.create-blog #buddypress .success { 5089 5273 */ 5090 5274 #item-body, 5091 5275 .single-screen-navs { 5276 -webkit-box-sizing: border-box; 5277 -moz-box-sizing: border-box; 5092 5278 box-sizing: border-box; 5093 5279 } 5094 5280 5095 5281 .grid > li, 5096 5282 .grid > li .generic-button a { 5283 -webkit-box-sizing: border-box; 5284 -moz-box-sizing: border-box; 5097 5285 box-sizing: border-box; 5098 5286 } 5099 5287 -
src/bp-templates/bp-nouveau/css/twentytwentyone-rtl.css
diff --git src/bp-templates/bp-nouveau/css/twentytwentyone-rtl.css src/bp-templates/bp-nouveau/css/twentytwentyone-rtl.css index d3d05a346..1d010d79e 100644
body.activity-permalink #buddypress.twentytwentyone .activity-list .activity-ava 906 906 background: none; 907 907 } 908 908 909 #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-delete:before {909 #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-delete:before, #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-quite:before { 910 910 width: 32px; 911 911 height: 32px; 912 912 color: var(--global--color-primary); 913 913 background: var(--global--color-background); 914 914 } 915 915 916 #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-delete:hover:before {916 #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-delete:hover:before, #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-quite:hover:before { 917 917 border-radius: 50%; 918 918 color: var(--global--color-background); 919 919 background: var(--global--color-primary); -
src/bp-templates/bp-nouveau/css/twentytwentyone.css
diff --git src/bp-templates/bp-nouveau/css/twentytwentyone.css src/bp-templates/bp-nouveau/css/twentytwentyone.css index a8837db02..014747f9e 100644
body.activity-permalink #buddypress.twentytwentyone .activity-list .activity-ava 906 906 background: none; 907 907 } 908 908 909 #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-delete:before {909 #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-delete:before, #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-quite:before { 910 910 width: 32px; 911 911 height: 32px; 912 912 color: var(--global--color-primary); 913 913 background: var(--global--color-background); 914 914 } 915 915 916 #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-delete:hover:before {916 #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-delete:hover:before, #buddypress.twentytwentyone .bp-messages-content .actions button.bp-tooltip.message-action-quite:hover:before { 917 917 border-radius: 50%; 918 918 color: var(--global--color-background); 919 919 background: var(--global--color-primary); -
src/bp-templates/bp-nouveau/includes/messages/ajax.php
diff --git src/bp-templates/bp-nouveau/includes/messages/ajax.php src/bp-templates/bp-nouveau/includes/messages/ajax.php index 1ab7b4259..7bb025a4b 100644
add_action( 'admin_init', function() { 17 17 array( 'messages_thread_read' => array( 'function' => 'bp_nouveau_ajax_messages_thread_read', 'nopriv' => false ) ), 18 18 array( 'messages_get_thread_messages' => array( 'function' => 'bp_nouveau_ajax_get_thread_messages', 'nopriv' => false ) ), 19 19 array( 'messages_delete' => array( 'function' => 'bp_nouveau_ajax_delete_thread_messages', 'nopriv' => false ) ), 20 array( 'messages_quite' => array( 'function' => 'bp_nouveau_ajax_quite_thread_messages', 'nopriv' => false ) ), 20 21 array( 'messages_unstar' => array( 'function' => 'bp_nouveau_ajax_star_thread_messages', 'nopriv' => false ) ), 21 22 array( 'messages_star' => array( 'function' => 'bp_nouveau_ajax_star_thread_messages', 'nopriv' => false ) ), 22 23 array( 'messages_unread' => array( 'function' => 'bp_nouveau_ajax_readunread_thread_messages', 'nopriv' => false ) ), … … function bp_nouveau_ajax_dismiss_sitewide_notice() { 780 781 ) ); 781 782 } 782 783 } 784 785 /** 786 * @since 10.0.0 787 */ 788 function bp_nouveau_ajax_quite_thread_messages() { 789 $response = array( 790 'feedback' => __( 'There was a problem quiting your conversation. Please try again.', 'buddypress' ), 791 'type' => 'error', 792 ); 793 794 if ( empty( $_POST['nonce'] ) || ! wp_verify_nonce( $_POST['nonce'], 'bp_nouveau_messages' ) ) { 795 wp_send_json_error( $response ); 796 } 797 798 if ( empty( $_POST['id'] ) ) { 799 wp_send_json_error( $response ); 800 } 801 802 $thread_ids = wp_parse_id_list( $_POST['id'] ); 803 804 foreach ( $thread_ids as $thread_id ) { 805 if ( ! messages_check_thread_access( $thread_id ) && ! bp_current_user_can( 'bp_moderate' ) ) { 806 wp_send_json_error( $response ); 807 } 808 809 bp_messages_quite_thread( $thread_id ); 810 } 811 812 wp_send_json_success( array( 813 'feedback' => __( 'You have left the message thread.', 'buddypress' ), 814 'type' => 'success', 815 ) ); 816 } 817 No newline at end of file -
src/bp-templates/bp-nouveau/js/buddypress-messages.js
diff --git src/bp-templates/bp-nouveau/js/buddypress-messages.js src/bp-templates/bp-nouveau/js/buddypress-messages.js index 73a6e0afd..07d1c6695 100644
window.bp = window.bp || {}; 978 978 979 979 bp.Nouveau.Messages.displayFeedback( response.feedback, response.type ); 980 980 981 if ( 'delete' === action || ( 'starred' === self.collection.options.box && 'unstar' === action ) ) {981 if ( 'delete' === action || 'quite' === action || ( 'starred' === self.collection.options.box && 'unstar' === action ) ) { 982 982 // Remove from the list of messages. 983 983 self.collection.remove( model.get( 'id' ) ); 984 984 … … window.bp = window.bp || {}; 1089 1089 1090 1090 bp.Nouveau.Messages.displayFeedback( response.feedback, response.type ); 1091 1091 1092 if ( 'delete' === action || ( 'starred' === self.collection.options.box && 'unstar' === action ) ) {1092 if ( 'delete' === action || 'quite' === action || ( 'starred' === self.collection.options.box && 'unstar' === action ) ) { 1093 1093 // Remove from the list of messages. 1094 1094 self.collection.remove( thread_ids ); 1095 1095 … … window.bp = window.bp || {}; 1241 1241 1242 1242 bp.Nouveau.Messages.threads.doAction( action, this.model.get( 'id' ), options ).done( function( response ) { 1243 1243 // Remove all views 1244 if ( 'delete' === action ) {1244 if ( 'delete' === action || 'quite' === action ) { 1245 1245 bp.Nouveau.Messages.clearViews(); 1246 1246 } else if ( response.messages ) { 1247 1247 self.model.set( _.first( response.messages ) ); -
src/bp-templates/bp-nouveau/sass/_nouveau_messages.scss
diff --git src/bp-templates/bp-nouveau/sass/_nouveau_messages.scss src/bp-templates/bp-nouveau/sass/_nouveau_messages.scss index a04c262ce..9b97263f8 100644
7 7 .message-action-star:before, 8 8 .message-action-unstar:before, 9 9 .message-action-view:before, 10 .message-action-delete:before { 10 .message-action-delete:before, 11 .message-action-quite:before { 11 12 font-family: dashicons; 12 13 font-size: 18px; 13 14 } … … 30 31 content: "\f153"; 31 32 } 32 33 34 .message-action-quite:before { 35 content: "\f14a"; 36 } 37 33 38 .message-action-delete:hover:before { 34 39 color: #a00; 35 40 } -
src/bp-templates/bp-nouveau/sass/twentytwentyone.scss
diff --git src/bp-templates/bp-nouveau/sass/twentytwentyone.scss src/bp-templates/bp-nouveau/sass/twentytwentyone.scss index 2bc6a8de3..a6bb8fb68 100644
body { 1227 1227 border: none; 1228 1228 background: none; 1229 1229 1230 &.message-action-delete { 1230 &.message-action-delete, 1231 &.message-action-quite { 1231 1232 1232 1233 &:before { 1233 1234 width: 32px;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)