Making WordPress.org

Changeset 3298


Ignore:
Timestamp:
06/03/2016 07:11:43 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Budgets: Centralize list table styles so they can be reused.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/css/wordcamp-budgets-dashboard.css

    r2773 r3298  
    1212        border-right:  1px solid rgba( 0, 0, 0, 0.1 );
    1313        border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
     14}
     15
     16#wcp-list-table .search-box {
     17        margin-top: 12px;
     18}
     19
     20#wcp-list-table .manage-column.column-payment {
     21        width: 30%;
     22}
     23
     24#wcp-list-table .manage-column {
     25        width: 10%;
    1426}
    1527
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-dashboard.php

    r2770 r3298  
    259259                ?>
    260260
    261                 <?php self::$list_table->print_inline_css(); ?>
    262 
    263261                <div id="wcp-list-table">
    264262                        <?php self::$list_table->prepare_items(); ?>
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/payment-requests-list-table.php

    r2642 r3298  
    3737                        'method' => 'method',
    3838                );
    39         }
    40 
    41         /**
    42          * Outputs inline CSS to be used with the list table.
    43          */
    44         public function print_inline_css() {
    45                 ?>
    46                 <style>
    47                 #wcp-list-table .search-box {
    48                         margin-top: 12px;
    49                 }
    50 
    51                 #wcp-list-table .manage-column.column-payment {
    52                         width: 30%;
    53                 }
    54 
    55                 #wcp-list-table .manage-column {
    56                         width: 10%;
    57                 }
    58                 </style>
    59                 <?php
    6039        }
    6140
Note: See TracChangeset for help on using the changeset viewer.