mirror of
https://github.com/milligram/milligram.git
synced 2024-11-13 16:54:22 +00:00
Add button disabled state
This commit is contained in:
parent
f749aa8a15
commit
2177135049
@ -32,6 +32,16 @@ input[type='submit']
|
|||||||
color: $color-initial
|
color: $color-initial
|
||||||
outline: 0
|
outline: 0
|
||||||
|
|
||||||
|
&.disabled,
|
||||||
|
&[disabled]
|
||||||
|
opacity: .5
|
||||||
|
cursor: default
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus
|
||||||
|
background-color: $color-primary
|
||||||
|
border-color: $color-primary
|
||||||
|
|
||||||
&.button-outline
|
&.button-outline
|
||||||
color: $color-primary
|
color: $color-primary
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
@ -42,6 +52,13 @@ input[type='submit']
|
|||||||
background-color: transparent
|
background-color: transparent
|
||||||
border-color: $color-secondary
|
border-color: $color-secondary
|
||||||
|
|
||||||
|
&[disabled],
|
||||||
|
&.disabled
|
||||||
|
&:hover,
|
||||||
|
&:focus
|
||||||
|
color: $color-primary
|
||||||
|
border-color: inherit
|
||||||
|
|
||||||
&.button-clear
|
&.button-clear
|
||||||
color: $color-primary
|
color: $color-primary
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
@ -52,3 +69,9 @@ input[type='submit']
|
|||||||
color: $color-secondary
|
color: $color-secondary
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
border-color: transparent
|
border-color: transparent
|
||||||
|
|
||||||
|
&.disabled,
|
||||||
|
&[disabled]
|
||||||
|
&:hover,
|
||||||
|
&:focus
|
||||||
|
color: $color-primary
|
||||||
|
Loading…
Reference in New Issue
Block a user