Skip to:
Content

BuddyPress.org

Ticket #5513: 5513-css-classes.patch

File 5513-css-classes.patch, 1.6 KB (added by hnla, 10 years ago)

Add screen reader class & style form elements with attr 'disabled'

  • src/bp-templates/bp-legacy/css/buddypress.css

     
    728728#buddypress .standard-form #profile-details-section {
    729729        float: right;
    730730}
    731 #buddypress .standard-form #blog-details-section {
    732         clear: left;
    733 }
    734 #buddypress label[for="select-all-notifications"] {
    735         display: none;
    736 }
     731#buddypress .standard-form #blog-details-section,
    737732#buddypress #notifications-bulk-management {
    738733        clear: left;
    739734}
     735body.no-js #buddypress #notifications-bulk-management #select-all-notifications,
     736body.no-js #buddypress label[for="message-type-select"],
     737body.no-js #buddypress #message-type-select,
     738body.no-js #buddypress #delete_inbox_messages,
     739body.no-js #buddypress #delete_sentbox_messages,
    740740body.no-js #buddypress #notifications-bulk-management #select-all-notifications {
    741741        display: none;
    742742}
     
    827827#buddypress .wp-editor-wrap input[type=reset] {
    828828        padding: 0 10px 1px;
    829829}
     830
     831/* Form classes & generic attr styling */
     832
     833#buddypress form *[disabled="disabled"]{
     834        cursor: not-allowed;
     835        opacity: .4;
     836}
     837#buddypress form input[type=submit][disabled="disabled"]:focus,
     838#buddypress form input[type=submit][disabled="disabled"]:hover {
     839        background: inherit;
     840        color: #777;
     841}
     842.bp-screen-reader-text {
     843 clip: rect(1px, 1px, 1px, 1px);
     844 position: absolute;
     845}
     846
    830847/*--------------------------------------------------------------
    8318483.6 - Ajax Loading
    832849--------------------------------------------------------------*/