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

7.8 KB
Raw Blame
/*-- copyright
 * OpenProject is an open source project management software.
 * Copyright (C) the OpenProject GmbH
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 3.
 *
 * OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
 * Copyright (C) 2006-2013 Jean-Philippe Lang
 * Copyright (C) 2010-2013 the ChiliProject Team
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * See COPYRIGHT and LICENSE files for more details.  ++
 */

#rb
  #backlogs_container
    width: 100%
    display: flex
    flex-wrap: wrap
    justify-content: space-between
  #owner_backlogs_container
    min-width: 420px
    order: 2
    width: 49%
    flex: 0 0 49%
  #sprint_backlogs_container
    min-width: 420px
    width: 49%
    flex: 0 0 49%
    min-height: 230px
  #owner_backlogs_container .backlog .header > .add_new_story
    height: 28px
    line-height: 31px
    padding: 0
    position: absolute
    right: 10px
    text-align: right
    top: 1px
    width: 100px
  #backlogs_container .backlog
    border: 1px solid var(--borderColor-default)
    display: block
    margin: 0 0 10px 0
    width: 100%

#rb
  #backlogs_container .backlog .header
    background-color: var(--bgColor-muted)
    height: 30px
    position: relative
    width: 100%
  .backlog .header .backlog-menu
    border-right: 1px solid var(--borderColor-default)
    cursor: pointer
    height: 30px
    overflow: visible
    position: absolute
    top: 0
    right: 0
    width: 30px
    .icon-context
      position: absolute
      top: 7px
      left: 12px
      // Firefox wrongly positions icon
      &:before
        padding: 0
      &.open
        &+ .items
          display: block
    .items
      display: none
      background-color: var(--overlay-bgColor)
      border: 1px solid var(--borderColor-default)
      position: absolute
      top: 30px
      right: -2px
      list-style: none
      margin: 0
      padding: 0
      z-index: 1000
    .item
      display: block
      width: 160px
      height: 2rem
      font-size: 0.9rem
      text-align: left
      text-decoration: none
      vertical-align: middle
      overflow: hidden
      white-space: nowrap
      &.hover, &:hover
        background-color: #999
      a
        display: block
        height: 100%
        padding: 6px
        width: 100%
      &.hover a, &:hover a
        color: #FFFFFF
        text-decoration: none
  #backlogs_container
    .backlog
      .header
        .velocity
          height: 28px
          line-height: 31px
          padding: 0 3px 0 9px
          position: absolute
          right: 25px
          text-align: right
          top: 0px
          width: 32px
        .toggler
          font-family: "openproject-icon-font"
          height: 30px
          line-height: 31px
          padding: 0
          position: absolute
          left: 0
          top: 0
          width: 23px
          cursor: pointer
          &:before
            position: absolute
            left: 6px
            top: 10px
          &.closed:before
            position: absolute
            left: 6px
            top: 10px
          &:hover
            cursor: pointer
            background-color: #D8D8D8
      .sprint
        background-color: transparent
        cursor: pointer
        display: block
        height: 29px
        width: auto
        margin-left: 30px
        margin-right: 50px
        &.error.icon-bug
          background: none
          text-align: center
          &:before
            position: absolute
            color: red
        .id, .status
          display: none

        .name
          line-height: 2rem
          font-weight: var(--base-text-weight-bold)
          overflow: hidden
          white-space: nowrap
          margin-left: 0.5em

        .start_date, .effective_date
          float: right
          height: 28px
          line-height: 2rem
          width: 6.5em
          margin-left: 0.5em
      .stories
        list-style: none
        min-height: 2rem
        margin: 0
        padding: 0 0 0px 0
        z-index: 500
        overflow-y: auto
        overflow-x: hidden
        &.closed
          display: none

        .error.icon.icon-bug
          text-align: left
    .stories:not(.prevent_drag) .story
      cursor: move
    .stories .story
      display: block
      font-size: 0.9rem
      margin: 0
      overflow: hidden
      position: relative
      width: 100%
      &.odd
        background-color: var(--bgColor-neutral-muted)
      &.even
        background-color: var(--body-background)
      &.error.icon-bug
        background: none
        text-align: center
        &:before
          position: absolute
          color: red
          pointer-events: none
      &.hover, &:hover
        background-color: var(--highlight-neutral-bgColor)
      &.closed
        text-decoration: line-through
      .id
        float: left
        margin-left: 1em
        margin-right: 1em
        padding: 5px 2px 4px 2px
        width: 4em
        text-align: right
        white-space: nowrap
      .type_id .t
        float: left
        padding: 5px 2px 4px 2px
        text-align: right
        white-space: nowrap
      .subject
        overflow: hidden
        margin-left: 4em
        padding: 5px 2px 4px 2px
        white-space: nowrap
        min-height: 1em
      .status_id
        float: right
        padding: 5px 2px 4px 2px
        margin-left: 1em
        width: 68px
      .story_points
        float: right
        padding: 5px 1rem 4px 2px
        width: 3.5rem
        min-height: 14px
        height: 2rem
        text-align: center
      .type_id .v, .id .v, .status_id .v, .version_id, .higher_item_id
        display: none

.rb_dialog
  .burndown_chart
    margin-top: 20px
    margin-bottom: 20px
    margin-left: 20px
  #charts
    h3
      border: 0px
    overflow: hidden
    fieldset.burndown_control
      padding-left: 10px
      border: none
    .axislabel
      font-weight: var(--base-text-weight-bold)

/* In-place Sprint Editor */

#rb #backlogs_container
  .sprint.editing
    .editors, > .editor
      display: block
    label, > *
      display: none
    +
      .velocity, .add_new_story
        display: none
  .backlog .sprint.editing
    .editors
      display: flex
      align-items: center
      flex-direction: row-reverse

    .editor
      font-size: 0.9rem
      line-height: 1.5rem
      height: 30px
      margin: 0
      padding: 0

      &.name
        flex-basis: 15em
      &.start_date,
      &.effective_date
        margin-left: 0.5em
        flex-basis: 12.5em

  .stories .story.editing
    >
      *, .editors label
        display: none
    .editors
      display: block
    select, input
      display: inline-block
      float: none
      margin: 5px 3px 4px 2px
      font-size: 0.8rem
      // reset the line-height (foundation sets it to "normal" but that does not work here)
      line-height: inherit
    .type_id.editor
      width: 15%
      /* sets max-width for IE */
      max-width: 140px
      /* for the cool guys */
    .subject.editor
      width: 55%
    .status_id.editor
      width: 15%
      float: right
    .story_points.editor
      float: right
      width: 10%

.backlog
  font-size: 0.9rem