From 13277ec959467d06a7860e05a161ab3cb1cd9929 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 17 Jul 2021 17:18:03 +0200 Subject: [PATCH] Add disabled button --- resources/css/buttons.css | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/resources/css/buttons.css b/resources/css/buttons.css index 59d4d3f1..3c1f48c6 100644 --- a/resources/css/buttons.css +++ b/resources/css/buttons.css @@ -9,31 +9,31 @@ } &.btn-primary { @apply bg-primary-700 text-primary-300; - &:hover { + &:not(.disabled):hover { @apply bg-primary-500 text-primary-100; } } &.btn-primary-light { @apply bg-primary-600 text-primary-200; - &:hover { + &:not(.disabled):hover { @apply bg-primary-500 text-primary-100; } } &.btn-warning { @apply bg-yellow-700; - &:hover { + &:not(.disabled):hover { @apply bg-yellow-500; } } &.btn-info { @apply bg-blue-700; - &:hover { + &:not(.disabled):hover { @apply bg-blue-500; } } &.btn-danger { @apply bg-red-700; - &:hover { + &:not(.disabled):hover { @apply bg-red-500; } } @@ -48,5 +48,9 @@ @apply w-3 h-3 flex-none; } } + + &.disabled { + @apply opacity-50; + } }