Skip to content

Commit

Permalink
Merge pull request #513 from ebanx/bugfix/boleto-tp
Browse files Browse the repository at this point in the history
Fix CSS for Boleto Thankyou Page
  • Loading branch information
Cezar Luiz authored May 26, 2017
2 parents 5ebfd92 + 13f8dc6 commit b54c9e8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 27 deletions.
33 changes: 12 additions & 21 deletions woocommerce-gateway-ebanx/assets/css/paying-via-ebanx.css
Original file line number Diff line number Diff line change
Expand Up @@ -363,31 +363,21 @@ li[class*="ebanx"] .payment_box .ebanx-credit-card-label > .ebanx-credit-card-bi
margin: 20px 0;
}

.woocommerce .ebanx-button--group-two > a,
.woocommerce .ebanx-button--group-two > button,
.woocommerce .ebanx-button--group-two > .button {
width: 49%;
float: left;
}

.woocommerce .ebanx-button--group-two > a:not(:first-child),
.woocommerce .ebanx-button--group-two > button:not(:first-child),
.woocommerce .ebanx-button--group-two > .button:not(:first-child) {
float: right;
.button.banking-ticket__action {
width: calc(50% - 10px);
display: inline-block;
margin: 0;
}

.woocommerce .ebanx-button--group::before,
.woocommerce .ebanx-button--group::after {
content: " ";
display: table;
.button.banking-ticket__action:last-child {
margin-left: 20px;
}

.woocommerce .ebanx-button--group::after {clear: both;}

.woocommerce .ebanx-button--copy {
position: relative;
margin-bottom: 0 !important;

margin: 0 !important;
transition: all .3s;
}

Expand Down Expand Up @@ -465,14 +455,15 @@ li[class*="ebanx"] .payment_box .ebanx-credit-card-label > .ebanx-credit-card-bi
.banking-ticket__barcode::after {clear: both;}

.banking-ticket__barcode-code {
display: inline-block;
display: block;
letter-spacing: .32px;
vertical-align: middle;
text-align: center;
}

.banking-ticket__barcode-copy {
display: inline-block;
margin-left: 32px;
display: block;
text-align: center;
margin-top: 20px;
}

.ebanx-form-row .select2.select2-container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
<hr>
<div class="banking-ticket__actions">
<div class="ebanx-button--group ebanx-button--group-two">
<a href="<?=$url_pdf ?>" target="_blank" class="button banking-ticket__action">Guardar como PDF</a>
<a href="<?=$url_print ?>" target="_blank" class="button banking-ticket__action">Imprimir Baloto</a>
<a href="<?=$url_pdf ?>" target="_blank" class="button banking-ticket__action">Guardar como PDF</a><a href="<?=$url_print ?>" target="_blank" class="button banking-ticket__action">Imprimir Baloto</a>
</div>
</div>
<hr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@

<div class="banking-ticket__actions">
<div class="ebanx-button--group ebanx-button--group-two">
<a href="<?php echo $url_pdf ?>" target="_blank" class="button banking-ticket__action">Salvar em PDF</a>
<a href="<?php echo $url_print ?>" target="_blank" class="button banking-ticket__action">Imprimir boleto</a>
<a href="<?php echo $url_pdf ?>" target="_blank" class="button banking-ticket__action">Salvar em PDF</a><a href="<?php echo $url_print ?>" target="_blank" class="button banking-ticket__action">Imprimir boleto</a>
</div>
</div>

Expand Down
3 changes: 1 addition & 2 deletions woocommerce-gateway-ebanx/templates/oxxo/payment-on-hold.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
<hr>
<div class="banking-ticket__actions">
<div class="ebanx-button--group ebanx-button--group-two">
<a href="<?=$url_pdf ?>" target="_blank" class="button banking-ticket__action">Guardar como PDF</a>
<a href="<?=$url_print ?>" target="_blank" class="button banking-ticket__action">Imprimir OXXO</a>
<a href="<?=$url_pdf ?>" target="_blank" class="button banking-ticket__action">Guardar como PDF</a><a href="<?=$url_print ?>" target="_blank" class="button banking-ticket__action">Imprimir OXXO</a>
</div>
</div>
<hr>
Expand Down

0 comments on commit b54c9e8

Please sign in to comment.