Sha256: 683ec90ff80b534e359aff3d685b9b924f8451f1c76de2da1f8d29b3e27a066b

Contents?: true

Size: 1002 Bytes

Versions: 4

Compression:

Stored size: 1002 Bytes

Contents

.switch {
  appearance: none;
  background-color: var(--color-border);
  border-color: transparent;
  border-radius: var(--rounded-full);
  border-width: var(--border-2);
  block-size: var(--size-6);
  cursor: pointer;
  inline-size: var(--size-11);
  transition-duration: var(--time-150);
  transition-property: var(--transition-colors);
  transition-timing-function: var(--ease-in-out);

  &:checked {
    background-color: var(--color-primary);
  }

  &:checked::before {
    margin-inline-start: var(--size-5);
  }

  &::before {
    aspect-ratio: var(--aspect-square);
    background-color: var(--color-text-reversed);
    block-size: var(--size-full);
    border-radius: var(--rounded-full);
    content: "";
    display: block;
    transition: margin var(--time-150) var(--ease-in-out);
  }

  &:focus-visible {
    outline: var(--border-2) solid var(--color-selected-dark);
    outline-offset: var(--border-2);
  }

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
css-zero-0.0.28 lib/generators/css_zero/add/templates/app/assets/stylesheets/switch.css
css-zero-0.0.27 lib/generators/css_zero/add/templates/app/assets/stylesheets/switch.css
css-zero-0.0.26 lib/generators/css_zero/add/templates/app/assets/stylesheets/switch.css
css-zero-0.0.25 lib/generators/css_zero/add/templates/app/assets/stylesheets/switch.css