bulma/sass/utilities/controls.sass

40 lines
865 B
Sass
Raw Normal View History

2016-09-24 15:04:53 +00:00
$control-radius: $radius !default
$control-radius-small: $radius-small !default
=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
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
2016-10-29 17:53:30 +00:00
line-height: 1.5
padding-bottom: 0.425em
2017-03-12 14:13:08 +00:00
padding-left: 0.625em
padding-right: 0.625em
padding-top: 0.325em
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
&[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
=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