2016-09-24 15:04:53 +00:00
|
|
|
$control-radius: $radius !default
|
|
|
|
$control-radius-small: $radius-small !default
|
|
|
|
|
2016-05-05 20:54:32 +00:00
|
|
|
=control
|
|
|
|
-moz-appearance: none
|
|
|
|
-webkit-appearance: none
|
|
|
|
align-items: center
|
2016-10-29 20:51:13 +00:00
|
|
|
border: none
|
2016-09-24 15:04:53 +00:00
|
|
|
border-radius: $control-radius
|
2016-10-29 17:53:30 +00:00
|
|
|
box-shadow: none
|
2016-05-05 20:54:32 +00:00
|
|
|
display: inline-flex
|
2016-10-30 10:41:53 +00:00
|
|
|
font-size: $size-normal
|
2017-03-12 14:13:08 +00:00
|
|
|
height: 2.25em
|
2016-05-07 12:31:31 +00:00
|
|
|
justify-content: flex-start
|
2017-03-13 12:05:02 +00:00
|
|
|
line-height: 1.25
|
|
|
|
padding-bottom: 0.5em
|
2017-03-12 14:13:08 +00:00
|
|
|
padding-left: 0.625em
|
|
|
|
padding-right: 0.625em
|
2017-03-13 12:05:02 +00:00
|
|
|
padding-top: 0.5em
|
2016-05-05 20:54:32 +00:00
|
|
|
position: relative
|
|
|
|
vertical-align: top
|
2016-10-29 20:51:13 +00:00
|
|
|
// States
|
2016-05-30 18:41:54 +00:00
|
|
|
&:focus,
|
2016-10-29 20:51:13 +00:00
|
|
|
&.is-focused,
|
|
|
|
&:active,
|
2016-05-30 18:41:54 +00:00
|
|
|
&.is-active
|
2016-05-05 20:54:32 +00:00
|
|
|
outline: none
|
|
|
|
&[disabled],
|
|
|
|
&.is-disabled
|
|
|
|
pointer-events: none
|
|
|
|
|
2016-10-30 10:41:53 +00:00
|
|
|
// The controls sizes use mixins so they can be used at different breakpoints
|
2016-05-05 20:54:32 +00:00
|
|
|
=control-small
|
2016-09-24 15:04:53 +00:00
|
|
|
border-radius: $control-radius-small
|
2016-10-29 17:53:30 +00:00
|
|
|
font-size: $size-small
|
2016-05-05 20:54:32 +00:00
|
|
|
=control-medium
|
2016-10-29 17:53:30 +00:00
|
|
|
font-size: $size-medium
|
2016-05-05 20:54:32 +00:00
|
|
|
=control-large
|
2016-10-29 17:53:30 +00:00
|
|
|
font-size: $size-large
|