Ticket #7723: 7723-tooltips-etc.patch
| File 7723-tooltips-etc.patch, 6.7 KB (added by , 8 years ago) |
|---|
-
src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
9 9 */ 10 10 ?> 11 11 <div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div> 12 13 <div class="bp-messages-feedback"></div> 12 14 <div class="bp-messages-content"></div> 13 <div class="bp-messages-feedback"></div>14 15 15 16 <script type="text/html" id="tmpl-bp-messages-form"> 16 17 <?php bp_nouveau_messages_hook( 'before', 'compose_content' ); ?> … … 228 229 <div class="actions"> 229 230 <# if ( undefined !== data.star_link ) { #> 230 231 231 <?php $test = 1; ?> 232 <button type="button" class="message-action-unstar bp-tooltip bp-icons <# if ( false === data.is_starred ) { #>bp-hide<# } #>" data-bp-star-link="{{data.star_link}}" data-bp-action="unstar" data-bp-tooltip="<?php esc_attr_e( 'Unstar Message', 'buddypress' ); ?>"> 233 <span class="bp-screen-reader-text"><?php esc_html_e( 'Unstar Message', 'buddypress' ); ?></span> 234 </button> 232 235 233 <# if ( false !== data.is_starred ) { #> 234 <button type="button" class="message-action-unstar bp-tooltip bp-icons" data-bp-star-link="{{data.star_link}}" data-bp-action="unstar" data-bp-tooltip="<?php esc_attr_e( 'Unstar Message', 'buddypress' ); ?>"> 235 <span class="bp-screen-reader-text"><?php esc_html_e( 'Unstar Message', 'buddypress' ); ?></span> 236 </button> 237 <# } else { #> 238 <button type="button" class="message-action-star bp-tooltip bp-icons" data-bp-star-link="{{data.star_link}}" data-bp-action="star" data-bp-tooltip="<?php esc_attr_e( 'Star Message', 'buddypress' ); ?>"> 239 <span class="bp-screen-reader-text"><?php esc_html_e( 'Star Message', 'buddypress' ); ?></span> 240 </button> 241 <# } #> 236 <button type="button" class="message-action-star bp-tooltip bp-icons <# if ( false !== data.is_starred ) { #>bp-hide<# } #>" data-bp-star-link="{{data.star_link}}" data-bp-action="star" data-bp-tooltip="<?php esc_attr_e( 'Star Message', 'buddypress' ); ?>"> 237 <span class="bp-screen-reader-text"><?php esc_html_e( 'Star Message', 'buddypress' ); ?></span> 238 </button> 242 239 243 240 <# } #> 244 241 </div> -
src/bp-templates/bp-nouveau/common-styles/_bp_tooltips.scss
94 94 95 95 // Bottom Right Tooltip 96 96 97 .bp-invites-content .bp-tooltip { 97 .bp-invites-content .bp-tooltip, 98 .message-metadata .actions .bp-tooltip, 99 .single-message-thread-header .actions .bp-tooltip { 98 100 99 101 @include bp-tooltip-bottom-right; 100 102 } -
src/bp-templates/bp-nouveau/css/buddypress-rtl.css
3024 3024 max-width: 30%; 3025 3025 } 3026 3026 3027 .bp-messages-content .actions .bp-icons {3027 .bp-messages-content .actions .bp-icons:not(.bp-hide) { 3028 3028 display: inline-block; 3029 3029 margin: 0; 3030 3030 padding: 0.3em 0.5em; 3031 3031 } 3032 3032 3033 .bp-messages-content .actions .bp-icons: before {3033 .bp-messages-content .actions .bp-icons:not(.bp-hide):before { 3034 3034 font-size: 26px; 3035 3035 } 3036 3036 … … 3073 3073 -webkit-box-shadow: 2px 1px 9px 0 #eee; 3074 3074 -moz-box-shadow: 2px 1px 9px 0 #eee; 3075 3075 box-shadow: 2px 1px 9px 0 #eee; 3076 overflow: hidden;3076 display: table; 3077 3077 padding: 0.2em; 3078 width: 100%; 3078 3079 } 3079 3080 3080 3081 .bp-messages-content #bp-message-thread-list .message-metadata .avatar { … … 4727 4728 transform: translate(0, 0); 4728 4729 } 4729 4730 4730 .bp-invites-content .bp-tooltip:after { 4731 .bp-invites-content .bp-tooltip:after, 4732 .message-metadata .actions .bp-tooltip:after, 4733 .single-message-thread-header .actions .bp-tooltip:after { 4731 4734 right: auto; 4732 4735 left: 0; 4733 4736 -webkit-transform: translate(0, 0); -
src/bp-templates/bp-nouveau/css/buddypress.css
3024 3024 max-width: 30%; 3025 3025 } 3026 3026 3027 .bp-messages-content .actions .bp-icons {3027 .bp-messages-content .actions .bp-icons:not(.bp-hide) { 3028 3028 display: inline-block; 3029 3029 margin: 0; 3030 3030 padding: 0.3em 0.5em; 3031 3031 } 3032 3032 3033 .bp-messages-content .actions .bp-icons: before {3033 .bp-messages-content .actions .bp-icons:not(.bp-hide):before { 3034 3034 font-size: 26px; 3035 3035 } 3036 3036 … … 3073 3073 -webkit-box-shadow: -2px 1px 9px 0 #eee; 3074 3074 -moz-box-shadow: -2px 1px 9px 0 #eee; 3075 3075 box-shadow: -2px 1px 9px 0 #eee; 3076 overflow: hidden;3076 display: table; 3077 3077 padding: 0.2em; 3078 width: 100%; 3078 3079 } 3079 3080 3080 3081 .bp-messages-content #bp-message-thread-list .message-metadata .avatar { … … 4727 4728 transform: translate(0, 0); 4728 4729 } 4729 4730 4730 .bp-invites-content .bp-tooltip:after { 4731 .bp-invites-content .bp-tooltip:after, 4732 .message-metadata .actions .bp-tooltip:after, 4733 .single-message-thread-header .actions .bp-tooltip:after { 4731 4734 left: auto; 4732 4735 right: 0; 4733 4736 -webkit-transform: translate(0, 0); -
src/bp-templates/bp-nouveau/js/buddypress-messages.js
1104 1104 } 1105 1105 1106 1106 if ( 'star' === action || 'unstar' === action ) { 1107 var opposite = { 1108 'star' : 'unstar', 1109 'unstar' : 'star' 1110 }; 1111 1107 1112 options.data = { 1108 1113 'star_nonce' : this.model.get( 'star_nonce' ) 1109 1114 }; 1115 1116 $( event.currentTarget ).addClass( 'bp-hide' ); 1117 $( event.currentTarget ).parent().find( '[data-bp-action="' + opposite[ action ] + '"]' ).removeClass( 'bp-hide' ); 1118 1110 1119 } 1111 1120 1112 1121 bp.Nouveau.Messages.threads.doAction( action, this.model.get( 'id' ), options ).done( function( response ) { -
src/bp-templates/bp-nouveau/sass/_nouveau_messages.scss
174 174 float: right; 175 175 max-width: 30%; 176 176 177 .bp-icons {177 .bp-icons:not(.bp-hide) { 178 178 display: inline-block; 179 179 margin: 0; 180 180 padding: $pad-xsml $pad-sml; … … 230 230 border-bottom: 1px solid $bp-border-dark; 231 231 232 232 @include box-shadow(-2px 1px 9px 0 #eee); 233 overflow: hidden;233 display: table; 234 234 padding: 0.2em; 235 width: 100%; 235 236 236 237 .avatar { 237 238 width: 30px;