summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/page_bundles/ci_status.scss
blob: 7adbf10b83ae6c47f508776a841d89644bcf7397 (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
@import 'mixins_and_variables_and_functions';

.ci-status {
  border: 1px solid var(--border-color, $border-color);

  &:hover,
  &:focus {
    text-decoration: none;
  }

  svg {
    height: 13px;
    width: 13px;
    overflow: visible;
  }

  &.ci-failed {
    @include status-color(
      var(--red-100, $red-100),
      var(--red-500, $red-500),
      var(--red-600, $red-600)
    );
  }

  &.ci-success {
    @include green-status-color;
  }

  &.ci-canceled,
  &.ci-skipped,
  &.ci-disabled,
  &.ci-scheduled,
  &.ci-manual {
    color: var(--gl-text-color, $gl-text-color);
    border-color: currentColor;

    &:not(span):hover {
      background-color: rgba($gl-text-color, 0.07);
    }
  }

  &.ci-preparing {
    @include status-color(
      var(--gray-100, $gray-100),
      var(--gray-300, $gray-300),
      var(--gray-400, $gray-400)
    );
  }

  &.ci-pending,
  &.ci-waiting-for-resource,
  &.ci-failed-with-warnings,
  &.ci-success-with-warnings {
    @include status-color(
      var(--orange-50, $orange-50),
      var(--orange-500, $orange-500),
      var(--orange-700, $orange-700)
    );
  }

  &.ci-info,
  &.ci-running {
    @include status-color(
      var(--blue-100, $blue-100),
      var(--blue-500, $blue-500),
      var(--blue-600, $blue-600)
    );
  }

  &.ci-created,
  &.ci-skipped {
    color: var(--gray-500, $gray-500);
    border-color: currentColor;

    &:not(span):hover {
      background-color: rgba($gl-text-color-secondary, 0.07);
    }
  }
}