Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

1.3 KB
Raw Blame
.spot-text-field
  @include spot-body-small

  border: 1px solid var(--fgColor-muted)
  color: $spot-color-basic-black
  border-radius: 4px
  padding: $spot-spacing-0_5
  background-color: var(--bgColor-default)
  display: inline-flex
  justify-content: center
  align-items: center

  &::placeholder
    color: var(--fgColor-muted)

  &:focus,
  &_focused
    color: $spot-color-basic-black
    @include spot-focus

  &:disabled,
  &_disabled
    color: var(--fgColor-muted)
    border-color: $spot-color-basic-gray-4

  &:disabled,
  &_disabled &--input
    &,
    &:hover
      background-color: var(--bgColor-default)

  &--input
    background: transparent
    border: 0
    padding: 0
    flex-grow: 1
    width: 100%
    outline: 0

    &:not(:first-child)
      margin-left: $spot-spacing-0_5

    &:not(:last-child)
      margin-right: $spot-spacing-0_5

    &:disabled,
    &:disabled:hover
      color: var(--fgColor-muted)
      background-color: var(--bgColor-default)

    &:focus,
    &:focus-visible
      outline: none

  &--clear-button
    border: 0
    background: transparent
    padding: 0
    display: flex
    align-items: center
    color: var(--fgColor-muted)

    &:focus
      @include spot-focus

    &:not(:last-child)
      margin-right: $spot-spacing-0_5