todos.scss 2.39 KB
Newer Older
1
/**
2
 * Dashboard Todos
3 4
 *
 */
5 6 7

.navbar-nav {
  li {
8
    .badge.todos-pending-count {
9
      margin-top: -5px;
10
      font-weight: normal;
Jacob Schatz's avatar
Jacob Schatz committed
11 12 13 14 15 16 17 18
      background: $todo-alert-blue;
      margin-left: -17px;
      font-size: 11px;
      color: white;
      padding: 3px;
      padding-top: 1px;
      padding-bottom: 1px;
      border-radius: 3px;
19 20 21 22
    }
  }
}

23 24 25 26 27 28 29 30
.todos-list > .todo {
  // workaround because we cannot use border-colapse
  border-top: 1px solid transparent;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;

31
  &:hover {
32 33
    background-color: $row-hover;
    border-color: $row-hover-border;
34 35
    cursor: pointer;
  }
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

  // overwrite border style of .content-list
  &:last-child {
    border-bottom: 1px solid transparent;

    &:hover {
      border-color: $row-hover-border;
    }
  }

  .todo-actions {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex-direction: column;
    flex-direction: column;
    margin-left: 10px;
  }

  .todo-item {
    -webkit-flex: auto;
    flex: auto;
  }
60 61
}

62 63
.todo-item {
  .todo-title {
64
    @include str-truncated(calc(100% - 174px));
Alfredo Sumaran's avatar
Alfredo Sumaran committed
65 66 67 68 69 70 71 72
    overflow: visible;
  }

  .status-box {
    margin: 0;
    float: none;
    display: inline-block;
    font-weight: normal;
73 74 75
    padding: 0 5px;
    line-height: inherit;
    font-size: 14px;
76 77
  }

78 79
  .todo-body {
    .todo-note {
80 81
      word-wrap: break-word;

82 83 84 85
      .md {
        color: #7f8fa4;
        font-size: $gl-font-size;

86 87 88 89 90
        .label {
          color: $gl-text-color;
          font-size: inherit;
        }

91 92 93 94 95
        p {
          color: #5c5d5e;
        }
      }

96 97 98 99
      code {
        white-space: pre-wrap;
      }

100 101 102 103 104 105 106 107 108
      pre {
        border: none;
        background: #f9f9f9;
        border-radius: 0;
        color: #777;
        margin: 0 20px;
        overflow: hidden;
      }

109 110
      .note-image-attach {
        margin-top: 4px;
111
        margin-left: 0;
112 113 114 115
        max-width: 200px;
        float: none;
      }

116 117 118 119 120 121 122 123
      p:last-child {
        margin-bottom: 0;
      }
    }
  }
}

@media (max-width: $screen-xs-max) {
124 125 126 127 128 129
  .todo {
    .avatar {
      display: none;
    }
  }

130 131
  .todo-item {
    .todo-title {
132 133 134
      white-space: normal;
      overflow: visible;
      max-width: 100%;
135
      margin-bottom: 10px;
136 137
    }

138
    .todo-body {
139
      margin: 0;
140
      border-left: 2px solid #ddd;
141 142 143 144
      padding-left: 10px;
    }
  }
}