WordPress.org

Make WordPress Core

Changeset 20705


Ignore:
Timestamp:
05/02/2012 09:33:43 PM (6 years ago)
Author:
ryan
Message:

Styling and RTL style fixes for user/site autocomplete. Props ocean90, helenyhou. fixes #20584

Location:
trunk/wp-admin
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/colors-classic.dev.css

    r20702 r20705  
    4949}
    5050
     51textarea:focus,
     52input[type="text"]:focus,
     53input[type="password"]:focus,
     54input[type="file"]:focus,
     55input[type="button"]:focus,
     56input[type="submit"]:focus,
     57input[type="reset"]:focus,
     58input[type="email"]:focus,
     59input[type="number"]:focus,
     60input[type="search"]:focus,
     61input[type="tel"]:focus,
     62input[type="url"]:focus,
     63select:focus {
     64    border-color: #d1e5ee;
     65}
     66
    5167kbd,
    5268code {
     
    7793body,
    7894#wpbody,
    79 .form-table .pre {
     95.form-table .pre,
     96.ui-autocomplete li a {
    8097    color: #333;
    8198}
     
    314331td.help {
    315332    color: #9a9a9a;
     333}
     334
     335.ui-autocomplete {
     336    background-color: #eff8ff;
     337    border-color: #d1e5ee;
     338}
     339
     340.ui-autocomplete li a.ui-state-hover {
     341    background-color: #def1ff;
    316342}
    317343
  • trunk/wp-admin/css/colors-fresh.dev.css

    r20659 r20705  
    8888body,
    8989#wpbody,
    90 .form-table .pre {
     90.form-table .pre,
     91.ui-autocomplete li a {
    9192    color: #333;
    9293}
     
    321322td.help {
    322323    color: #9a9a9a;
     324}
     325
     326.ui-autocomplete {
     327    background-color: #efefef;
     328    border-color: #bbb;
     329}
     330
     331.ui-autocomplete li a.ui-state-hover {
     332    background-color: #ddd;
    323333}
    324334
  • trunk/wp-admin/css/wp-admin-rtl.dev.css

    r20689 r20705  
    116116input[type=password] {
    117117    direction: ltr;
     118}
     119
     120input[type="text"].ui-autocomplete-loading {
     121    background: transparent url('../images/loading.gif') no-repeat left center;
     122}
     123
     124ul#add-to-blog-users {
     125    margin: 0 14px 0 0;
     126}
     127
     128.ui-autocomplete li {
     129    text-align: right;
    118130}
    119131
  • trunk/wp-admin/css/wp-admin.dev.css

    r20692 r20705  
    875875}
    876876
     877.ui-autocomplete-input.open {
     878    border-bottom-right-radius: 0;
     879    border-bottom-left-radius: 0;
     880}
     881
    877882.ui-autocomplete {
    878883    padding: 0;
     
    881886    position: absolute;
    882887    z-index: 10000;
     888    border-bottom-right-radius: 3px;
     889    border-bottom-left-radius: 3px;
    883890    border-width: 1px;
    884891    border-style: solid;
    885 
    886     background-color: #ececec;
    887     border-color: gray;
     892    border-top: none;
     893
     894    background-color: #efefef;
     895    border-color: #bbb;
    888896}
    889897
    890898.ui-autocomplete li {
    891     padding: 2px 5px;
     899    margin-bottom: 0;
    892900    white-space: nowrap;
    893901    text-align: left;
     
    898906    display: block;
    899907    height: 100%;
    900     padding: 2px 5px;
     908    padding: 4px 10px;
    901909    color: #333;
    902910}
    903911
    904912.ui-autocomplete li a.ui-state-hover {
    905     background-color: #f0f0b8;
     913    background-color: #ddd;
    906914    cursor: pointer;
    907915}
  • trunk/wp-admin/js/site-search.dev.js

    r20279 r20705  
    33        source:   ajaxurl + '?action=autocomplete-site',
    44        delay:    500,
    5         minLength: 2
     5        minLength: 2,
     6        open: function(e, ui) { $(this).addClass('open'); },
     7        close: function(e, ui) { $(this).removeClass('open'); }
    68    });
    79});
  • trunk/wp-admin/js/user-search.dev.js

    r20279 r20705  
    55        source:   ajaxurl + '?action=autocomplete-user&autocomplete_type=add' + id,
    66        delay:    500,
    7         minLength: 2
     7        minLength: 2,
     8        open: function(e, ui) { $(this).addClass('open'); },
     9        close: function(e, ui) { $(this).removeClass('open'); }
    810    });
    911
     
    1113        source:   ajaxurl + '?action=autocomplete-user&autocomplete_type=search' + id,
    1214        delay:    500,
    13         minLength: 2
     15        minLength: 2,
     16        open: function(e, ui) { $(this).addClass('open'); },
     17        close: function(e, ui) { $(this).removeClass('open'); }
    1418    });
    1519
     
    1721        source:   ajaxurl + '?action=autocomplete-user&autocomplete_type=search-all' + id,
    1822        delay:    500,
    19         minLength: 2
     23        minLength: 2,
     24        open: function(e, ui) { $(this).addClass('open'); },
     25        close: function(e, ui) { $(this).removeClass('open'); }
    2026    });
    2127});
Note: See TracChangeset for help on using the changeset viewer.