Changeset 11620
- Timestamp:
- 06/24/2017 02:09:40 AM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/admin/css/admin-rtl.css
r11587 r11620 118 118 } 119 119 120 .bp-profile-field > label { /* label takes on left side 200px */ 121 display: inline-block; 122 font-weight: 600; 123 text-align: right; 124 vertical-align: middle; 125 width: 200px; 126 } 127 128 .field_type_textarea > label, 129 .field_type_multiselectbox > label, 130 .field_type_radio .radio > label, 131 .field_type_checkbox .checkbox > label { /* these fields are usually pretty tall, so align the label for better consistency */ 120 .field_type_textarea legend, 121 .field_type_multiselectbox legend, 122 .field_type_radio .radio legend, 123 .field_type_checkbox .checkbox legend { /* these fields are usually pretty tall, so align the label for better consistency */ 132 124 vertical-align: top; 133 125 } … … 138 130 } 139 131 132 .bp-profile-field .wp-editor-wrap { 133 margin-right: 200px; 134 } 135 136 .field_type_checkbox .description, 137 .field_type_datebox .description, 138 .field_type_radio .description { 139 margin-top: 0; 140 } 141 140 142 .clear-value { /* 'clear value' option also sits in the right side column */ 141 143 display: block; … … 144 146 } 145 147 146 .field_type_checkbox .checkbox > label + label { /* force checkboxes to new lines, in the right side column */ 147 display: block; 148 /* force checkboxes to new lines, in the right side column */ 149 .field_type_checkbox label, 150 .field_type_radio label { 151 display: block; 152 margin-bottom: 1em; 148 153 margin-right: 200px; 149 154 width: auto; 155 } 156 157 .field_type_datebox select:nth-of-type(1) { 158 margin-right: 200px; 150 159 } 151 160 … … 181 190 } 182 191 192 .field-visibility-settings label { 193 clear: right; 194 display: block; 195 margin-bottom: 1em; 196 } 197 183 198 #normal-sortables .field-visibility-settings legend { /* id required for css selector weight */ 184 199 font-size: 14px; … … 186 201 } 187 202 188 #your-profile .bp-profile-field .checkbox legend, 189 #your-profile .bp-profile-field .datebox legend, 190 #your-profile .bp-profile-field .radio legend { 203 #your-profile .bp-profile-field legend { 191 204 float: right; /* Firefox will not apply display: inline-block to legends */ 192 205 font-size: 14px; 193 206 font-weight: 600; 194 207 line-height: 1.4; 208 margin-bottom: 1em; 195 209 text-align: right; 196 210 vertical-align: middle; 197 211 width: 192px; 198 }199 200 #your-profile .bp-profile-field .radio legend,201 #your-profile .bp-profile-field .checkbox legend {202 margin-bottom: 20px;203 212 } 204 213 -
trunk/src/bp-members/admin/css/admin.css
r11587 r11620 118 118 } 119 119 120 .bp-profile-field > label { /* label takes on left side 200px */ 121 display: inline-block; 122 font-weight: 600; 123 text-align: left; 124 vertical-align: middle; 125 width: 200px; 126 } 127 128 .field_type_textarea > label, 129 .field_type_multiselectbox > label, 130 .field_type_radio .radio > label, 131 .field_type_checkbox .checkbox > label { /* these fields are usually pretty tall, so align the label for better consistency */ 120 .field_type_textarea legend, 121 .field_type_multiselectbox legend, 122 .field_type_radio .radio legend, 123 .field_type_checkbox .checkbox legend { /* these fields are usually pretty tall, so align the label for better consistency */ 132 124 vertical-align: top; 133 125 } … … 138 130 } 139 131 132 .bp-profile-field .wp-editor-wrap { 133 margin-left: 200px; 134 } 135 136 .field_type_checkbox .description, 137 .field_type_datebox .description, 138 .field_type_radio .description { 139 margin-top: 0; 140 } 141 140 142 .clear-value { /* 'clear value' option also sits in the right side column */ 141 143 display: block; … … 144 146 } 145 147 146 .field_type_checkbox .checkbox > label + label { /* force checkboxes to new lines, in the right side column */ 147 display: block; 148 /* force checkboxes to new lines, in the right side column */ 149 .field_type_checkbox label, 150 .field_type_radio label { 151 display: block; 152 margin-bottom: 1em; 148 153 margin-left: 200px; 149 154 width: auto; 155 } 156 157 .field_type_datebox select:nth-of-type(1) { 158 margin-left: 200px; 150 159 } 151 160 … … 181 190 } 182 191 192 .field-visibility-settings label { 193 clear: left; 194 display: block; 195 margin-bottom: 1em; 196 } 197 183 198 #normal-sortables .field-visibility-settings legend { /* id required for css selector weight */ 184 199 font-size: 14px; … … 186 201 } 187 202 188 #your-profile .bp-profile-field .checkbox legend, 189 #your-profile .bp-profile-field .datebox legend, 190 #your-profile .bp-profile-field .radio legend { 203 #your-profile .bp-profile-field legend { 191 204 float: left; /* Firefox will not apply display: inline-block to legends */ 192 205 font-size: 14px; 193 206 font-weight: 600; 194 207 line-height: 1.4; 208 margin-bottom: 1em; 195 209 text-align: left; 196 210 vertical-align: middle; 197 211 width: 192px; 198 }199 200 #your-profile .bp-profile-field .radio legend,201 #your-profile .bp-profile-field .checkbox legend {202 margin-bottom: 20px;203 212 } 204 213 -
trunk/src/bp-members/admin/js/admin.js
r10149 r11620 7 7 event.preventDefault(); 8 8 9 $( this ). parent().hide()9 $( this ).attr( 'aria-expanded', 'true' ).parent().hide() 10 10 .siblings( '.field-visibility-settings' ).show(); 11 11 } ); … … 13 13 $( '.field-visibility-settings-close' ).on( 'click', function( event ) { 14 14 event.preventDefault(); 15 16 $( '.visibility-toggle-link' ).attr( 'aria-expanded', 'false' ); 15 17 16 18 var settings_div = $(this).parent(), -
trunk/src/bp-xprofile/classes/class-bp-xprofile-user-admin.php
r11447 r11620 358 358 359 359 <div<?php bp_field_css_class( 'bp-profile-field' ); ?>> 360 <fieldset> 360 361 361 362 <?php … … 363 364 $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); 364 365 $field_type->edit_field_html( array( 'user_id' => $r['user_id'] ) ); 365 366 if ( bp_get_the_profile_field_description() ) : ?>367 368 <p class="description"><?php bp_the_profile_field_description(); ?></p>369 370 <?php endif;371 366 372 367 /** … … 379 374 $can_change_visibility = bp_current_user_can( 'bp_xprofile_change_field_visibility' ); ?> 380 375 381 <p class="field-visibility-settings-<?php echo $can_change_visibility ? 'toggle' : 'notoggle'; ?>" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id(); ?>"> 376 <p class="field-visibility-settings-<?php echo $can_change_visibility ? 'toggle' : 'notoggle'; ?>" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id(); ?>"><span id="<?php bp_the_profile_field_input_name(); ?>-2"> 382 377 383 378 <?php … … 387 382 ); 388 383 ?> 384 </span> 389 385 390 386 <?php if ( $can_change_visibility ) : ?> 391 387 392 <button type="button" class="button visibility-toggle-link" ><?php esc_html_e( 'Change', 'buddypress' ); ?></button>388 <button type="button" class="button visibility-toggle-link" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-2" aria-expanded="false"><?php esc_html_e( 'Change', 'buddypress' ); ?></button> 393 389 394 390 <?php endif; ?> … … 418 414 do_action( 'bp_custom_profile_edit_fields' ); ?> 419 415 416 </fieldset> 420 417 </div> 421 418
Note: See TracChangeset
for help on using the changeset viewer.