diff --git a/resources/css/app.css b/resources/css/app.css index 35ff9c3f7..b6729210a 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -1,4 +1,5 @@ @import 'components/vue-slider'; +@import 'components/add-to-cart'; @import './theme-variables.css'; @tailwind base; diff --git a/resources/css/components/add-to-cart.css b/resources/css/components/add-to-cart.css new file mode 100644 index 000000000..a93271c59 --- /dev/null +++ b/resources/css/components/add-to-cart.css @@ -0,0 +1,22 @@ +@keyframes is-loading { + 0% { + left: 0; + width: 0; + } + 50% { + left: 0; + width: 100%; + } + to { + left: 100%; + width: 0; + } +} + +.button-loading { + @apply overflow-hidden !bg-enhanced/10 hover:!bg-enhanced/10 !text-white !cursor-progress before:absolute before:block before:h-1 before:bg-enhanced before:top-0 before:left-0 before:w-16; +} + +.button-loading:before { + animation: is-loading 1s infinite; +} \ No newline at end of file diff --git a/resources/css/theme-variables.css b/resources/css/theme-variables.css index 1a80dceac..4b7c91630 100644 --- a/resources/css/theme-variables.css +++ b/resources/css/theme-variables.css @@ -7,4 +7,6 @@ --inactive: 100 116 139; --highlight: 241 245 249; --border: 231 235 239; + --disabled: 231 235 239; + --enhanced: 54 180 34; } diff --git a/resources/views/cart/coupon/add.blade.php b/resources/views/cart/coupon/add.blade.php index 61832348f..c2dcafcb0 100644 --- a/resources/views/cart/coupon/add.blade.php +++ b/resources/views/cart/coupon/add.blade.php @@ -11,14 +11,15 @@
diff --git a/resources/views/cart/sidebar.blade.php b/resources/views/cart/sidebar.blade.php index 54b386942..306eb1add 100644 --- a/resources/views/cart/sidebar.blade.php +++ b/resources/views/cart/sidebar.blade.php @@ -28,6 +28,6 @@ -