builds.scss 6.4 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
@keyframes blinking-dot {
13
  0% {
14
    opacity: 1;
15 16 17
  }

  25% {
18
    opacity: 0.4;
19 20
  }

K
Kushal Pandya 已提交
21
  75% {
22
    opacity: 0.4;
23 24 25
  }

  100% {
26
    opacity: 1;
27 28 29
  }
}

F
Filipa Lacerda 已提交
30
@keyframes blinking-scroll-button {
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
  0% {
    opacity: 0.2;
  }

  25% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
F
Filipa Lacerda 已提交
46
}
47

F
Filipa Lacerda 已提交
48
.build-page {
49 50
  .build-trace-container {
    position: relative;
51
  }
52

53
  .build-trace {
F
Filipa Lacerda 已提交
54 55
    background: $black;
    color: $gray-darkest;
56 57
    white-space: pre;
    overflow-x: auto;
F
Filipa Lacerda 已提交
58
    font-size: 12px;
59
    border-radius: 0;
60
    border: 0;
F
Filipa Lacerda 已提交
61
    padding: $grid-size;
62

63 64
    .bash {
      display: block;
65
    }
66 67 68 69

    &.build-trace-rounded {
      border-radius: $border-radius-base;
    }
70
  }
71

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

    &.affix {
84
      top: $header-height;
85

86 87 88 89 90
      // with sidebar
      &.sidebar-expanded {
        right: 306px;
        left: 16px;
      }
91

92 93 94 95 96
      // without sidebar
      &.sidebar-collapsed {
        right: 16px;
        left: 16px;
      }
97
    }
F
Filipa Lacerda 已提交
98

99 100 101 102
    &.affix-top {
      position: absolute;
      right: 0;
      left: 0;
103
      top: 0;
104
    }
F
Filipa Lacerda 已提交
105

106 107 108 109 110 111 112 113 114
    .truncated-info {
      .truncated-info-size {
        margin: 0 5px;
      }

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

F
Filipa Lacerda 已提交
118 119 120
    .controllers {
      display: flex;
      font-size: 15px;
121 122
      justify-content: center;
      align-items: center;
P
Phil Hughes 已提交
123

F
Filipa Lacerda 已提交
124 125 126
      svg {
        height: 15px;
        display: block;
127
        fill: $gl-text-color;
F
Filipa Lacerda 已提交
128
      }
K
Kushal Pandya 已提交
129

130
      .controllers-buttons {
131
        color: $gl-text-color;
F
Filipa Lacerda 已提交
132 133 134 135 136
        margin: 0 $grid-size;

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

F
Filipa Lacerda 已提交
139 140 141
      .btn-scroll.animate {
        .first-triangle {
          animation: blinking-scroll-button 1s ease infinite;
142
          animation-delay: 0.3s;
F
Filipa Lacerda 已提交
143
        }
144

F
Filipa Lacerda 已提交
145 146
        .second-triangle {
          animation: blinking-scroll-button 1s ease infinite;
147
          animation-delay: 0.2s;
F
Filipa Lacerda 已提交
148
        }
K
Kushal Pandya 已提交
149

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

F
Filipa Lacerda 已提交
154 155 156 157
        &:disabled {
          opacity: 1;
        }
      }
K
Kushal Pandya 已提交
158

F
Filipa Lacerda 已提交
159 160 161 162
      .btn-scroll:disabled {
        opacity: 0.35;
        cursor: not-allowed;
      }
163 164
    }
  }
165

F
Filipa Lacerda 已提交
166 167
  .environment-information {
    border: 1px solid $border-color;
168
    padding: 8px $gl-padding 12px;
F
Filipa Lacerda 已提交
169
    border-radius: $border-radius-default;
170

F
Filipa Lacerda 已提交
171 172
    svg {
      position: relative;
173
      top: 5px;
F
Filipa Lacerda 已提交
174
      margin-right: 5px;
175 176
      width: 22px;
      height: 22px;
177
    }
178
  }
F
Filipa Lacerda 已提交
179 180

  .build-loader-animation {
181
    @include build-loader-animation;
F
Filipa Lacerda 已提交
182
  }
183
}
P
Phil Hughes 已提交
184

185 186
.with-performance-bar .build-page {
  .top-bar {
187
    top: $header-height + $performance-bar-height;
188 189

    &.affix {
190
      top: $header-height + $performance-bar-height;
191 192 193 194
    }
  }
}

195 196 197 198
.build-header {
  .ci-header-container,
  .header-action-buttons {
    display: flex;
199
  }
200

201 202
  .ci-header-container {
    min-height: 54px;
203
  }
204

205 206
  .page-content-header {
    padding: 10px 0 9px;
207
  }
208

209
  .header-action-buttons {
C
Clement Ho 已提交
210
    @include media-breakpoint-down(xs) {
211 212 213 214 215
      .sidebar-toggle-btn {
        margin-top: 0;
        margin-left: 10px;
        max-height: 34px;
      }
216 217 218 219
    }
  }

  .header-content {
220
    a {
T
tauriedavis 已提交
221
      color: $gl-text-color;
222

223
      &:hover {
A
Annabel Gray 已提交
224
        color: $blue-600;
225 226
        text-decoration: none;
      }
227 228
    }
  }
P
Phil Hughes 已提交
229 230 231 232 233 234 235 236 237 238

  code {
    color: $code-color;
  }

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

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

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

248 249 250 251 252 253 254 255 256
  .sidebar-container {
    width: calc(100% + 100px);
    padding-right: 100px;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

257
  .blocks-container {
L
Luke Bennett 已提交
258
    padding: 0 $gl-padding;
M
Mike Greiling 已提交
259
    width: 289px;
260 261
  }

P
Phil Hughes 已提交
262 263
  .block {
    width: 100%;
264
    word-break: break-word;
P
Phil Hughes 已提交
265

266 267 268 269
    &:last-child {
      border-bottom: 1px solid $border-gray-normal;
    }

270 271 272
    &.coverage {
      padding: 0 16px 11px;
    }
273 274
  }

F
Filipa Lacerda 已提交
275 276 277 278
  .block-last {
    padding: 16px 0;
  }

279 280 281 282 283 284 285
  .trigger-build-variables {
    margin: 0;
    overflow-x: auto;
    -ms-overflow-style: scrollbar;
    -webkit-overflow-scrolling: touch;
  }

286
  .trigger-build-variable {
287
    font-weight: $gl-font-weight-normal;
U
ubudzisz 已提交
288 289 290
    color: $code-color;
  }

291
  .trigger-build-value {
U
ubudzisz 已提交
292 293 294 295 296
    padding: 2px 4px;
    color: $black;
    background-color: $white-light;
  }

C
Clement Ho 已提交
297
  .badge.badge-pill {
298
    margin-left: 2px;
P
Phil Hughes 已提交
299
  }
300

301 302 303
  .retry-link {
    display: none;

304 305 306 307 308 309
    .btn-inverted-secondary {
      color: $blue-500;

      &:hover {
        color: $white-light;
      }
310 311
    }

C
Clement Ho 已提交
312
    @include media-breakpoint-down(sm) {
313
      display: block;
314 315 316 317 318 319

      .btn {
        i {
          margin-left: 5px;
        }
      }
320 321 322
    }
  }

323 324 325 326 327 328 329 330 331 332 333 334
  .stage-item {
    cursor: pointer;

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

  .builds-container {
    background-color: $white-light;
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
335
    max-height: 300px;
M
Mike Greiling 已提交
336
    width: 289px;
337
    overflow: auto;
338 339 340

    svg {
      position: relative;
T
Tim Zallmann 已提交
341
      top: 3px;
342
      margin-right: 3px;
T
Tim Zallmann 已提交
343 344
      height: 14px;
      width: 14px;
345 346 347 348
    }

    a {
      display: block;
349 350 351 352 353
      padding: $gl-padding 10px $gl-padding 40px;
      width: 270px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
354 355 356 357 358 359 360

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

    .build-job {
361 362
      position: relative;

T
Tim Zallmann 已提交
363
      .icon-arrow-right {
364 365 366
        position: absolute;
        left: 15px;
        top: 20px;
367
        display: block;
368 369
      }

370
      &.active {
371
        font-weight: $gl-font-weight-bold;
372
      }
373

374 375 376 377
      &.retried {
        background-color: $gray-lightest;
      }

378
      &:hover {
379
        background-color: $gray-darker;
380
      }
381

T
Tim Zallmann 已提交
382
      .icon-retry {
383 384
        margin-left: 3px;
      }
385 386
    }
  }
387 388 389 390

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

393 394 395 396
.build-sidebar {
  .container-fluid.container-limited {
    max-width: 100%;
  }
K
kushalpandya 已提交
397 398 399 400

  .content-wrapper {
    padding-bottom: 6px;
  }
401 402
}

P
Phil Hughes 已提交
403 404
.build-detail-row {
  margin-bottom: 5px;
405

406 407 408
  &:last-of-type {
    margin-bottom: 0;
  }
P
Phil Hughes 已提交
409 410 411
}

.build-light-text {
T
tauriedavis 已提交
412
  color: $gl-text-color-secondary;
413
  word-wrap: break-word;
P
Phil Hughes 已提交
414 415 416 417 418 419 420 421
}

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