CoreFiles by mySites.guru
_chosen.scss127 lines, 3,046 bytes, from Joomla_4.0.0-beta6-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta5
md5
256b2badb6c989a25f8266f901c81ed2
sha1
e68ba47e6f184250539e965084beb83d15c61af3
sha256
79852b2989653cd85dc11008852d53330a32e89a8bfedb38f69c9e84530339a6
// Chosen

$chosen-select-padding-y: $custom-select-padding-y + .21;

.chosen-container.chosen-container-single {
  max-width: $input-max-width;
  font-size: $font-size-base;

  .chosen-single {
    display: inline-block;
    $select-border-width: ($custom-select-border-width * 2);
    height: #{$input-height};
    padding: $chosen-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $chosen-select-padding-y $custom-select-padding-x;
    line-height: 1.5;
    color: $custom-select-color;
    vertical-align: middle;
    background: $custom-select-bg $custom-select-indicator no-repeat right $custom-select-padding-x center;
    background-image: none \9;
    background-size: $custom-select-bg-size;
    border: $custom-select-border-width solid $custom-select-border-color;
    box-shadow: none;
    appearance: none;

    @if $enable-rounded {
      border-radius: $custom-select-border-radius;
    } @else {
      border-radius: 0;
    }

    abbr {
      top: 10px;
    }

    &:focus {
      @include box-shadow($custom-select-focus-box-shadow);
      border-color: $custom-select-focus-border-color;
      outline: none;
    }

    &:disabled {
      color: $custom-select-disabled-color;
      cursor: not-allowed;
      background-color: $custom-select-disabled-bg;
    }

    div b {
      background: none !important;
    }
  }

  .chosen-drop {
    background: $white;
    border: $custom-select-border-width solid $custom-select-border-color;
  }

  .chosen-results li {
    line-height: calc(#{$font-size-base} + .3rem);
  }

  &.chosen-container-active .chosen-single {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }
}

.chosen-container.chosen-container-multi {
  .chosen-choices {
    max-width: $input-max-width;
    min-height: #{$input-height};
    font-size: $font-size-base;
    line-height: $input-line-height;
    background-image: $white;

    li.search-choice {
      $chosen-multi-close-width: 20px;

      padding: 5px (13 + $chosen-multi-close-width) 5px 10px;
      color: $white;
      background: var(--primary);
      border: 0;
      box-shadow: $cassiopeia-box-shadow;

      @if $enable-rounded {
        border-radius: $custom-select-border-radius;
      } @else {
        border-radius: 0;
      }

      .search-choice-close {
        top: 0;
        right: 0;
        width: $chosen-multi-close-width;
        height: 100%;
        background: hsla(0, 0%, 0%, .2);
        background-image: none !important;

        &::before {
          position: absolute;
          top: 6px;
          right: ($chosen-multi-close-width / 4);
          font-size: $font-size-base;
          color: $white;
          content: "\00d7";
        }
      }
    }
  }
}

.chosen-container-active.chosen-with-drop .chosen-single {
  box-shadow: none;
}

// TEMPORARY
.chosen-container-single {
  width: auto !important;
}

// END TEMPORARY

.card .chosen-container.chosen-container-single {
  width: 100% !important;

  .chosen-single {
    width: 100% !important;
  }
}

No other release has this exact content. See every version of this file.