From 303bd29eb3bd097b5723bbf6bf7f24bf9510e578 Mon Sep 17 00:00:00 2001 From: Carson Shold Date: Mon, 7 Jul 2014 09:21:16 -0400 Subject: [PATCH 1/6] Show quantity selector borders on small screens --- assets/ajaxify.scss.liquid | 29 ++++++++++++++++++++--------- layout/theme.liquid | 2 +- 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/assets/ajaxify.scss.liquid b/assets/ajaxify.scss.liquid index b947b0db1..fbf6a3b0e 100755 --- a/assets/ajaxify.scss.liquid +++ b/assets/ajaxify.scss.liquid @@ -433,15 +433,7 @@ form[action^="/cart/add"] { ==============================================================================*/ .ajaxifyCart--qty { @extend .js-qty; - margin-bottom: 0; - - input[type="text"] { - @include transition(all 0.1s ease-out); - - .supports-no-touch & { - border: 1px solid rgba(0,0,0,0); - } - } + margin: 0; .ajaxifyCart--is-loading & { opacity: 0.5; @@ -449,6 +441,14 @@ form[action^="/cart/add"] { } } +.ajaxifyCart--num { + @include transition(all 0.1s ease-out); + + .supports-no-touch & { + border: 1px solid rgba(0,0,0,0); + } +} + .ajaxifyCart--qty-adjuster { @extend .js--qty-adjuster; opacity: 0; @@ -650,6 +650,17 @@ form[action^="/cart/add"] { background-color: darken($modalBorderColor, 10%); } } + + // Small screen quantity appearance + @include at-query ($max, $medium) { + input[type="text"] { + border-color: $modalBorderColor; + } + + .ajaxifyCart--qty-adjuster { + opacity: 1; + } + } } /*============================================================================ diff --git a/layout/theme.liquid b/layout/theme.liquid index e6ada8c98..f52956029 100755 --- a/layout/theme.liquid +++ b/layout/theme.liquid @@ -178,7 +178,7 @@