SumOfUs/Champaign

View on GitHub
app/javascript/components/SweetSelect/SweetSelect.scss

Summary

Maintainability
Test Coverage
.SweetSelect {
  text-align: left;
  -webkit-appearance: none;
  border-radius: 0;
  .Select.has-error .Select-control {
    border-color: #f8492e;
  }
  .Select.is-focused:not(.is-open) > .Select-control {
    border-color: #00c0cf;
  }
  .Select.is-open > .Select-control {
    border-color: #00c0cf #00c0cf white #00c0cf;
  }
  .Select > .Select-control,
  .Select.is-focused:not(.is-open) > .Select-control,
  .Select.is-open > .Select-control {
    border-width: 2px;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    border-radius: 0;
  }
  .Select-option {
    font-size: 16px;
  }
  .Select-option.is-selected {
    background: white;
    color: #333;
  }
  .Select-option.is-focused {
    background: #00c0cf;
    color: white;
  }
  .Select-menu-outer {
    border-color: white #00c0cf #00c0cf #00c0cf;
    z-index: 200;
    border-width: 0 2px 2px 2px;
  }

  .Select > .Select-control .Select-value,
  .Select > .Select-control {
    background-color: #f9f9f9;
    padding: 24px 18px 12px;
    border-width: 2px;
    border-color: transparent;
    -webkit-appearance: none;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
  }

  .Select-input,
  .Select-value .Select-value-label {
    height: 21px;
    line-height: 21px;
    padding-left: 0;
    font-size: 18px;
    position: relative;
    top: -4px;
    -webkit-appearance: none;
    border-radius: 0;
    input {
      padding: 5px 0 0 0;
      -webkit-appearance: none;
      border-radius: 0;
    }
  }

  .error-msg:empty {
    display: none;
  }
}