builds.scss 7.2 KB
Newer Older
1
@keyframes fade-out-status {
2 3 4 5 6 7 8 9
  0%,
  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
10 11
}

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

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

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

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

F
Filipa Lacerda 已提交
38
@keyframes blinking-scroll-button {
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
  0% {
    opacity: 0.2;
  }

  25% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
F
Filipa Lacerda 已提交
54
}
55

F
Filipa Lacerda 已提交
56
.build-page {
57 58
  .build-trace-container {
    position: relative;
59
  }
60

61
  .build-trace {
F
Filipa Lacerda 已提交
62 63
    background: $black;
    color: $gray-darkest;
64 65
    white-space: pre;
    overflow-x: auto;
F
Filipa Lacerda 已提交
66
    font-size: 12px;
67
    border-radius: 0;
68
    border: 0;
F
Filipa Lacerda 已提交
69
    padding: $grid-size;
70

71 72
    .bash {
      display: block;
73
    }
74
  }
75

76 77
  .top-bar {
    height: 35px;
P
Phil Hughes 已提交
78
    min-height: 35px;
79 80 81 82 83
    background: $gray-light;
    border: 1px solid $border-color;
    color: $gl-text-color;
    position: sticky;
    position: -webkit-sticky;
84
    top: $header-height;
F
Filipa Lacerda 已提交
85
    padding: $grid-size;
86 87

    &.affix {
88
      top: $header-height;
89

90 91 92 93 94
      // with sidebar
      &.sidebar-expanded {
        right: 306px;
        left: 16px;
      }
95

96 97 98 99 100
      // without sidebar
      &.sidebar-collapsed {
        right: 16px;
        left: 16px;
      }
101
    }
F
Filipa Lacerda 已提交
102

103 104 105 106
    &.affix-top {
      position: absolute;
      right: 0;
      left: 0;
107
      top: 0;
108
    }
F
Filipa Lacerda 已提交
109

110 111 112 113 114 115 116 117 118
    .truncated-info {
      .truncated-info-size {
        margin: 0 5px;
      }

      .raw-link {
        color: $gl-text-color;
        margin-left: 5px;
        text-decoration: underline;
F
Filipa Lacerda 已提交
119
      }
120
    }
P
Phil Hughes 已提交
121

F
Filipa Lacerda 已提交
122 123 124
    .controllers {
      display: flex;
      font-size: 15px;
125 126
      justify-content: center;
      align-items: center;
P
Phil Hughes 已提交
127

F
Filipa Lacerda 已提交
128 129 130
      svg {
        height: 15px;
        display: block;
131
        fill: $gl-text-color;
F
Filipa Lacerda 已提交
132
      }
K
Kushal Pandya 已提交
133

134
      .controllers-buttons {
135
        color: $gl-text-color;
F
Filipa Lacerda 已提交
136 137 138 139 140
        margin: 0 $grid-size;

        &:last-child {
          margin-right: 0;
        }
F
Filipa Lacerda 已提交
141
      }
142

F
Filipa Lacerda 已提交
143 144 145
      .btn-scroll.animate {
        .first-triangle {
          animation: blinking-scroll-button 1s ease infinite;
146
          animation-delay: 0.3s;
F
Filipa Lacerda 已提交
147
        }
148

F
Filipa Lacerda 已提交
149 150
        .second-triangle {
          animation: blinking-scroll-button 1s ease infinite;
151
          animation-delay: 0.2s;
F
Filipa Lacerda 已提交
152
        }
K
Kushal Pandya 已提交
153

F
Filipa Lacerda 已提交
154 155 156
        .third-triangle {
          animation: blinking-scroll-button 1s ease infinite;
        }
K
Kushal Pandya 已提交
157

F
Filipa Lacerda 已提交
158 159 160 161
        &:disabled {
          opacity: 1;
        }
      }
K
Kushal Pandya 已提交
162

F
Filipa Lacerda 已提交
163 164 165 166
      .btn-scroll:disabled {
        opacity: 0.35;
        cursor: not-allowed;
      }
167 168
    }
  }
169

F
Filipa Lacerda 已提交
170 171
  .environment-information {
    border: 1px solid $border-color;
172
    padding: 8px $gl-padding 12px;
F
Filipa Lacerda 已提交
173
    border-radius: $border-radius-default;
174

F
Filipa Lacerda 已提交
175 176
    svg {
      position: relative;
177
      top: 5px;
F
Filipa Lacerda 已提交
178
      margin-right: 5px;
179 180
      width: 22px;
      height: 22px;
181
    }
182
  }
F
Filipa Lacerda 已提交
183 184 185 186 187 188 189 190 191

  .build-loader-animation {
    position: relative;
    width: 6px;
    height: 6px;
    margin: auto auto 12px 2px;
    border-radius: 50%;
    animation: blinking-dots 1s linear infinite;
  }
192
}
P
Phil Hughes 已提交
193

194 195
.with-performance-bar .build-page {
  .top-bar {
196
    top: $header-height + $performance-bar-height;
197 198

    &.affix {
199
      top: $header-height + $performance-bar-height;
200 201 202 203
    }
  }
}

