bulma/sass/utilities/controls.sass

42 lines
1.0 KiB
Sass
Raw Normal View History

2016-09-24 15:04:53 +00:00
$control-radius: $radius !default
$control-radius-small: $radius-small !default
2017-04-13 00:10:39 +00:00
$control-padding-vertical: calc(0.375em - 1px) !default
$control-padding-horizontal: calc(0.625em - 1px) !default
=control
-moz-appearance: none
-webkit-appearance: none
align-items: center
2017-04-13 00:10:39 +00:00
border: 1px solid transparent
2016-09-24 15:04:53 +00:00
border-radius: $control-radius
2016-10-29 17:53:30 +00:00
box-shadow: none
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-17 00:14:11 +00:00
line-height: 1.5
2017-04-13 00:10:39 +00:00
padding-bottom: $control-padding-vertical
padding-left: $control-padding-horizontal
padding-right: $control-padding-horizontal
padding-top: $control-padding-vertical
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
outline: none
2017-03-31 21:25:53 +00:00
&[disabled]
cursor: not-allowed
2016-10-30 10:41:53 +00:00
// The controls sizes use mixins so they can be used at different breakpoints
=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
=control-medium
2016-10-29 17:53:30 +00:00
font-size: $size-medium
=control-large
2016-10-29 17:53:30 +00:00
font-size: $size-large