todos.scss 1.5 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;
J
Jacob Schatz 已提交
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
.todo {
  &:hover {
    cursor: pointer;
  }
}

29 30
.todo-item {
  .todo-title {
31 32 33
    @include str-truncated(calc(100% - 174px));
  }

34
  .todo-body {
35 36
    margin-right: 174px;

37
    .todo-note {
38 39
      word-wrap: break-word;

40 41 42 43
      .md {
        color: #7f8fa4;
        font-size: $gl-font-size;

44 45 46 47 48
        .label {
          color: $gl-text-color;
          font-size: inherit;
        }

49 50 51 52 53
        p {
          color: #5c5d5e;
        }
      }

54 55 56 57 58 59 60 61 62
      pre {
        border: none;
        background: #f9f9f9;
        border-radius: 0;
        color: #777;
        margin: 0 20px;
        overflow: hidden;
      }

63 64
      .note-image-attach {
        margin-top: 4px;
65
        margin-left: 0;
66 67 68 69
        max-width: 200px;
        float: none;
      }

70 71 72 73 74 75 76 77
      p:last-child {
        margin-bottom: 0;
      }
    }
  }
}

@media (max-width: $screen-xs-max) {
78
  .todo-item {
79 80
    padding-left: $gl-padding;

81
    .todo-title {
82 83 84 85 86 87 88 89 90
      white-space: normal;
      overflow: visible;
      max-width: 100%;
    }

    .avatar {
      display: none;
    }

91
    .todo-body {
92
      margin: 0;
93
      border-left: 2px solid #ddd;
94 95 96 97
      padding-left: 10px;
    }
  }
}