204 205 206 207
.build-header {
  .ci-header-container,
  .header-action-buttons {
    display: flex;
208
  }
209

210 211
  .ci-header-container {
    min-height: 54px;
212
  }
213

214 215
  .page-content-header {
    padding: 10px 0 9px;
216
  }
217

218
  .header-action-buttons {
C
Clement Ho 已提交
219
    @include media-breakpoint-down(xs) {
220 221 222 223 224
      .sidebar-toggle-btn {
        margin-top: 0;
        margin-left: 10px;
        max-height: 34px;
      }
225 226 227 228
    }
  }

  .header-content {
229
    a {
T
tauriedavis 已提交
230
      color: $gl-text-color;
231

232 233 234 235
      &:hover {
        color: $gl-link-color;
        text-decoration: none;
      }
236 237
    }
  }
P
Phil Hughes 已提交
238 239 240 241 242 243 244 245 246 247

  code {
    color: $code-color;
  }

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

P
Phil Hughes 已提交
250
.right-sidebar.build-sidebar {
251
  padding: 0;
P
Phil Hughes 已提交
252 253 254 255 256

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

257 258 259 260 261 262 263 264 265
  .sidebar-container {
    width: calc(100% + 100px);
    padding-right: 100px;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

266
  .blocks-container {
L
Luke Bennett 已提交
267
    padding: 0 $gl-padding;
M
Mike Greiling 已提交
268
    width: 289px;
269 270
  }

P
Phil Hughes 已提交
271 272 273
  .block {
    width: 100%;

274 275 276 277
    &:last-child {
      border-bottom: 1px solid $border-gray-normal;
    }

278 279 280
    &.coverage {
      padding: 0 16px 11px;
    }
281 282
  }

F
Filipa Lacerda 已提交
283 284 285 286
  .block-last {
    padding: 16px 0;
  }

287 288 289 290 291 292 293
  .trigger-build-variables {
    margin: 0;
    overflow-x: auto;
    -ms-overflow-style: scrollbar;
    -webkit-overflow-scrolling: touch;
  }

294
  .trigger-build-variable {
295
    font-weight: $gl-font-weight-normal;
U
ubudzisz 已提交
296 297 298
    color: $code-color;
  }

299
  .trigger-build-value {
U
ubudzisz 已提交
300 301 302 303 304
    padding: 2px 4px;
    color: $black;
    background-color: $white-light;
  }

C
Clement Ho 已提交
305
  .badge.badge-pill {
306
    margin-left: 2px;
P
Phil Hughes 已提交
307
  }
308

309 310 311
  .retry-link {
    display: none;

312 313 314 315 316 317
    .btn-inverted-secondary {
      color: $blue-500;

      &:hover {
        color: $white-light;
      }
318 319
    }

C
Clement Ho 已提交
320
    @include media-breakpoint-down(sm) {
321
      display: block;
322 323 324 325 326 327

      .btn {
        i {
          margin-left: 5px;
        }
      }
328 329 330
    }
  }

331 332 333 334 335 336 337 338 339
  .stage-item {
    cursor: pointer;

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

  .build-dropdown {
W
winh 已提交
340 341
    margin: $gl-padding 0;
    padding: 0;
342

W
winh 已提交
343 344
    .dropdown-menu-toggle {
      margin-top: #{$gl-padding / 2};
345
    }
346 347 348

    svg {
      position: relative;
T
Tim Zallmann 已提交
349
      top: 3px;
350
      margin-right: 3px;
T
Tim Zallmann 已提交
351 352
      width: 14px;
      height: 14px;
353
    }
354 355 356 357 358 359
  }

  .builds-container {
    background-color: $white-light;
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
360
    max-height: 300px;
M
Mike Greiling 已提交
361
    width: 289px;
362
    overflow: auto;
363 364 365

    svg {
      position: relative;
T
Tim Zallmann 已提交
366
      top: 3px;
367
      margin-right: 3px;
T
Tim Zallmann 已提交
368 369
      height: 14px;
      width: 14px;
370 371 372 373
    }

    a {
      display: block;
374 375 376 377 378
      padding: $gl-padding 10px $gl-padding 40px;
      width: 270px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
379 380 381 382 383 384 385

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

    .build-job {
386 387
      position: relative;

T
Tim Zallmann 已提交
388
      .icon-arrow-right {
389 390 391 392 393 394
        position: absolute;
        left: 15px;
        top: 20px;
        display: none;
      }

395
      &.active {
396
        font-weight: $gl-font-weight-bold;
397

T
Tim Zallmann 已提交
398
        .icon-arrow-right {
399 400
          display: block;
        }
401
      }
402

403 404 405 406
      &.retried {
        background-color: $gray-lightest;
      }

407
      &:hover {
408
        background-color: $dropdown-item-hover-bg;
409
      }
410

T
Tim Zallmann 已提交
411
      .icon-retry {
412 413
        margin-left: 3px;
      }
414 415
    }
  }
416 417 418 419

  .link-commit {
    color: $blue-600;
  }
P
Phil Hughes 已提交
420 421
}

422 423 424 425
.build-sidebar {
  .container-fluid.container-limited {
    max-width: 100%;
  }
K
kushalpandya 已提交
426 427 428 429

  .content-wrapper {
    padding-bottom: 6px;
  }
430 431
}

P
Phil Hughes 已提交
432 433
.build-detail-row {
  margin-bottom: 5px;
434

435 436 437
  &:last-of-type {
    margin-bottom: 0;
  }
P
Phil Hughes 已提交
438 439 440
}

.build-light-text {
T
tauriedavis 已提交
441
  color: $gl-text-color-secondary;
442
  word-wrap: break-word;
P
Phil Hughes 已提交
443 444 445 446 447 448 449 450
}

.build-gutter-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -17px;
}