From 21771350499c1fd3d514d74381e7eda6db98ab2c Mon Sep 17 00:00:00 2001 From: fredericodietz Date: Sun, 3 Jan 2016 17:20:28 -0200 Subject: [PATCH 1/2] 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 From ed2d9fb875e8f770c054dabff449cd4a61ea4a35 Mon Sep 17 00:00:00 2001 From: fredericodietz Date: Wed, 6 Jan 2016 22:53:48 -0200 Subject: [PATCH 2/2] Fix class naming for code consistency --- src/_Button.sass | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_Button.sass b/src/_Button.sass index 28a539a..0108f1a 100644 --- a/src/_Button.sass +++ b/src/_Button.sass @@ -32,7 +32,7 @@ input[type='submit'] color: $color-initial outline: 0 - &.disabled, + &.button-disabled, &[disabled] opacity: .5 cursor: default @@ -52,8 +52,8 @@ input[type='submit'] background-color: transparent border-color: $color-secondary - &[disabled], - &.disabled + &.button-disabled, + &[disabled] &:hover, &:focus color: $color-primary @@ -70,7 +70,7 @@ input[type='submit'] background-color: transparent border-color: transparent - &.disabled, + &.button-disabled, &[disabled] &:hover, &:focus