scss scss for select2 #bulma

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了scss scss for select2 #bulma相关的知识,希望对你有一定的参考价值。

.select2-container {
  .select2-selection--single {
    transition: border-color $speed;
    font-family: $family-sans-serif;
    height: 2.285em;

    font-size: 1rem;
    outline: none !important;
    display: inline-flex;
    align-items: center;
    width: 100%;
    border-color: $border;
    border-radius: $radius;
    &:hover {
      border-color: $border-hover;
    }

    .select2-selection__rendered {
      padding-left: 0.75em;
      padding-right: 0.75em;
      line-height: 2.3em;

    }
    .select2-selection__arrow {
      height: 2.3em;
      top: 0px;
    }
  }
  
  .select2-dropdown {
    border-color: $primary;

    .select2-search {
      margin: 10px;
      .select2-search__field {
        @extend .input;
        border-radius: $radius !important;
      }
    }

    .select2-results__options {
      max-height: 210px;
      .select2-results__option {
        padding: 0.75em;
        font-family: $family-sans-serif;
        font-size: 1rem;

        &.select2-results__option--highlighted {
          background: $primary;
        }
      }
    }
  }
}

.select2-container--open {
  .select2-selection--single {
    border-color: $primary;

    &:hover {
      border-color: $primary;
    }
  }
}

以上是关于scss scss for select2 #bulma的主要内容,如果未能解决你的问题,请参考以下文章

scss Select2 Flat UI https://github.com/techhysahil/Select2-Flat-UI/blob/master/Overide.css

scss SCSS for循环

scss scss for loop

scss Sass Loops(scss)。 for循环,每个循环和有用的例子。

scss scss:for循环的nth-child选择器动画属性

带有变量组合的SCSS中的for循环[重复]