Sha256: bf5e5ac24559e24ad1b1a920ae87316da1aa8117dcd353318d4c6129f087c090

Contents?: true

Size: 1.43 KB

Versions: 5

Compression:

Stored size: 1.43 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 {
  &:not(:has(.selected)) > .command__empty { display: flex; }
  .command__group { display: none; }
  .command__group:has(.selected) { display: flex; }
  .command__item { display: none; }
  .command__item:is(.selected) { display: flex; }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
css-zero-0.0.46 lib/generators/css_zero/add/templates/app/assets/stylesheets/command.css
css-zero-0.0.45 lib/generators/css_zero/add/templates/app/assets/stylesheets/command.css
css-zero-0.0.44 lib/generators/css_zero/add/templates/app/assets/stylesheets/command.css
css-zero-0.0.43 lib/generators/css_zero/add/templates/app/assets/stylesheets/command.css
css-zero-0.0.42 lib/generators/css_zero/add/templates/app/assets/stylesheets/command.css