From 18b1504935377ba6d8f2604d2474643ed85c59cf Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Thu, 7 Jan 2021 10:30:48 +1100 Subject: [PATCH] Emphasize disabled Add button when out of stock Using the same grey as was used in the bulk modal already. This makes it more consistent and hopefully more clear. --- app/assets/stylesheets/darkswarm/_shop-inputs.scss | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/darkswarm/_shop-inputs.scss b/app/assets/stylesheets/darkswarm/_shop-inputs.scss index 7de6a9355a..591cc320b9 100644 --- a/app/assets/stylesheets/darkswarm/_shop-inputs.scss +++ b/app/assets/stylesheets/darkswarm/_shop-inputs.scss @@ -29,9 +29,12 @@ button.add-variant, button.variant-quantity { &:hover { background-color: $orange-600; } + &[disabled] { + background-color: $grey-400; + &:hover, &:focus { - background-color: $orange-500; + background-color: $grey-400; } } &:nth-of-type(1) { @@ -84,14 +87,6 @@ button.bulk-buy.variant-quantity { button.bulk-buy-add.variant-quantity { width: 2.5rem; - - &[disabled] { - background-color: $grey-400; - - &:hover, &:focus { - background-color: $grey-400; - } - } } span.bulk-buy.variant-quantity {