Skip to content

Commit

Permalink
Use wp-admin classnames and inherit core CSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 committed Aug 22, 2024
1 parent defa6b7 commit 891972a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ public static function user_two_factor_options( $user ) {
?>
<h3><?php esc_html_e( 'Two-Factor Options', 'two-factor' ); ?></h3>
<input type="hidden" name="<?php echo esc_attr( self::ENABLED_PROVIDERS_USER_META_KEY ); ?>[]" value="<?php /* Dummy input so $_POST value is passed when no providers are enabled. */ ?>" />
<table class="two-factor-methods-table">
<table class="wp-list-table widefat fixed striped table-view-list two-factor-methods-table">
<thead>
<tr>
<th class="col-enabled" scope="col"><?php esc_html_e( 'Enabled', 'two-factor' ); ?></th>
Expand Down
21 changes: 0 additions & 21 deletions user-edit.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@

.two-factor-methods-table {
background-color: #fff;
border: 1px solid #e5e5e5;
border-spacing: 0;
width: 100%;
}

.two-factor-methods-table thead,
.two-factor-methods-table tfoot {
background: #fff;
}

.two-factor-methods-table thead th {
padding: 0.5em;
}

.two-factor-methods-table .col-primary,
.two-factor-methods-table .col-enabled {
width: 5%;
Expand All @@ -33,10 +16,6 @@
vertical-align: top;
}

.two-factor-methods-table tbody tr:nth-child(odd) {
background-color: #f9f9f9;
}

.two-factor-methods-table .two-factor-method-label {
display: block;
font-weight: 700;
Expand Down

0 comments on commit 891972a

Please sign in to comment.