builds.scss 6.0 KB
Newer Older
1 2 3 4 5
@keyframes fade-out-status {
  0%, 50% { opacity: 1; }
  100% { opacity: 0; }
}

6 7 8 9 10 11 12 13 14 15 16 17 18
@keyframes blinking-dots {
  0% {
    background-color: rgba($white-light, 1);
    box-shadow: 12px 0 0 0 rgba($white-light,0.2),
                24px 0 0 0 rgba($white-light,0.2);
  }

  25% {
    background-color: rgba($white-light, 0.4);
    box-shadow: 12px 0 0 0 rgba($white-light,2),
                24px 0 0 0 rgba($white-light,0.2);
  }

K
Kushal Pandya 已提交
19
  75% {
20 21 22 23 24 25 26 27 28 29 30 31
    background-color: rgba($white-light, 0.4);
    box-shadow: 12px 0 0 0 rgba($white-light,0.2),
                24px 0 0 0 rgba($white-light,1);
  }

  100% {
    background-color: rgba($white-light, 1);
    box-shadow: 12px 0 0 0 rgba($white-light,0.2),
                24px 0 0 0 rgba($white-light,0.2);
  }
}

32
.build-page {
33
  pre.trace {
S
Sam Rose 已提交
34 35
    background: $builds-trace-bg;
    color: $white-light;
36
    font-family: $monospace_font;
37
    white-space: pre-wrap;
38 39 40 41 42 43 44 45 46 47
    overflow: auto;
    overflow-y: hidden;
    font-size: 12px;

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

48 49 50 51 52
  .environment-information {
    background-color: $gray-light;
    border: 1px solid $border-color;
    padding: 12px $gl-padding;
    border-radius: $border-radius-default;
53

54 55 56 57
    svg {
      position: relative;
      top: 1px;
      margin-right: 5px;
P
Phil Hughes 已提交
58
    }
59 60
  }
}
P
Phil Hughes 已提交
61

62 63
.scroll-controls {
  height: 100%;
P
Phil Hughes 已提交
64

65 66 67 68
  .scroll-step {
    width: 31px;
    margin: 0 0 0 auto;
  }
K
Kushal Pandya 已提交
69

K
Kushal Pandya 已提交
70
  .scroll-link,
71 72 73 74 75 76
  .autoscroll-container {
    right: 25px;
    z-index: 1;
  }

  .scroll-link {
K
Kushal Pandya 已提交
77
    position: fixed;
78 79 80
    display: block;
    margin-bottom: 10px;

K
Kushal Pandya 已提交
81 82 83 84 85 86
    &.scroll-top .gitlab-icon-scroll-up-hover,
    &.scroll-top:hover .gitlab-icon-scroll-up,
    &.scroll-bottom .gitlab-icon-scroll-down-hover,
    &.scroll-bottom:hover .gitlab-icon-scroll-down {
      display: none;
    }
K
Kushal Pandya 已提交
87

K
Kushal Pandya 已提交
88 89 90 91
    &.scroll-top:hover .gitlab-icon-scroll-up-hover,
    &.scroll-bottom:hover .gitlab-icon-scroll-down-hover {
      display: inline-block;
    }
K
Kushal Pandya 已提交
92

K
Kushal Pandya 已提交
93 94
    &.scroll-top {
      top: 110px;
95
    }
K
Kushal Pandya 已提交
96

97
    &.scroll-bottom {
K
Kushal Pandya 已提交
98
      bottom: -2px;
99 100
    }
  }
101

102 103 104 105 106 107
  .autoscroll-container {
    position: absolute;
  }

  &.sidebar-expanded {

K
Kushal Pandya 已提交
108
    .scroll-link,
109
    .autoscroll-container {
110
      right: ($gutter_width + ($gl-padding * 2));
111
    }
112 113
  }
}
P
Phil Hughes 已提交
114

115 116 117
.status-message {
  display: inline-block;
  color: $white-light;
118

119 120 121 122
  .status-icon {
    display: inline-block;
    width: 16px;
    height: 33px;
123
  }
124

125 126 127 128 129 130 131
  .status-text {
    float: left;
    opacity: 0;
    margin-right: 10px;
    font-weight: normal;
    line-height: 1.8;
    transition: opacity 1s ease-out;
132

133 134
    &.animate {
      animation: fade-out-status 2s ease;
135
    }
136
  }
137 138 139 140

  &:hover .status-text {
    opacity: 1;
  }
P
Phil Hughes 已提交
141
}
142

P
Phil Hughes 已提交
143 144
.build-header {
  position: relative;
145 146 147 148
  padding: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
149

150 151
  @media (max-width: $screen-sm-max) {
    padding-right: 40px;
152
    margin-top: 6px;
153

A
Annabel Dunstone Gray 已提交
154
    .btn-inverted {
155 156 157 158 159 160
      display: none;
    }
  }

  .header-content {
    flex: 1;
161

162 163
    a {
      color: $gl-gray;
164

165 166 167 168
      &:hover {
        color: $gl-link-color;
        text-decoration: none;
      }
169 170
    }
  }
P
Phil Hughes 已提交
171 172 173 174 175 176 177 178 179 180

  code {
    color: $code-color;
  }

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

P
Phil Hughes 已提交
183
.build-trace {
184
  background: $black;
A
Annabel Dunstone Gray 已提交
185
  color: $gray-darkest;
P
Phil Hughes 已提交
186 187 188 189 190 191 192 193 194 195 196
  white-space: pre;
  overflow-x: auto;
  font-size: 12px;

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

  .bash {
    display: block;
  }
197

198 199 200 201
  .build-loader-animation {
    position: relative;
    width: 6px;
    height: 6px;
K
Kushal Pandya 已提交
202
    margin: auto auto 12px 2px;
203 204
    border-radius: 50%;
    animation: blinking-dots 1s linear infinite;
205
  }
P
Phil Hughes 已提交
206 207 208
}

.right-sidebar.build-sidebar {
209
  padding: $gl-padding 0;
P
Phil Hughes 已提交
210 211 212 213 214

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

215
  .blocks-container {
L
Luke Bennett 已提交
216
    padding: 0 $gl-padding;
217 218
  }

P
Phil Hughes 已提交
219 220 221
  .block {
    width: 100%;

222 223 224 225 226 227 228
    &.coverage {
      padding: 0 16px 11px;
    }

    .btn-group-justified {
      margin-top: 5px;
    }
229 230
  }

U
ubudzisz 已提交
231 232 233 234 235 236 237 238 239 240
  .js-build-variable {
    color: $code-color;
  }

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

P
Phil Hughes 已提交
241
  .build-sidebar-header {
242
    padding: 0 $gl-padding $gl-padding;
P
Phil Hughes 已提交
243 244 245 246 247

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

249 250 251 252 253 254 255 256 257
  .retry-link {
    color: $gl-link-color;
    display: none;

    &:hover {
      text-decoration: underline;
    }

    @media (max-width: $screen-sm-max) {
258
      display: block;
259 260 261
    }
  }

262 263 264 265 266 267 268 269 270
  .stage-item {
    cursor: pointer;

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

  .build-dropdown {
271
    padding: $gl-padding 0;
272 273 274 275

    .dropdown-menu-toggle {
      margin-top: 8px;
    }
276 277 278 279 280 281

    .dropdown-menu {
      right: $gl-padding;
      left: $gl-padding;
      width: auto;
    }
282 283 284 285 286 287
  }

  .builds-container {
    background-color: $white-light;
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
288
    max-height: 300px;
289
    overflow: auto;
290 291 292 293 294 295 296 297 298 299

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

    a {
      display: block;
300 301 302 303 304
      padding: $gl-padding 10px $gl-padding 40px;
      width: 270px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
305 306 307 308 309 310 311

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

    .build-job {
312 313
      position: relative;

314
      .fa-arrow-right {
315 316 317 318 319 320
        position: absolute;
        left: 15px;
        top: 20px;
        display: none;
      }

321 322
      &.active {
        font-weight: bold;
323

324
        .fa-arrow-right {
325 326
          display: block;
        }
327
      }
328

329 330 331 332
      &.retried {
        background-color: $gray-lightest;
      }

333 334 335
      &:hover {
        background-color: $row-hover;
      }
336 337 338 339 340

      .fa-refresh {
        font-size: 13px;
        margin-left: 3px;
      }
341 342
    }
  }
P
Phil Hughes 已提交
343 344
}

345 346 347 348 349 350
.build-sidebar {
  .container-fluid.container-limited {
    max-width: 100%;
  }
}

P
Phil Hughes 已提交
351 352
.build-detail-row {
  margin-bottom: 5px;
353

354 355 356
  &:last-of-type {
    margin-bottom: 0;
  }
P
Phil Hughes 已提交
357 358 359
}

.build-light-text {
360
  color: $gl-gray-light;
P
Phil Hughes 已提交
361 362 363 364 365 366 367 368
}

.build-gutter-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -17px;
}
369 370 371 372 373 374

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