builds.scss 3.9 KB
Newer Older
1
.build-page {
2
  pre.trace {
3
    background: #111;
4 5
    color: #fff;
    font-family: $monospace_font;
6
    white-space: pre-wrap;
7 8 9 10 11 12 13 14 15 16 17
    overflow: auto;
    overflow-y: hidden;
    font-size: 12px;

    .fa-refresh {
      font-size: 24px;
      margin-left: 20px;
    }
  }

  .scroll-controls {
18 19 20
    .scroll-step {
      width: 31px;
      margin: 0 0 0 auto;
P
Phil Hughes 已提交
21 22 23 24 25 26 27 28
    }

    &.affix-bottom {
      position: absolute;
      right: 25px;
    }

    &.affix {
29
      right: 25px;
P
Phil Hughes 已提交
30
      bottom: 15px;
31
      z-index: 1;
32
    }
P
Phil Hughes 已提交
33

34 35
    &.sidebar-expanded {
      right: #{$gutter_width + ($gl-padding * 2)};
P
Phil Hughes 已提交
36
    }
37 38 39

    a {
      display: block;
40
      margin-bottom: 10px;
41 42
    }
  }
P
Phil Hughes 已提交
43
}
44

P
Phil Hughes 已提交
45 46
.build-header {
  position: relative;
47 48 49 50
  padding: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
51

A
Annabel Dunstone Gray 已提交
52 53 54 55
  .btn-inverted {
    @include btn-outline($white-light, $blue-normal, $blue-normal, $blue-light, $white-light, $blue-light);
  }

56 57 58
  @media (max-width: $screen-sm-max) {
    padding-right: 40px;

A
Annabel Dunstone Gray 已提交
59
    .btn-inverted {
60 61 62 63 64 65
      display: none;
    }
  }

  .header-content {
    flex: 1;
66 67
  }

P
Phil Hughes 已提交
68 69
  a {
    color: $gl-gray;
70

P
Phil Hughes 已提交
71 72 73
    &:hover {
      color: $gl-link-color;
      text-decoration: none;
74 75
    }
  }
P
Phil Hughes 已提交
76 77 78 79 80 81 82 83 84 85

  code {
    color: $code-color;
  }

  .avatar {
    float: none;
    margin-right: 2px;
    margin-left: 2px;
  }
86
}
A
Annabel Dunstone 已提交
87

P
Phil Hughes 已提交
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
.build-trace {
  background: $ci-output-bg;
  color: $ci-text-color;
  white-space: pre;
  overflow-x: auto;
  font-size: 12px;

  .fa-refresh {
    font-size: 24px;
  }

  .bash {
    display: block;
  }
}

.right-sidebar.build-sidebar {
105
  padding: $gl-padding 0;
P
Phil Hughes 已提交
106 107 108 109 110

  &.right-sidebar-collapsed {
    display: none;
  }

111
  .blocks-container {
L
Luke Bennett 已提交
112
    padding: 0 $gl-padding;
113 114
  }

P
Phil Hughes 已提交
115 116 117
  .block {
    width: 100%;

118 119 120 121 122 123 124
    &.coverage {
      padding: 0 16px 11px;
    }

    .btn-group-justified {
      margin-top: 5px;
    }
125 126
  }

U
ubudzisz 已提交
127 128 129 130 131 132 133 134 135 136
  .js-build-variable {
    color: $code-color;
  }

  .js-build-value {
    padding: 2px 4px;
    color: $black;
    background-color: $white-light;
  }

P
Phil Hughes 已提交
137
  .build-sidebar-header {
138
    padding: 0 $gl-padding $gl-padding;
P
Phil Hughes 已提交
139 140 141 142 143

    .gutter-toggle {
      margin-top: 0;
    }
  }
144

145 146 147 148 149 150 151 152 153
  .retry-link {
    color: $gl-link-color;
    display: none;

    &:hover {
      text-decoration: underline;
    }

    @media (max-width: $screen-sm-max) {
154
      display: block;
155 156 157
    }
  }

158 159 160 161 162 163 164 165 166
  .stage-item {
    cursor: pointer;

    &:hover {
      color: $gl-text-color;
    }
  }

  .build-dropdown {
167
    padding: $gl-padding 0;
168 169 170 171

    .dropdown-menu-toggle {
      margin-top: 8px;
    }
172 173 174 175 176 177

    .dropdown-menu {
      right: $gl-padding;
      left: $gl-padding;
      width: auto;
    }
178 179 180 181 182 183
  }

  .builds-container {
    background-color: $white-light;
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
184
    max-height: 300px;
185
    overflow: auto;
186 187 188 189 190 191 192 193 194 195

    svg {
      position: relative;
      top: 2px;
      margin-right: 3px;
      height: 13px;
    }

    a {
      display: block;
196 197 198 199 200
      padding: $gl-padding 10px $gl-padding 40px;
      width: 270px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
201 202 203 204 205 206 207

      &:hover {
        color: $gl-text-color;
      }
    }

    .build-job {
208 209
      position: relative;

210
      .fa-arrow-right {
211 212 213 214 215 216
        position: absolute;
        left: 15px;
        top: 20px;
        display: none;
      }

217 218
      &.active {
        font-weight: bold;
219

220
        .fa-arrow-right {
221 222
          display: block;
        }
223
      }
224

225 226 227 228
      &.retried {
        background-color: $gray-lightest;
      }

229 230 231
      &:hover {
        background-color: $row-hover;
      }
232 233 234 235 236

      .fa-refresh {
        font-size: 13px;
        margin-left: 3px;
      }
237 238
    }
  }
P
Phil Hughes 已提交
239 240 241 242
}

.build-detail-row {
  margin-bottom: 5px;
243

244 245 246
  &:last-of-type {
    margin-bottom: 0;
  }
P
Phil Hughes 已提交
247 248 249 250 251 252 253 254 255 256 257 258
}

.build-light-text {
  color: $gl-placeholder-color;
}

.build-gutter-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -17px;
}
259 260 261 262 263 264

@media (min-width: $screen-md-min) {
  .sub-nav.build {
    width: calc(100% + #{$gutter_width});
  }
}