From 21771350499c1fd3d514d74381e7eda6db98ab2c Mon Sep 17 00:00:00 2001 From: fredericodietz Date: Sun, 3 Jan 2016 17:20:28 -0200 Subject: [PATCH] Add button disabled state --- src/_Button.sass | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/_Button.sass b/src/_Button.sass index 49c9568..28a539a 100644 --- a/src/_Button.sass +++ b/src/_Button.sass @@ -32,6 +32,16 @@ input[type='submit'] color: $color-initial outline: 0 + &.disabled, + &[disabled] + opacity: .5 + cursor: default + + &:hover, + &:focus + background-color: $color-primary + border-color: $color-primary + &.button-outline color: $color-primary background-color: transparent @@ -42,6 +52,13 @@ input[type='submit'] background-color: transparent border-color: $color-secondary + &[disabled], + &.disabled + &:hover, + &:focus + color: $color-primary + border-color: inherit + &.button-clear color: $color-primary background-color: transparent @@ -52,3 +69,9 @@ input[type='submit'] color: $color-secondary background-color: transparent border-color: transparent + + &.disabled, + &[disabled] + &:hover, + &:focus + color: $color-primary