Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

1.7 KB
Raw Blame
.inlineEditingTextInput {
  transition: none;
  outline: 2px solid var(--mb-color-background_surface-selected);
  outline-offset: -2px;
  border-color: transparent;
  box-sizing: border-box;
  background-color: var(--mb-color-background_page-primary);
  border-radius: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;

  /* Should be in sync with DEFAULT_FONT_SIZE */
  font-size: 12.5px;

  /* Properly alignment with BaseCell, to avoid text flickering (BaseCell has only border-bottom 1px) */
  border-top-width: 0;

  /* Keep outline consistent for inline editing, since focused and non focused state is semantically the same */
  &:focus {
    outline: 2px solid var(--mb-color-background_surface-selected);
  }
}

.selectLabel {
  /* Should be in sync with DEFAULT_FONT_SIZE */
  font-size: 12.5px;
}

.cell {
  font-weight: normal;
  border-bottom-color: var(--mb-color-border-neutral);
}

.readonlyCell {
  font-weight: normal;
  color: var(--mb-color-text-disabled);
  cursor: not-allowed;
  border-bottom-color: var(--mb-color-border-neutral);
}

.errorCell {
  background-color: var(--mb-color-background_surface-warning);
  outline: 2px solid var(--mb-color-feedback-warning);
  outline-offset: -2px;
  border-radius: 0.25rem;

  &:hover {
    background-color: var(--mb-color-background_surface-warning);
  }
}

.updatingCell {
  background: linear-gradient(
    110deg,
    var(--mb-color-background_page-secondary) 8%,
    var(--mb-color-background_page-primary) 18%,
    var(--mb-color-background_page-secondary) 33%
  );
  background-size: 200% 100%;
  animation: 1s shine linear infinite;
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}