Skip to:
Content

BuddyPress.org

Changeset 7595


Ignore:
Timestamp:
11/21/2013 12:51:13 AM (11 years ago)
Author:
boonebgorges
Message:

Use more specific selectors in bp-legacy table CSS

The previous table styles were too general, which caused styles to leak
through inappropriately to non-BP tables. This was a particular problem for
the table-based syntax of rich text editors embedded via wp_editor().

Fixes #5167

Props netweblogic, hnla

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/css/buddypress.css

    r7450 r7595  
    766766}
    767767
     768// Overrides for embedded WP editors
     769#buddypress .wp-editor-wrap a.button,
     770#buddypress .wp-editor-wrap button,
     771#buddypress .wp-editor-wrap input[type=submit],
     772#buddypress .wp-editor-wrap input[type=button],
     773#buddypress .wp-editor-wrap input[type=reset] {
     774    padding: 0 10px 1px;
     775}
    768776/*--------------------------------------------------------------
    7697773.6 - Ajax Loading
     
    880888    padding: 1px 0 0 0;
    881889}
    882 #buddypress table {
     890#buddypress table.notifications,
     891#buddypress table.notifications-settings,
     892#buddypress table.profile-fields,
     893#buddypress table.wp-profile-fields,
     894#buddypress table.messages-notices,
     895#buddypress table.forum {
    883896    width: 100%;
    884897}
    885 #buddypress table thead tr {
     898#buddypress table.notifications thead tr,
     899#buddypress table.notifications-settings thead tr,
     900#buddypress table.profile-fields thead tr,
     901#buddypress table.wp-profile-fields thead tr,
     902#buddypress table.messages-notices thead tr,
     903#buddypress table.forum thead tr {
    886904    background: #eaeaea;
    887905}
     
    903921    margin-top: 0;
    904922}
    905 #buddypress table tr td,
    906 #buddypress table tr th {
     923#buddypress table.notifications tr td,
     924#buddypress table.notifications-settings tr td,
     925#buddypress table.profile-fields tr td,
     926#buddypress table.wp-profile-fields tr td,
     927#buddypress table.messages-notices tr td,
     928#buddypress table.forum tr td,
     929#buddypress table.notifications tr th,
     930#buddypress table.notifications-settings tr th,
     931#buddypress table.profile-fields tr th,
     932#buddypress table.wp-profile-fields tr th,
     933#buddypress table.messages-notices tr th,
     934#buddypress table.forum tr th {
    907935    padding: 8px;
    908936    vertical-align: middle;
    909937}
    910 #buddypress table tr td.label {
     938#buddypress table.notifications tr td.label,
     939#buddypress table.notifications-settings tr td.label,
     940#buddypress table.profile-fields tr td.label,
     941#buddypress table.wp-profile-fields tr td.label,
     942#buddypress table.messages-notices tr td.label,
     943#buddypress table.forum tr td.label {
    911944    border-right: 1px solid #eaeaea;
    912945    font-weight: bold;
     
    924957    text-align: center;
    925958}
    926 #buddypress table tr.alt td {
     959#buddypress table.notifications tr.alt td,
     960#buddypress table.notifications-settings tr.alt td,
     961#buddypress table.profile-fields tr.alt td,
     962#buddypress table.wp-profile-fields tr.alt td,
     963#buddypress table.messages-notices tr.alt td,
     964#buddypress table.forum tr.alt td {
    927965    background: #f5f5f5;
    928966}
Note: See TracChangeset for help on using the changeset viewer.