@import "_mixins/all"

#accounts,
#repos
  &.open li .info
    display: block

  li
    position: relative
    font-size: $font-size-big
    padding: 15px 20px 15px 15px
    border-bottom: 1px solid $color-border-light
    background-repeat: no-repeat

    &:nth-child(odd),
    &:nth-child(odd) .indicator span
      background-color: $color-bg-list-odd
    &:nth-child(even),
    &:nth-child(even) .indicator span
      background-color: $color-bg-list-even

    .slug-and-status
      white-space: nowrap
      overflow: hidden
      text-overflow: ellipsis
      padding-right: 35px

    .last_build
      position: absolute
      top: 15px
      right: 20px
      text-align: right
      // font-size: $font-size-normal
      // border: 1px solid #ddd
      // @include border-radius(10px)

    .summary
      margin: 5px 0 0 16px
      white-space: nowrap
      overflow: hidden
      text-overflow: ellipsis
      color: $color-text-light
      font-size: $font-size-small

    .info
      overflow: hidden
      margin: 12px -20px -15px -45px
      font-size: $font-size-small
      background-color: $color-bg-list-info
      color: $color-text-list-info
      display: none
      p
        margin: 0 -10px 0 -10px
        padding: 12px 35px 12px 73px
        @include box-shadow($color-shadow-list-info 0 1px 8px 0 inset)

    .indicator
      display: none
      position: absolute
      top: 0
      right: -20px
      width: 20px
      height: 100%
      overflow: hidden

      span
        position: relative
        display: block
        top: 25px
        left: -15px
        width: 20px
        height: 20px
        border: 1px solid $color-border-normal
        @include rotate(45deg)

    &.selected .indicator
      display: block

#left .loading
  padding: 15px 25px 15px 30px
  background-color: $color-bg-list-odd
  background-image: none

#accounts
  li
    margin-left: -4px
    padding-left: 52px
    &.user
      background-image: inline-image('ui/user.png')
      background-position: 29px 18px
    &.organization
      background-image: inline-image('ui/org.png')
      background-position: 24px 18px
    .summary
      margin-left: 0
