Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

1.1 KB
Raw Blame
@use "@fider/assets/styles/variables.scss" as *;

.c-select {
  background-color: var(--colors-white);
  color: var(--colors-black);
  width: 100%;
  line-height: get("font.size.xl");
  padding: spacing(2) spacing(3);
  border: 1px solid var(--colors-gray-300);
  border-radius: get("border.radius.medium");
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);

  &:hover {
    border-color: var(--colors-gray-400);
  }

  &:focus {
    outline: none;
    border-color: var(--colors-primary-base);
    box-shadow: 0 0 0 3px rgba(45, 87, 237, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  }

  &:disabled {
    @include disabled();
  }

  &--error {
    border-color: var(--colors-red-600);
  }
}