Skip to content

Commit

Permalink
WooCommerce align coupon code input
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomollet committed Sep 29, 2017
1 parent fe97749 commit fbad565
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
19 changes: 19 additions & 0 deletions inc/plugins/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,3 +561,22 @@ function stormbringer_gridlist_toggle_button_output($output, $grid_view, $list_v
return $output;
}
add_filter( 'gridlist_toggle_button_output', 'stormbringer_gridlist_toggle_button_output',10, 3 );



/**
* WooCOmmerce product list item before
*/
function stormbringer_woocommerce_before_shop_loop_item(){
echo '<div class="product-loop-inner">';
}
add_action('woocommerce_before_shop_loop_item', 'stormbringer_woocommerce_before_shop_loop_item', -999);


/**
* WooCOmmerce product list item after
*/
function stormbringer_woocommerce_after_shop_loop_item(){
echo '</div>';
}
add_action('woocommerce_after_shop_loop_item', 'stormbringer_woocommerce_after_shop_loop_item', 999);
20 changes: 12 additions & 8 deletions scss/helpers/_woocommerce_checkout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ All pages
Checkout
*/

form.checkout_coupon {
p{
display: inline-block;
}
}

.woocommerce-checkout{

Expand Down Expand Up @@ -295,16 +300,10 @@ Cart
vertical-align: top;
}

#coupon_code{
display: inline-block;
width: auto;
}
}
.checkout_coupon #coupon_code{
display: inline-block;
width: auto;

}


.qty{
width: 60px;
@media (min-width: $screen-md-min) {
Expand All @@ -327,6 +326,11 @@ Cart

}

#coupon_code{
display: inline;
width: auto;
vertical-align: inherit;
}

/**
Account
Expand Down
2 changes: 1 addition & 1 deletion scss/helpers/_woocommerce_productlist.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Layout
position: relative;
@include make-sm-column(12);
@include make-md-column(4);
margin-bottom: ($line-height-computed / 2);
margin-bottom: $line-height-computed;

&.first{
clear: both;
Expand Down
1 change: 0 additions & 1 deletion scss/helpers/_woocommerce_productsingle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ table.woo-vou-recipient-fields{
}

div.product{

position: relative;
overflow: hidden;
@include make-row;
Expand Down

0 comments on commit fbad565

Please sign in to comment.