2016-09-22 19:30:09 +00:00
|
|
|
@import "./mixins.sass"
|
|
|
|
@import "./variables.sass"
|
|
|
|
|
2016-09-24 15:04:53 +00:00
|
|
|
$control: $text-strong !default
|
|
|
|
$control-background: $text-invert !default
|
|
|
|
$control-border: $border !default
|
|
|
|
|
|
|
|
$control-hover: $link-hover !default
|
|
|
|
$control-hover-border: $border-hover !default
|
|
|
|
|
|
|
|
$control-active: $link !default
|
|
|
|
$control-active-background: $link !default
|
|
|
|
$control-active-background-invert: $link-invert !default
|
|
|
|
$control-active-border: $link !default
|
|
|
|
|
|
|
|
$control-disabled: $border !default
|
|
|
|
$control-disabled-background: $background !default
|
|
|
|
|
|
|
|
$control-radius: $radius !default
|
|
|
|
$control-radius-small: $radius-small !default
|
|
|
|
$control-size: $size-normal !default
|
|
|
|
$control-size-small: $size-small !default
|
|
|
|
|
|
|
|
$control-icon: $grey-lighter !default
|
|
|
|
$control-icon-active: $grey-light !default
|
|
|
|
|
2016-05-05 20:54:32 +00:00
|
|
|
=control
|
|
|
|
-moz-appearance: none
|
|
|
|
-webkit-appearance: none
|
|
|
|
align-items: center
|
2016-06-29 22:59:48 +00:00
|
|
|
background-color: $control-background
|
2016-05-05 20:54:32 +00:00
|
|
|
border: 1px solid $control-border
|
2016-09-24 15:04:53 +00:00
|
|
|
border-radius: $control-radius
|
2016-05-05 20:54:32 +00:00
|
|
|
color: $control
|
|
|
|
display: inline-flex
|
2016-09-24 15:04:53 +00:00
|
|
|
font-size: $control-size
|
2016-05-05 20:54:32 +00:00
|
|
|
height: 32px
|
2016-05-07 12:31:31 +00:00
|
|
|
justify-content: flex-start
|
2016-05-05 20:54:32 +00:00
|
|
|
line-height: 24px
|
|
|
|
padding-left: 8px
|
|
|
|
padding-right: 8px
|
|
|
|
position: relative
|
|
|
|
vertical-align: top
|
|
|
|
&:hover
|
|
|
|
border-color: $control-hover-border
|
|
|
|
&:active,
|
2016-05-30 18:41:54 +00:00
|
|
|
&:focus,
|
|
|
|
&.is-active
|
2016-05-05 20:54:32 +00:00
|
|
|
border-color: $control-active-border
|
|
|
|
outline: none
|
|
|
|
&[disabled],
|
|
|
|
&.is-disabled
|
2016-09-24 15:04:53 +00:00
|
|
|
background-color: $control-disabled-background
|
|
|
|
border-color: $control-disabled
|
2016-05-05 20:54:32 +00:00
|
|
|
cursor: not-allowed
|
|
|
|
pointer-events: none
|
|
|
|
+placeholder
|
|
|
|
color: rgba($control, 0.3)
|
|
|
|
|
|
|
|
=control-small
|
2016-09-24 15:04:53 +00:00
|
|
|
border-radius: $control-radius-small
|
2016-05-05 20:54:32 +00:00
|
|
|
font-size: 11px
|
|
|
|
height: 24px
|
|
|
|
line-height: 16px
|
|
|
|
padding-left: 6px
|
|
|
|
padding-right: 6px
|
|
|
|
=control-medium
|
|
|
|
font-size: 18px
|
|
|
|
height: 40px
|
|
|
|
line-height: 32px
|
|
|
|
padding-left: 10px
|
|
|
|
padding-right: 10px
|
|
|
|
=control-large
|
|
|
|
font-size: 24px
|
|
|
|
height: 48px
|
|
|
|
line-height: 40px
|
|
|
|
padding-left: 12px
|
|
|
|
padding-right: 12px
|