CoreFiles by mySites.guru
choices.scss151 lines, 2,675 bytes, from Joomla_4.0.0-beta2-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta
md5
26ec5a0c1e08e783a97b0fcc05de273f
sha1
faddfc7656fd2428325d6335aee26a9f83c11d84
sha256
34c211422d8f9e5b17431fb97ea2a23bb6aeacc1da2fb0dc497895d44d59ccd9
@import "../../../../../../media/vendor/bootstrap/scss/functions";

// Atum 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";

.choices {
  border: 0;
  border-radius: $border-radius;

  &:hover {
    cursor: pointer;
  }

  &.is-focused {
    box-shadow: $focusshadow;
  }
}

.choices__inner {
  border: $input-border;
  border-radius: $border-radius;
  box-shadow: $input-box-shadow;
  padding: 0.4rem 1rem;
  margin-bottom: 0;
  font-size: 1rem;

  .is-focused & {
    border-color: $focuscolor;
  }
}

.choices__input {
  padding: 0;
  margin-bottom: 0;
  font-size: 1rem;
  background-color: transparent;

  &::-moz-placeholder {
    color: $gray-700;
    opacity: 1;
  }

  &::-webkit-input-placeholder {
    color: $gray-700;
    opacity: 1;
  }
}

.choices__list--dropdown {
  z-index: $zindex-popover;
}

.choices__list--multiple .choices__item {
  position: relative;
  background-color: var(--atum-bg-dark);
  margin: 2px;
  margin-inline-end: 2px;
  border: 0;
  border-radius: $border-radius;

  &.is-highlighted {
    background-color: var(--atum-bg-dark);
    opacity: 0.9;
  }
}

.choices .choices__list--dropdown {
  .choices__item {
    padding-inline-end: 10px;
  }

  .choices__item--selectable::after {
    display: none;
  }
}

.choices__button_joomla {
  opacity: 0.5;
  padding: 0 10px;
  color: inherit;

  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";
  }

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

  &:focus {
    outline: none;
  }
}

.choices[data-type*="select-one"],
.choices[data-type*="select-multiple"] {
  .choices__inner {
    padding-inline-end: $custom-select-indicator-padding;
    background: url("../../../images/select-bg.svg") no-repeat 100%/116rem;
    background-color: $custom-select-bg;
    cursor: pointer;

    [dir="rtl"] & {
      background: url("../../../images/select-bg-rtl.svg") no-repeat 0/116rem;
      background-color: $custom-select-bg;
    }
  }
}

.choices[data-type*="select-one"] {
  .choices__item {
    display: flex;
    justify-content: space-between;
  }

  &::after {
    display: none;
  }
}

.choices[data-type*="select-multiple"],
.choices[data-type*="text"] {
  .choices__input {
    padding: 0.2rem 0;
  }
}

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