commit 082879bc8f2fdade70bd3594a86a1a8f6a6e3331 Author: Joel Pittet Date: Sun Feb 8 23:22:03 2015 -0800 data attribute diff --git a/css/dc_ajax_add_cart.css b/css/dc_ajax_add_cart.css index d2c8502..d95ad1e 100644 --- a/css/dc_ajax_add_cart.css +++ b/css/dc_ajax_add_cart.css @@ -17,10 +17,12 @@ padding: 20px; color: #7f7f7f; border: 2px solid #ccc; + border-radius: 20px; background-color: #fff; + box-shadow: 0 1px 5px #333; } -a.add-to-cart-close { +.add-to-cart-close { float: right; width: 26px; height: 26px; @@ -52,6 +54,8 @@ a.add-to-cart-close { .option-button.continue { background-color: #969696; + font-weight: bold; + color: #fff; } .option-button.checkout a { @@ -59,11 +63,6 @@ a.add-to-cart-close { color: #626262; } -.option-button.continue span { - font-weight: bold; - color: #fff; -} - .new-item-details { float: left; margin-top: 20px; diff --git a/js/dc_ajax_add_cart.js b/js/dc_ajax_add_cart.js index a2b7919..eaf2566 100644 --- a/js/dc_ajax_add_cart.js +++ b/js/dc_ajax_add_cart.js @@ -1,7 +1,7 @@ (function ($, Drupal, window, document, undefined) { Drupal.behaviors.dcAjaxAddCart = { attach: function (context, settings) { - $('body').delegate('.add-to-cart-close', 'click', function() { + $('body').delegate('[data-dismiss="add-cart-message"]', 'click', function() { $('#add-to-cart-overlay').fadeOut('fast'); $('.add-cart-message-wrapper').css('display', 'none'); }); diff --git a/templates/dc-ajax-add-to-cart-message.tpl.php b/templates/dc-ajax-add-to-cart-message.tpl.php index ad95a7b..e549bbd 100644 --- a/templates/dc-ajax-add-to-cart-message.tpl.php +++ b/templates/dc-ajax-add-to-cart-message.tpl.php @@ -46,7 +46,7 @@
- + @@ -60,10 +60,8 @@
-
- - - +
+