Ticket #7714: 7714.patch
File 7714.patch, 9.1 KB (added by , 5 years ago) |
---|
-
src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
72 72 </script> 73 73 74 74 <script type="text/html" id="tmpl-bp-messages-filters"> 75 <li class="user-messages-bulk-actions"></li>76 75 <li class="user-messages-search" role="search" data-bp-search="{{data.box}}"> 77 76 <div class="bp-search messages-search"> 78 77 <form action="" method="get" id="user_messages_search_form" class="bp-messages-search-form" data-bp-search="messages"> … … 87 86 </form> 88 87 </div> 89 88 </li> 89 <li class="user-messages-bulk-actions"></li> 90 90 </script> 91 91 92 92 <script type="text/html" id="tmpl-bp-bulk-actions"> 93 <label for="user_messages_select_all"> 94 <input type="checkbox" id="user_messages_select_all" value="1"/> 95 <span class="bp-screen-reader-text"><?php esc_html_e( 'Select All Messages', 'buddypress' ); ?></span> 96 </label> 97 <div class="bulk-actions-wrap bp-hide"> 93 <input type="checkbox" id="user_messages_select_all" value="1"/> 94 <label for="user_messages_select_all"><span class="bp-screen-reader-text"><?php esc_html_e( 'Select ', 'buddypress' ); ?></span><?php esc_html_e( 'All Messages', 'buddypress' ); ?></label> 95 <div class="bulk-actions-wrap bp-hide"> 98 96 <div class="bulk-actions select-wrap"> 99 97 <label for="user-messages-bulk-actions" class="bp-screen-reader-text"> 100 98 <?php esc_html_e( 'Select bulk action', 'buddypress' ); ?> … … 106 104 </select> 107 105 <span class="select-arrow" aria-hidden="true"></span> 108 106 </div> 109 <button class="messages-button bulk-apply " type="submit">107 <button class="messages-button bulk-apply bp-tooltip" type="submit" data-bp-tooltip="<?php echo esc_attr( 'Apply', 'buddypress' ); ?>"> 110 108 <span class="dashicons dashicons-yes" aria-hidden="true"></span> 111 109 <span class="bp-screen-reader-text"><?php esc_html_e( 'Apply', 'buddypress' ); ?></span> 112 110 </button> … … 115 113 116 114 <script type="text/html" id="tmpl-bp-messages-thread"> 117 115 <div class="thread-cb"> 118 <label for="bp-message-thread-{{data.id}}"> 119 <input class="message-check" type="checkbox" name="message_ids[]" id="bp-message-thread-{{data.id}}" value="{{data.id}}"> 120 <span class="bp-screen-reader-text"><?php esc_html_e( 'Select this message', 'buddypress' ); ?></span> 121 </label> 116 <input class="message-check" type="checkbox" name="message_ids[]" id="bp-message-thread-{{data.id}}" value="{{data.id}}"> 117 <label for="bp-message-thread-{{data.id}}" class="bp-screen-reader-text"><?php esc_html_e( 'Select this message', 'buddypress' ); ?></label> 122 118 </div> 123 119 <div class="thread-from"> 124 120 <a class="user-link" href="{{data.sender_link}}"> -
src/bp-templates/bp-nouveau/common-styles/_bp_filters.scss
17 17 18 18 .subnav-filters { 19 19 background: none; 20 overflow: hidden;21 20 list-style: none; 22 margin: $marg-med 0 ;21 margin: $marg-med 0 0; 23 22 padding: 0; 24 23 25 24 div { … … 37 36 width: 100%; 38 37 } 39 38 40 @include medium-max { 39 .messages-search { 40 margin-bottom: 1em; 41 41 42 .messages-search { 43 clear: both; 42 @include medium-up { 43 44 margin-bottom: 0; 44 45 } 45 46 } 46 47 } … … 85 86 86 87 .bulk-actions-wrap { 87 88 border: 1px solid $bp-border-color; 88 float: left; 89 90 &.bp-show { 91 display: inline-block; 92 } 93 94 &.bp-hide { 95 display: none; 96 } 89 97 } 90 98 91 99 .select-wrap { … … 92 100 border: 0; 93 101 } 94 102 95 .bulk-actions, 96 label { 103 .bulk-actions { 97 104 float: left; 98 105 } 99 106 100 107 label { 108 display: inline-block; 109 font-weight: 300; 110 margin-right: 25px; 101 111 padding: 5px 0; 102 text-align: center;103 width: 30px;104 112 } 105 113 106 114 div { -
src/bp-templates/bp-nouveau/css/buddypress-rtl.css
636 636 637 637 .buddypress-wrap .subnav-filters { 638 638 background: none; 639 overflow: hidden;640 639 list-style: none; 641 margin: 15px 0 ;640 margin: 15px 0 0; 642 641 padding: 0; 643 642 } 644 643 … … 655 654 width: 100%; 656 655 } 657 656 658 @media screen and (max-width: 46.8em) { 657 .buddypress-wrap .subnav-filters.bp-messages-filters .messages-search { 658 margin-bottom: 1em; 659 } 660 661 @media screen and (min-width: 46.8em) { 659 662 .buddypress-wrap .subnav-filters.bp-messages-filters .messages-search { 660 clear: both;663 margin-bottom: 0; 661 664 } 662 665 } 663 666 … … 702 705 703 706 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions-wrap { 704 707 border: 1px solid #eee; 705 float: right;706 708 } 707 709 710 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions-wrap.bp-show { 711 display: inline-block; 712 } 713 714 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions-wrap.bp-hide { 715 display: none; 716 } 717 708 718 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .select-wrap { 709 719 border: 0; 710 720 } 711 721 712 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions, 713 .buddypress-wrap .subnav-filters .user-messages-bulk-actions label { 722 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions { 714 723 float: right; 715 724 } 716 725 717 726 .buddypress-wrap .subnav-filters .user-messages-bulk-actions label { 727 display: inline-block; 728 font-weight: 300; 729 margin-left: 25px; 718 730 padding: 5px 0; 719 text-align: center;720 width: 30px;721 731 } 722 732 723 733 .buddypress-wrap .subnav-filters .user-messages-bulk-actions div select { … … 2870 2880 flex: 1 2 5%; 2871 2881 } 2872 2882 2873 #message-threads li .thread-cb label {2874 float: right;2875 margin-right: 5px;2876 text-align: center;2877 width: 5%;2878 }2879 2880 2883 #message-threads li .thread-from { 2881 2884 -webkit-flex: 1 2 20%; 2882 2885 -moz-flex: 1 2 20%; -
src/bp-templates/bp-nouveau/css/buddypress.css
636 636 637 637 .buddypress-wrap .subnav-filters { 638 638 background: none; 639 overflow: hidden;640 639 list-style: none; 641 margin: 15px 0 ;640 margin: 15px 0 0; 642 641 padding: 0; 643 642 } 644 643 … … 655 654 width: 100%; 656 655 } 657 656 658 @media screen and (max-width: 46.8em) { 657 .buddypress-wrap .subnav-filters.bp-messages-filters .messages-search { 658 margin-bottom: 1em; 659 } 660 661 @media screen and (min-width: 46.8em) { 659 662 .buddypress-wrap .subnav-filters.bp-messages-filters .messages-search { 660 clear: both;663 margin-bottom: 0; 661 664 } 662 665 } 663 666 … … 702 705 703 706 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions-wrap { 704 707 border: 1px solid #eee; 705 float: left;706 708 } 707 709 710 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions-wrap.bp-show { 711 display: inline-block; 712 } 713 714 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions-wrap.bp-hide { 715 display: none; 716 } 717 708 718 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .select-wrap { 709 719 border: 0; 710 720 } 711 721 712 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions, 713 .buddypress-wrap .subnav-filters .user-messages-bulk-actions label { 722 .buddypress-wrap .subnav-filters .user-messages-bulk-actions .bulk-actions { 714 723 float: left; 715 724 } 716 725 717 726 .buddypress-wrap .subnav-filters .user-messages-bulk-actions label { 727 display: inline-block; 728 font-weight: 300; 729 margin-right: 25px; 718 730 padding: 5px 0; 719 text-align: center;720 width: 30px;721 731 } 722 732 723 733 .buddypress-wrap .subnav-filters .user-messages-bulk-actions div select { … … 2870 2880 flex: 1 2 5%; 2871 2881 } 2872 2882 2873 #message-threads li .thread-cb label {2874 float: left;2875 margin-left: 5px;2876 text-align: center;2877 width: 5%;2878 }2879 2880 2883 #message-threads li .thread-from { 2881 2884 -webkit-flex: 1 2 20%; 2882 2885 -moz-flex: 1 2 20%; -
src/bp-templates/bp-nouveau/js/buddypress-messages.js
928 928 var isChecked = $( event.currentTarget ).prop( 'checked' ); 929 929 930 930 if ( isChecked ) { 931 $( this.el ).find( '.bulk-actions-wrap' ).removeClass( 'bp-hide' ) ;931 $( this.el ).find( '.bulk-actions-wrap' ).removeClass( 'bp-hide' ).addClass( 'bp-show' ); 932 932 } else { 933 933 $( this.el ).find( '.bulk-actions-wrap' ).addClass( 'bp-hide' ); 934 934 } -
src/bp-templates/bp-nouveau/sass/_nouveau_messages.scss
123 123 124 124 @include center-vert(); 125 125 @include box-item-size(1, 2, 5%); 126 127 label {128 float: left;129 margin-left: $marg-xsml;130 text-align: center;131 width: 5%;132 }133 126 } 134 127 135 128 .thread-from {