Adjust how the 'clear' link appears
This commit is contained in:
parent
034871a395
commit
d1d9ff1b59
File diff suppressed because one or more lines are too long
|
@ -383,10 +383,13 @@ p.demo_store {
|
|||
.variations {
|
||||
margin-bottom: 1em;
|
||||
border: 0;
|
||||
width: 100%;
|
||||
|
||||
td,
|
||||
th {
|
||||
border: 0;
|
||||
vertical-align: top;
|
||||
line-height: 2em;
|
||||
}
|
||||
|
||||
label {
|
||||
|
@ -394,17 +397,15 @@ p.demo_store {
|
|||
}
|
||||
|
||||
select {
|
||||
width: 100%;
|
||||
float: left;
|
||||
max-width: 100%;
|
||||
min-width: 75%;
|
||||
display: inline-block;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
td.label {
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
td {
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
.woocommerce-variation-description {
|
||||
|
@ -415,6 +416,7 @@ p.demo_store {
|
|||
|
||||
.reset_variations {
|
||||
visibility: hidden;
|
||||
font-size: 0.83em;
|
||||
}
|
||||
|
||||
.wc-no-matching-variations {
|
||||
|
|
|
@ -39,7 +39,7 @@ do_action( 'woocommerce_before_add_to_cart_form' ); ?>
|
|||
<?php
|
||||
$selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) : $product->get_variation_default_attribute( $attribute_name );
|
||||
wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected ) );
|
||||
echo end( $attribute_keys ) === $attribute_name ? '<a class="reset_variations" href="#" style="visibility: hidden;">' . __( 'Clear selection', 'woocommerce' ) . '</a>' : '';
|
||||
echo end( $attribute_keys ) === $attribute_name ? '<a class="reset_variations" href="#">' . __( 'Clear', 'woocommerce' ) . '</a>' : '';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue