milligram/src/_Button.sass

76 lines
1.4 KiB
Sass
Raw Normal View History

2015-12-26 01:53:09 +00:00
// Button
//
.button,
button,
2015-12-27 17:43:13 +00:00
input[type='button'],
2015-12-26 01:53:09 +00:00
input[type='reset'],
2015-12-27 17:43:13 +00:00
input[type='submit']
2015-12-26 01:53:09 +00:00
background-color: $color-primary
border: .1rem solid $color-primary
border-radius: .4rem
color: $color-initial
cursor: pointer
display: inline-block
font-size: 1.1rem
font-weight: 700
height: 3.8rem
letter-spacing: .1rem
line-height: 3.8rem
padding: 0 3.0rem
text-align: center
text-decoration: none
text-transform: uppercase
white-space: nowrap
2016-08-07 18:48:40 +00:00
&:focus,
&:hover
2015-12-26 01:53:09 +00:00
background-color: $color-secondary
border-color: $color-secondary
color: $color-initial
outline: 0
2016-01-03 19:20:28 +00:00
&[disabled]
cursor: default
2016-08-01 06:04:03 +00:00
opacity: .5
2016-01-03 19:20:28 +00:00
2016-08-07 18:48:40 +00:00
&:focus,
&:hover
2016-01-03 19:20:28 +00:00
background-color: $color-primary
border-color: $color-primary
2015-12-26 01:53:09 +00:00
&.button-outline
background-color: transparent
2016-08-01 06:04:03 +00:00
color: $color-primary
2015-12-26 01:53:09 +00:00
2016-08-07 18:48:40 +00:00
&:focus,
&:hover
2015-12-26 01:53:09 +00:00
background-color: transparent
border-color: $color-secondary
2016-08-01 06:04:03 +00:00
color: $color-secondary
2015-12-26 01:53:09 +00:00
2016-01-07 00:53:48 +00:00
&[disabled]
2016-01-31 06:28:58 +00:00
2016-08-07 18:48:40 +00:00
&:focus,
&:hover
2016-01-03 19:20:28 +00:00
border-color: inherit
2016-08-01 06:04:03 +00:00
color: $color-primary
2016-01-03 19:20:28 +00:00
2015-12-26 01:53:09 +00:00
&.button-clear
background-color: transparent
border-color: transparent
2016-08-01 06:04:03 +00:00
color: $color-primary
2015-12-26 01:53:09 +00:00
2016-08-07 18:48:40 +00:00
&:focus,
&:hover
2015-12-26 01:53:09 +00:00
background-color: transparent
border-color: transparent
2016-08-01 06:04:03 +00:00
color: $color-secondary
2016-01-03 19:20:28 +00:00
&[disabled]
2016-01-31 06:28:58 +00:00
2016-08-07 18:48:40 +00:00
&:focus,
&:hover
2016-01-03 19:20:28 +00:00
color: $color-primary