Skip to:
Content

BuddyPress.org

Changeset 8639


Ignore:
Timestamp:
07/17/2014 06:04:14 PM (12 years ago)
Author:
johnjamesjacoby
Message:

More visual updates to XProfile admin UI, to bring it more inline with other WordPress core sortable/droppable elements.

Location:
trunk/src/bp-xprofile/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/admin/css/admin-rtl.css

    r8636 r8639  
    1010    }
    1111    p.nofields {
    12         margin-top: 20px;
     12        margin: 10px 0;
    1313    }
    1414
     
    7171        background: #f5f5f5;
    7272        border-width: 1px 1px 0;
    73         margin: -20px -21px 20px -21px;
    74         clear: right;
     73        margin: -20px -21px 10px -21px;
     74        clear: left;
    7575        padding: 10px;
    7676        border: 1px solid #dedede;
     
    9999        background-color: #fff;
    100100        clear: left;
    101         padding: 20px;
     101        padding: 20px 20px 10px 20px;
    102102        border-left: 1px solid #ccc;
    103103        border-right: 1px solid #ccc;
     
    107107        position: relative;
    108108        cursor: default !important;
    109         background: inherit;
    110109        }
    111110        .tab-wrapper fieldset legend {
     
    118117        position: relative;
    119118        border: 1px solid #ddd;
    120         margin: 10px 0 0 0;
     119        margin: 10px 0;
    121120        cursor: move !important;
    122         background: #f5f5f5;
     121        background: #fafafa;
     122        padding: 10px 0 0 ;
    123123    }
    124124    .tab-wrapper fieldset fieldset legend {
    125         position: absolute !important;
    126         top: 0;
    127         right: 0;
    128         width: 80%;
    129         padding: 30px;
    130     }
    131     .tab-wrapper fieldset fieldset legend span {
    132125        position: absolute;
    133         top: 6px;
     126        top: 10px;
    134127        right: 10px;
    135         font-weight: bold;
    136         width: 100%;
     128        padding: 0;
    137129    }
    138130        .field-group fieldset:hover {
    139             background-color: #fafafa;
    140             border-color: #ccc;
     131            border-color: #999;
    141132        }
    142133        fieldset div.field-wrapper {
    143             padding: 40px 10px 10px;
     134            padding: 25px 10px 10px;
    144135        }
    145136    fieldset.radio div div label,
     
    154145        float: none;
    155146        border-top: 1px solid #ddd;
    156         margin: 20px 0 0;
     147        margin: 10px 0 0;
    157148        padding-top: 10px;
    158149    }
     
    167158    .field-group fieldset.ui-sortable-placeholder {
    168159        border: 1px dashed #999;
    169         background-color: #fafafa;
     160        background-color: #fff;
    170161        visibility: visible !important;
    171162    }
  • trunk/src/bp-xprofile/admin/css/admin.css

    r8636 r8639  
    1010    }
    1111    p.nofields {
    12         margin-top: 20px;
     12        margin: 10px 0;
    1313    }
    1414
     
    9999        background-color: #fff;
    100100        clear: left;
    101         padding: 20px;
     101        padding: 20px 20px 10px 20px;
    102102        border-left: 1px solid #ccc;
    103103        border-right: 1px solid #ccc;
     
    107107        position: relative;
    108108        cursor: default !important;
    109         background: inherit;
    110109        }
    111110        .tab-wrapper fieldset legend {
     
    118117        position: relative;
    119118        border: 1px solid #ddd;
    120         margin: 10px 0 0 0;
     119        margin: 10px 0;
    121120        cursor: move !important;
    122         background: #f5f5f5;
     121        background: #fafafa;
     122        padding: 10px 0 0 ;
    123123    }
    124124    .tab-wrapper fieldset fieldset legend {
    125         position: absolute !important;
    126         top: 0;
    127         left: 0;
    128         width: 80%;
    129         padding: 30px;
    130     }
    131     .tab-wrapper fieldset fieldset legend span {
    132125        position: absolute;
    133         top: 6px;
     126        top: 10px;
    134127        left: 10px;
    135         font-weight: bold;
    136         width: 100%;
     128        padding: 0;
    137129    }
    138130        .field-group fieldset:hover {
    139             background-color: #fafafa;
    140             border-color: #ccc;
     131            border-color: #999;
    141132        }
    142133        fieldset div.field-wrapper {
    143             padding: 40px 10px 10px;
     134            padding: 25px 10px 10px;
    144135        }
    145136    fieldset.radio div div label,
     
    154145        float: none;
    155146        border-top: 1px solid #ddd;
    156         margin: 20px 0 0;
     147        margin: 10px 0 0;
    157148        padding-top: 10px;
    158149    }
     
    167158    .field-group fieldset.ui-sortable-placeholder {
    168159        border: 1px dashed #999;
    169         background-color: #fafafa;
     160        background-color: #fff;
    170161        visibility: visible !important;
    171162    }
  • trunk/src/bp-xprofile/admin/js/admin.js

    r8495 r8639  
    6565/**
    6666 * Hide all "options" sections, and show the options section for the forWhat type.
     67 *
     68 * @param {string} forWhat Value of the field to show options for
    6769 */
    6870function show_options( forWhat ) {
     
    147149        cursor: 'move',
    148150        axis: 'x',
    149         opacity: 0.6,
     151        opacity: 1,
    150152        items: 'li',
    151         tolerance: 'pointer',
     153        tolerance: 'intersect',
    152154
    153155        update: function() {
     
    165167    jQuery( 'fieldset.field-group' ).sortable({
    166168        cursor: 'move',
    167         opacity: 0.3,
     169        opacity: 1,
    168170        items: 'fieldset',
    169         tolerance: 'pointer',
     171        tolerance: 'ponter',
    170172
    171173        update: function() {
     
    206208            // When field is dropped on tab
    207209            drop: function( ev, ui ) {
    208                 var $item = jQuery(this),  // The tab
    209                     $list   = jQuery( $item.find( 'a' ).attr( 'href' ) ).find( '.connectedSortable' ); // The tab body
     210                var $item = jQuery(this), // The tab
     211                    $list = jQuery( $item.find( 'a' ).attr( 'href' ) ).find( '.connectedSortable' ); // The tab body
    210212
    211213                // Remove helper class
Note: See TracChangeset for help on using the changeset viewer.