summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/components/deployment_instance.scss
blob: a8c3400decaed06b071305dd78e672ce40c4be5b (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
.deployment-instance {
  width: $gl-padding;
  height: $gl-padding;
  margin: 1px;
  border: 1px solid;
  border-radius: $border-radius-small;
  position: relative;

  &-succeeded {
    background-color: $green-600;
    border-color: $green-800;

    &.link:hover {
      background-color: $green-800;
      border-color: $green-950;
    }
  }

  &-running {
    background-color: $green-300;
    border-color: $green-600;

    &.link:hover {
      background-color: $green-500;
      border-color: $green-800;
    }
  }

  &-failed {
    background-color: $red-600;
    border-color: $red-800;

    &::before {
      content: '';
      border: 1px solid $white;
      background: $white;
      transform: rotate(45deg);
      position: absolute;
      border-radius: 1px;
      top: -2px;
      bottom: -2px;
    }

    &.link:hover {
      background-color: $red-800;
      border-color: $red-950;
    }
  }

  &-pending {
    background-color: $gray-200;
    border-color: $gray-500;

    &.link:hover {
      background-color: $gray-300;
      border-color: $gray-900;
    }
  }

  &-unknown {
    background-color: $white;
    border-color: $gray-500;

    &.link:hover {
      background-color: $white;
      border-color: $gray-900;
    }
  }

  &.deployment-instance-canary {
    &::after {
      width: 7px;
      height: 7px;
      border: 1px solid $white;
      background-color: $orange-300;
      border-radius: 50%;
      content: '';
      z-index: 1;
    }
  }

  &-canary-icon {
    background-color: transparent;
    border: 0;

    &::after {
      width: $gl-padding !important;
      height: $gl-padding !important;
    }
  }
}