CoreFiles by mySites.guru
choices.scss122 lines, 2,466 bytes, from Joomla_4.0.0-beta5-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta4
md5
410074fd523ebd404018aace4683bf2f
sha1
b3a4ca5687b3ba2ef0d373ccffb0b6b89fcf0ffc
sha256
440a156b48897c3a8dc81e9963438ceb3ce6bc088a6db88d12ae21c8250be59f
@import "../../../../../media/vendor/bootstrap/scss/functions";

// Cassiopea Variables
@import "../../variables";

// Mixins
@import "../../mixin";

@import "../../../../../media/vendor/bootstrap/scss/variables";
@import "../../../../../media/vendor/bootstrap/scss/mixins";

// choices.js
@import "../../../../../node_modules/choices.js/src/styles/choices";


// Fix position
.choices__list--dropdown {
  z-index: 10;
}

// Fix close button
.choices__button_joomla {
  position: relative;
  text-indent: -9999px;
  cursor: pointer;
  background: none;
  border: 0;
  appearance: none;

  &::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    text-align: center;
    text-indent: 0;
    content: "\00d7";
  }

  &:focus {
    outline: none;
  }
}

.choices[data-type*="select-one"] {
  .choices__button_joomla {
    position: absolute;
    top: 50%;
    right: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    margin-top: -10px;
    margin-right: 45px;
    border-radius: 10em;
    opacity: .5;

    [dir=rtl] & {
      right: auto;
      left: 0;
      margin-right: 0;
      margin-left: 45px;
    }

    &:hover,
    &:focus {
      opacity: 1;
    }

    &:focus {
      box-shadow: 0 0 0 2px #00bcd4;
    }
  }

  &::after {
    display: none;
  }

  .choices__inner {
    padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
    background: url("../../../images/select-bg.svg") no-repeat right center / $custom-select-bg-size;
    background-color: $custom-select-bg;

    [dir=rtl] & {
      padding: $custom-select-padding-y $custom-select-padding-x $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding);
      background: url("../../../images/select-bg-rtl.svg") no-repeat left center / $custom-select-bg-size;
      background-color: $custom-select-bg;
    }
  }
}

.choices[data-type*="select-multiple"],
.choices[data-type*="text"] {
  .choices__button_joomla {
    position: relative;
    display: inline-block;
    width: 8px;
    padding-left: 16px;
    margin-top: 0;
    margin-right: -4px;
    margin-bottom: 0;
    margin-left: 8px;
    line-height: 1;
    border-left: 1px solid #008fa1;
    opacity: .75;

    &:hover,
    &:focus {
      opacity: 1;
    }

    &::before {
      color: #fff;
    }
  }
}

.choices__heading {
  font-size: 1.2rem;
}

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