Sha256: 3f2f6a8fc27cf0946a661c76c459f4f01b282a0812d816801d77f4584d397ec2

Contents?: true

Size: 1.92 KB

Versions: 92

Compression:

Stored size: 1.92 KB

Contents

$select-colors: $form-colors !default

.select
  display: inline-block
  max-width: 100%
  position: relative
  vertical-align: top
  &:not(.is-multiple)
    height: $input-height
  &:not(.is-multiple):not(.is-loading)
    &::after
      @extend %arrow
      border-color: $input-arrow
      +ltr-position(1.125em)
      z-index: 4
  &.is-rounded
    select
      border-radius: $radius-rounded
      +ltr-property("padding", 1em, false)
  select
    @extend %input
    cursor: pointer
    display: block
    font-size: 1em
    max-width: 100%
    outline: none
    &::-ms-expand
      display: none
    &[disabled]:hover,
    fieldset[disabled] &:hover
      border-color: $input-disabled-border-color
    &:not([multiple])
      +ltr-property("padding", 2.5em)
    &[multiple]
      height: auto
      padding: 0
      option
        padding: 0.5em 1em
  // States
  &:not(.is-multiple):not(.is-loading):hover
    &::after
      border-color: $input-hover-color
  // Colors
  @each $name, $pair in $select-colors
    $color: nth($pair, 1)
    &.is-#{$name}
      &:not(:hover)::after
        border-color: $color
      select
        border-color: $color
        &:hover,
        &.is-hovered
          border-color: bulmaDarken($color, 5%)
        &:focus,
        &.is-focused,
        &:active,
        &.is-active
          box-shadow: $input-focus-box-shadow-size bulmaRgba($color, 0.25)
  // Sizes
  &.is-small
    +control-small
  &.is-medium
    +control-medium
  &.is-large
    +control-large
  // Modifiers
  &.is-disabled
    &::after
      border-color: $input-disabled-color
  &.is-fullwidth
    width: 100%
    select
      width: 100%
  &.is-loading
    &::after
      @extend %loader
      margin-top: 0
      position: absolute
      +ltr-position(0.625em)
      top: 0.625em
      transform: none
    &.is-small:after
      font-size: $size-small
    &.is-medium:after
      font-size: $size-medium
    &.is-large:after
      font-size: $size-large

Version data entries

92 entries across 92 versions & 10 rubygems

Version Path
udt-itf-theme-0.1.0 _sass/node_modules/bulma/sass/form/select.sass
intia-theme-0.1.65 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.64 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.63 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.62 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.61 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.60 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.59 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.58 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.57 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.56 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.55 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.54 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.53 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.52 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.51 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.50 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.49 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.48 node_modules/bulma/sass/form/select.sass
intia-theme-0.1.47 node_modules/bulma/sass/form/select.sass