Changeset 12041
- Timestamp:
- 05/02/2018 05:25:24 PM (8 years ago)
- Location:
- trunk/src/bp-templates/bp-nouveau
- Files:
-
- 6 edited
-
buddypress/common/js-templates/messages/index.php (modified) (2 diffs)
-
common-styles/_bp_tooltips.scss (modified) (1 diff)
-
css/buddypress-rtl.css (modified) (4 diffs)
-
css/buddypress.css (modified) (4 diffs)
-
js/buddypress-messages.js (modified) (1 diff)
-
sass/_nouveau_messages.scss (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php
r12036 r12041 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"> … … 229 230 <# if ( undefined !== data.star_link ) { #> 230 231 231 <?php $test = 1; ?> 232 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 <# } #> 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> 235 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 <# } #> -
trunk/src/bp-templates/bp-nouveau/common-styles/_bp_tooltips.scss
r11991 r12041 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; -
trunk/src/bp-templates/bp-nouveau/css/buddypress-rtl.css
r12040 r12041 3049 3049 } 3050 3050 3051 .bp-messages-content .actions .bp-icons {3051 .bp-messages-content .actions .bp-icons:not(.bp-hide) { 3052 3052 display: inline-block; 3053 3053 margin: 0; … … 3055 3055 } 3056 3056 3057 .bp-messages-content .actions .bp-icons: before {3057 .bp-messages-content .actions .bp-icons:not(.bp-hide):before { 3058 3058 font-size: 26px; 3059 3059 } … … 3098 3098 -moz-box-shadow: 2px 1px 9px 0 #eee; 3099 3099 box-shadow: 2px 1px 9px 0 #eee; 3100 overflow: hidden;3100 display: table; 3101 3101 padding: 0.2em; 3102 width: 100%; 3102 3103 } 3103 3104 … … 4752 4753 } 4753 4754 4754 .bp-invites-content .bp-tooltip:after { 4755 .bp-invites-content .bp-tooltip:after, 4756 .message-metadata .actions .bp-tooltip:after, 4757 .single-message-thread-header .actions .bp-tooltip:after { 4755 4758 right: auto; 4756 4759 left: 0; -
trunk/src/bp-templates/bp-nouveau/css/buddypress.css
r12040 r12041 3049 3049 } 3050 3050 3051 .bp-messages-content .actions .bp-icons {3051 .bp-messages-content .actions .bp-icons:not(.bp-hide) { 3052 3052 display: inline-block; 3053 3053 margin: 0; … … 3055 3055 } 3056 3056 3057 .bp-messages-content .actions .bp-icons: before {3057 .bp-messages-content .actions .bp-icons:not(.bp-hide):before { 3058 3058 font-size: 26px; 3059 3059 } … … 3098 3098 -moz-box-shadow: -2px 1px 9px 0 #eee; 3099 3099 box-shadow: -2px 1px 9px 0 #eee; 3100 overflow: hidden;3100 display: table; 3101 3101 padding: 0.2em; 3102 width: 100%; 3102 3103 } 3103 3104 … … 4752 4753 } 4753 4754 4754 .bp-invites-content .bp-tooltip:after { 4755 .bp-invites-content .bp-tooltip:after, 4756 .message-metadata .actions .bp-tooltip:after, 4757 .single-message-thread-header .actions .bp-tooltip:after { 4755 4758 left: auto; 4756 4759 right: 0; -
trunk/src/bp-templates/bp-nouveau/js/buddypress-messages.js
r11916 r12041 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 -
trunk/src/bp-templates/bp-nouveau/sass/_nouveau_messages.scss
r11916 r12041 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; … … 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 {
Note: See TracChangeset
for help on using the changeset viewer.