From 8696882549be49ba59157cc3c138bc7ad64fa50c Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Mon, 22 Feb 2021 10:38:46 +0100 Subject: [PATCH] Refactor payment auth button to fit into table row This looks a bit more cohesive with the rest of the row cells while still standing out from the rest. --- app/assets/stylesheets/darkswarm/ui.scss | 7 +++++++ app/views/spree/users/_transactions.html.haml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/darkswarm/ui.scss b/app/assets/stylesheets/darkswarm/ui.scss index a9a43b0b5f..c13c51f024 100644 --- a/app/assets/stylesheets/darkswarm/ui.scss +++ b/app/assets/stylesheets/darkswarm/ui.scss @@ -61,6 +61,13 @@ @include border-radius(0.5em); outline: none; + + &.x-small { + padding: 0.5rem 0.75rem; + font-size: $text-xs; + font-weight: 600; + margin: 0; + } } .button.primary, button.primary { diff --git a/app/views/spree/users/_transactions.html.haml b/app/views/spree/users/_transactions.html.haml index 2acce38612..0648973eec 100644 --- a/app/views/spree/users/_transactions.html.haml +++ b/app/views/spree/users/_transactions.html.haml @@ -18,7 +18,7 @@ = payment.updated_at.strftime("%Y-%m-%d") %td.order3 %a{ href: "#{payment.cvv_response_message}" } - %button.bright + %button.x-small Authorize %td.order5 = payment.display_amount