fixed up styles for payment options component

This commit is contained in:
Jesse Grant
2013-01-14 16:30:17 -05:00
parent 010692479a
commit a0c7eb1dbd
3 changed files with 19 additions and 3 deletions

View File

@@ -22,6 +22,7 @@ Selfstarter =
# if they are using the optional payment options section on the checkout page, need to conditional fix the email
# field and button to the bottom of the page so it's displayed after selecting a radio button
if $('.payment_options').length > 0
onScroll = () ->
wrapper = $('.checkout_controls_wrapper')
if $(window).scrollTop() + $(window).height() < checkoutOffset
@@ -33,7 +34,10 @@ Selfstarter =
onScroll()
# the radio button selection should bring up the email field and button
$('.payment_radio').on "click", ->
$('.payment_options ol li').on "click", ->
$(".payment_radio").parents("ol>li").removeClass("checkout_option_selected")
$(this).addClass("checkout_option_selected")
$(this).children(".payment_radio").attr "checked", "checked"
onScroll()
$('.checkout_controls_wrapper').addClass "checkout_ready"
$ ->

View File

@@ -69,6 +69,16 @@
list-style: none;
margin: -10px -20px;
word-wrap: break-word;
li:hover
{
background-color: #cbe6c0;
cursor: hand;
cursor: pointer;
}
li.checkout_option_selected
{
@extend li:hover;
}
li
{
border-bottom: 1px solid #AAF58C;
@@ -117,6 +127,7 @@
padding: 0;
border: 0;
font: inherit;
font-size: 12px;
vertical-align: baseline;
span
@@ -141,7 +152,8 @@
}
div.description
{
margin-top: -11px;
padding-left: 112px;
p.full
{