summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/issue_box.scss
blob: 1d247671761ce2f8419092f8b14d35e238f06935 (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
/**
 * Issue box for showing Open/Closed state:
 * Used for Issue#show page, MergeRequest#show page etc
 *
 */

.status-box {

  /* Extra small devices (phones, less than 768px) */
  /* No media query since this is the default in Bootstrap */
  padding: 5px 11px;
  margin-top: 4px;
  /* Small devices (tablets, 768px and up) */
  @include media-breakpoint-up(sm) {
    padding: 0 $gl-btn-padding;
    margin-top: 5px;
  }

  border-radius: 3px;
  display: block;
  float: left;
  margin-right: 10px;
  color: $white-light;
  font-size: $gl-font-size;
  line-height: 25px;

  &.status-box-closed,
  &.status-box-mr-closed {
    background-color: $gl-danger;
  }

  &.status-box-issue-closed,
  &.status-box-mr-merged {
    background-color: $gl-primary;
  }

  &.status-box-open {
    background-color: $green-500;
  }

  &.status-box-expired {
    background-color: $issue-status-expired;
  }

  &.status-box-upcoming {
    background: $gl-text-color-secondary;
  }
}