Sha256: 6fd9028a69a18dca47b124fe415722f31e74ddf7edc478d23fb9feecba515ccc

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

.input {
  appearance: none;
  background-color: var(--color-bg);
  border-color: var(--color-border);
  border-radius: var(--rounded-md);
  border-width: var(--border);
  font-size: var(--text-sm);
  inline-size: var(--size-full);
  padding: var(--size-2) var(--size-3);

  &:is(textarea):not([rows]) {
    field-sizing: content;
    max-block-size: calc(10lh + var(--size-6));
    min-block-size: calc(3lh  + var(--size-6));
    resize: none;
  }

  &:is(select):not([multiple], [size]) {
    background-image: url("select-arrow.svg");
    background-position: center right var(--size-2);
    background-repeat: no-repeat;
    background-size: var(--size-4) auto;
  }

  &::file-selector-button {
    font-weight: var(--font-medium);
    margin-inline-end: var(--size-2);
  }

  &:autofill {
    -webkit-text-fill-color: var(--color-text);
    -webkit-box-shadow: 0 0 0px 1000px var(--color-selected) inset;
  }

  &::placeholder {
    color: var(--color-text-subtle);
  }

  &:user-invalid {
    border-color: var(--color-negative);
  }

  &:user-invalid ~ .invalid-feedback {
    display: block;
  }

  &:disabled {
    cursor: not-allowed;
    opacity: var(--opacity-50);
  }
}

.range {
  accent-color: var(--color-primary);
}

.checkbox, .radio {
  accent-color: var(--color-primary);
  transform: scale(1.15);
}

:is(.input, .range, .checkbox, .radio) {
  &:focus-visible {
    outline: var(--border-2) solid var(--color-selected-dark);
    outline-offset: var(--border-2);
  }

  .field_with_errors & {
    border-color: var(--color-negative);
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
css-zero-0.0.26 lib/generators/css_zero/add/templates/app/assets/stylesheets/input.css