summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/pages/tasks.scss
blob: a3dffeed4ab21206d614a143969962277ed53eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/**
 * Dashboard tasks queue
 *
 */

.navbar-nav {
  li {
    .badge.tasks-pending-count {
      background-color: #7f8fa4;
      margin-top: -5px;
    }
  }
}

.tasks {
  .panel {
    border-top: none;
    margin-bottom: 0;
  }
}

.task-item {
  font-size: $gl-font-size;
  padding: $gl-padding-top 0 $gl-padding-top ($gl-avatar-size + $gl-padding-top);
  border-bottom: 1px solid $table-border-color;
  color: #7f8fa4;

  &.task-inline {
    .avatar {
      position: relative;
      top: -2px;
    }

    .task-title {
      line-height: 40px;
    }
  }

  a {
    color: #4c4e54;
  }

  .avatar {
    margin-left: -($gl-avatar-size + $gl-padding-top);
  }

  .task-title {
    @include str-truncated(calc(100% - 174px));
    font-weight: 600;

    .author_name {
      color: #333;
    }
  }

  .task-body {
    margin-right: 174px;

    .task-note {
      word-wrap: break-word;

      .md {
        color: #7f8fa4;
        font-size: $gl-font-size;

        p {
          color: #5c5d5e;
        }
      }

      pre {
        border: none;
        background: #f9f9f9;
        border-radius: 0;
        color: #777;
        margin: 0 20px;
        overflow: hidden;
      }

      .note-image-attach {
        margin-top: 4px;
        margin-left: 0px;
        max-width: 200px;
        float: none;
      }

      p:last-child {
        margin-bottom: 0;
      }
    }

    .task-note-icon {
      color: #777;
      float: left;
      font-size: $gl-font-size;
      line-height: 16px;
      margin-right: 5px;
    }
  }

  &:last-child { border:none }
}

@media (max-width: $screen-xs-max) {
  .task-item {
    padding-left: $gl-padding;

    .task-title {
      white-space: normal;
      overflow: visible;
      max-width: 100%;
    }

    .avatar {
      display: none;
    }

    .task-body {
      margin: 0;
      border-left: 2px solid #DDD;
      padding-left: 10px;
    }
  }
}