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.1 KB
Raw Blame
@import "helpers"

.op-border-box-grid
  display: grid

  &--row-item
    word-break: break-word

  &--heading
    align-self: center

  &--row-action,
  &--heading-action
    display: flex
    align-items: flex-start
    justify-content: flex-end

  &--row-action
    margin-top: -6px // Moving the button slightly to the top, so that the icon aligns visually with the other columns

@media screen and (min-width: $breakpoint-md)
  .op-border-box-grid
    // Distribute columns evenly on desktop
    grid-auto-columns: minmax(0, 1fr)
    grid-auto-flow: column
    justify-content: flex-start
    align-items: flex-start

    &--heading,
    &--row-item
      &:not(:first-child)
        padding-left: 6px

      &:not(:last-child)
        padding-right: 6px

    &--mobile-heading,
    &--row-label
      display: none

    &--main-column
      grid-column: span 2

@media screen and (max-width: $breakpoint-md)
  .op-border-box-grid
    grid-template-columns: 1fr auto
    grid-auto-flow: row

    &--heading,
    &--no-mobile
      display: none

    &--row-item
      grid-column: 1

    &--row-action
      grid-column: 2
      grid-row: 1