status.scss 2.37 KB
Newer Older
1
.container-fluid {
2
  .ci-status {
dimitrieh's avatar
dimitrieh committed
3
    padding: 2px 7px 4px;
Annabel Dunstone's avatar
Annabel Dunstone committed
4
    margin-right: 10px;
5
    border: 1px solid $gray-darker;
6
    white-space: nowrap;
Clement Ho's avatar
Clement Ho committed
7
    border-radius: 4px;
8

9 10
    &:hover,
    &:focus {
11 12
      text-decoration: none;
    }
13

14 15 16 17
    svg {
      height: 13px;
      width: 13px;
      position: relative;
18
      top: 2px;
19 20 21
      overflow: visible;
    }

22 23
    &.ci-failed,
    &.ci-failed_with_warnings {
24 25
      color: $gl-danger;
      border-color: $gl-danger;
26 27

      &:not(span):hover {
28
        background-color: rgba($gl-danger, .07);
29 30 31 32 33
      }

      svg {
        fill: $gl-danger;
      }
34
    }
35

36 37
    &.ci-success,
    &.ci-success_with_warnings {
38 39
      color: $gl-success;
      border-color: $gl-success;
40 41

      &:not(span):hover {
42
        background-color: rgba($gl-success, .07);
43 44 45 46 47
      }

      svg {
        fill: $gl-success;
      }
48
    }
49

50 51 52
    &.ci-info {
      color: $gl-info;
      border-color: $gl-info;
53 54

      &:not(span):hover {
55
        background-color: rgba($gl-info, .07);
56 57 58 59 60
      }

      svg {
        fill: $gl-info;
      }
61
    }
62

63 64
    &.ci-canceled,
    &.ci-disabled {
65 66
      color: $gl-text-color;
      border-color: $gl-text-color;
67 68

      &:not(span):hover {
69
        background-color: rgba($gl-text-color, .07);
70 71 72
      }

      svg {
73
        fill: $gl-text-color;
74
      }
75 76
    }

77
    &.ci-pending {
78 79
      color: $gl-warning;
      border-color: $gl-warning;
80 81

      &:not(span):hover {
82
        background-color: rgba($gl-warning, .07);
83 84 85 86 87
      }

      svg {
        fill: $gl-warning;
      }
88
    }
89 90 91 92

    &.ci-running {
      color: $blue-normal;
      border-color: $blue-normal;
93 94

      &:not(span):hover {
95
        background-color: rgba($blue-normal, .07);
96 97 98 99 100
      }

      svg {
        fill: $blue-normal;
      }
101
    }
102

103 104
    &.ci-created,
    &.ci-skipped {
105 106
      color: $gl-text-color-secondary;
      border-color: $gl-text-color-secondary;
107

108
      &:not(span):hover {
109
        background-color: rgba($gl-text-color-secondary, .07);
110 111
      }

112
      svg {
113
        fill: $gl-text-color-secondary;
114 115
      }
    }
116 117

    &.ci-manual {
118 119
      color: $gl-text-color;
      border-color: $gl-text-color;
120 121

      &:not(span):hover {
122
        background-color: rgba($gl-text-color, .07);
123 124 125
      }

      svg {
126
        fill: $gl-text-color;
127 128
      }
    }
129
  }
130
}
131 132 133 134 135 136 137 138

.visible-xs-inline {
  .ci-status-link {
    position: relative;
    top: 2px;
    left: 5px;
  }
}
139 140 141 142 143 144

.ci-status-link {
  svg {
    overflow: visible;
  }
}