Sha256: c7b2253d1ab8700447383d6f51e91ee8d60858de98cf3623cba021e3a3f6e985

Contents?: true

Size: 1.46 KB

Versions: 1

Compression:

Stored size: 1.46 KB

Contents

.command {
  border-width: var(--border);
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.command__input {
  --input-background: transparent;
  --input-border-color: transparent;
  --input-outline-size: 0;
  --input-padding: 0.75rem 1rem;
}

.command__list {
  border-block-start-width: var(--border);
  max-block-size: 300px;
  overflow-y: auto;
}

.command__group {
  border-block-start-width: var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--size-1);
}

.command__group-header {
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  padding: var(--size-1_5) var(--size-2);
}

.command__empty {
  display: none;
  font-size: var(--text-sm);
  justify-content: center;
  padding-block: var(--size-6);
}

.command__item {
  --btn-border-color: transparent;
  --btn-font-weight: var(--font-normal);
  --btn-justify-content: start;
  --btn-outline-size: 0;
  --btn-padding: var(--size-1_5) var(--size-2);

  &:focus-visible {
    --btn-background: var(--color-secondary);
  }
}

.command__item-key {
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  margin-inline-start: auto;
}

.command__list--filtering {
  .command__group { display: none; }
  .command__group:has(.selected) { display: flex; }

  .command__item { display: none; }
  .command__item:is(.selected) { display: flex; }

  &:not(:has(.command__item.selected)) {
    .command__empty { display: flex; }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
css-zero-0.0.41 lib/generators/css_zero/add/templates/app/assets/stylesheets/command.css