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

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

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

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

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

F
Filipa Lacerda 已提交
32 33 34 35 36 37
@keyframes blinking-scroll-button {
  0% { opacity: 0.2; }
  25% { opacity: 0.5; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}
38

F
Filipa Lacerda 已提交
39
.build-page {
40 41
  .build-trace-container {
    position: relative;
42
  }
43

44
  .build-trace {
F
Filipa Lacerda 已提交
45 46
    background: $black;
    color: $gray-darkest;
47 48
    white-space: pre;
    overflow-x: auto;
F
Filipa Lacerda 已提交
49
    font-size: 12px;
50 51
    border-radius: 0;
    border: none;
52

53 54
    .bash {
      display: block;
55
    }
56
  }
57

58 59 60 61 62 63 64 65 66
  .top-bar {
    height: 35px;
    display: flex;
    justify-content: flex-end;
    background: $gray-light;
    border: 1px solid $border-color;
    color: $gl-text-color;
    position: sticky;
    position: -webkit-sticky;
67
    top: $new-navbar-height;
68 69

    &.affix {
70
      top: $new-navbar-height;
71 72
    }

73 74 75 76
    // with sidebar
    &.affix.sidebar-expanded {
      right: 306px;
      left: 16px;
77 78
    }

79 80 81 82 83
    // without sidebar
    &.affix.sidebar-collapsed {
      right: 16px;
      left: 16px;
    }
F
Filipa Lacerda 已提交
84

85 86 87 88
    &.affix-top {
      position: absolute;
      right: 0;
      left: 0;
89
      top: 0;
90
    }
F
Filipa Lacerda 已提交
91

92 93 94
    .truncated-info {
      margin: 0 auto;
      align-self: center;
F
Filipa Lacerda 已提交
95

96 97 98 99 100 101 102 103
      .truncated-info-size {
        margin: 0 5px;
      }

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

F
Filipa Lacerda 已提交
107 108 109
    .controllers {
      display: flex;
      font-size: 15px;
110 111
      justify-content: center;
      align-items: center;
P
Phil Hughes 已提交
112

F
Filipa Lacerda 已提交
113 114 115
      svg {
        height: 15px;
        display: block;
116
        fill: $gl-text-color;
F
Filipa Lacerda 已提交
117
      }
K
Kushal Pandya 已提交
118

119
      .controllers-buttons {
120 121
        color: $gl-text-color;
        margin: 0 10px;
F
Filipa Lacerda 已提交
122
      }
123

F
Filipa Lacerda 已提交
124 125 126 127 128
      .btn-scroll.animate {
        .first-triangle {
          animation: blinking-scroll-button 1s ease infinite;
          animation-delay: .3s;
        }
129

F
Filipa Lacerda 已提交
130 131 132 133
        .second-triangle {
          animation: blinking-scroll-button 1s ease infinite;
          animation-delay: .2s;
        }
K
Kushal Pandya 已提交
134

F
Filipa Lacerda 已提交
135 136 137
        .third-triangle {
          animation: blinking-scroll-button 1s ease infinite;
        }
K
Kushal Pandya 已提交
138

F
Filipa Lacerda 已提交
139 140 141 142
        &:disabled {
          opacity: 1;
        }
      }
K
Kushal Pandya 已提交
143

F
Filipa Lacerda 已提交
144 145 146 147
      .btn-scroll:disabled {
        opacity: 0.35;
        cursor: not-allowed;
      }
148 149
    }
  }
150

F
Filipa Lacerda 已提交
151 152
  .environment-information {
    border: 1px solid $border-color;
153
    padding: 8px $gl-padding 12px;
F
Filipa Lacerda 已提交
154
    border-radius: $border-radius-default;
155

F
Filipa Lacerda 已提交
156 157
    svg {
      position: relative;
158
      top: 5px;
F
Filipa Lacerda 已提交
159
      margin-right: 5px;
160 161
      width: 22px;
      height: 22px;
162
    }
163
  }
F
Filipa Lacerda 已提交
164 165 166 167 168 169 170 171 172

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

175 176
.with-performance-bar .build-page {
  .top-bar {
177
    top: $new-navbar-height + $performance-bar-height;
178 179

    &.affix {
180
      top: $new-navbar-height + $performance-bar-height;
181 182 183 184
    }
  }
}

185 186 187 188
.build-header {
  .ci-header-container,
  .header-action-buttons {
    display: flex;
189
  }
190

191 192
  .ci-header-container {
    min-height: 54px;
193
  }
194

195 196
  .page-content-header {
    padding: 10px 0 9px;
197
  }
198

199 200 201 202 203 204 205
  .header-action-buttons {
    @media (max-width: $screen-xs-max) {
      .sidebar-toggle-btn {
        margin-top: 0;
        margin-left: 10px;
        max-height: 34px;
      }
206 207 208 209
    }
  }

  .header-content {
210
    a {
T
tauriedavis 已提交
211
      color: $gl-text-color;
212

213 214 215 216
      &:hover {
        color: $gl-link-color;
        text-decoration: none;
      }
217 218
    }
  }
P
Phil Hughes 已提交
219 220 221 222 223 224 225 226 227 228

  code {
    color: $code-color;
  }

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

P
Phil Hughes 已提交
231
.right-sidebar.build-sidebar {
232
  padding: 0;
P
Phil Hughes 已提交
233 234 235 236 237

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

238 239 240 241 242 243 244 245 246
  .sidebar-container {
    width: calc(100% + 100px);
    padding-right: 100px;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

247
  .blocks-container {
L
Luke Bennett 已提交
248
    padding: 0 $gl-padding;
M
Mike Greiling 已提交
249
    width: 289px;
250 251
  }

P
Phil Hughes 已提交
252 253 254
  .block {
    width: 100%;

255 256 257 258
    &:last-child {
      border-bottom: 1px solid $border-gray-normal;
    }

259 260 261 262 263 264 265
    &.coverage {
      padding: 0 16px 11px;
    }

    .btn-group-justified {
      margin-top: 5px;
    }
266 267
  }

F
Filipa Lacerda 已提交
268 269 270 271
  .block-last {
    padding: 16px 0;
  }

272 273 274 275 276 277 278
  .trigger-build-variables {
    margin: 0;
    overflow-x: auto;
    -ms-overflow-style: scrollbar;
    -webkit-overflow-scrolling: touch;
  }

279
  .trigger-build-variable {
280
    font-weight: $gl-font-weight-normal;
U
ubudzisz 已提交
281 282 283
    color: $code-color;
  }

284
  .trigger-build-value {
U
ubudzisz 已提交
285 286 287 288 289
    padding: 2px 4px;
    color: $black;
    background-color: $white-light;
  }

290 291
  .label {
    margin-left: 2px;
P
Phil Hughes 已提交
292
  }
293

294 295 296
  .retry-link {
    display: none;

297 298 299 300 301 302
    .btn-inverted-secondary {
      color: $blue-500;

      &:hover {
        color: $white-light;
      }
303 304 305
    }

    @media (max-width: $screen-sm-max) {
306
      display: block;
307 308 309 310 311 312

      .btn {
        i {
          margin-left: 5px;
        }
      }
313 314 315
    }
  }

316 317 318 319 320 321 322 323 324
  .stage-item {
    cursor: pointer;

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

  .build-dropdown {
W
winh 已提交
325
    @include new-style-dropdown;
326

W
winh 已提交
327 328
    margin: $gl-padding 0;
    padding: 0;
329

W
winh 已提交
330 331
    .dropdown-menu-toggle {
      margin-top: #{$gl-padding / 2};
332
    }
333 334 335 336 337 338

    svg {
      position: relative;
      top: 2px;
      margin-right: 3px;
    }
339 340 341 342 343 344
  }

  .builds-container {
    background-color: $white-light;
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
345
    max-height: 300px;
M
Mike Greiling 已提交
346
    width: 289px;
347
    overflow: auto;
348 349 350 351 352 353 354 355 356 357

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

    a {
      display: block;
358 359 360 361 362
      padding: $gl-padding 10px $gl-padding 40px;
      width: 270px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
363 364 365 366 367 368 369

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

    .build-job {
370 371
      position: relative;

372
      .fa-arrow-right {
373 374 375 376 377 378
        position: absolute;
        left: 15px;
        top: 20px;
        display: none;
      }

379
      &.active {
380
        font-weight: $gl-font-weight-bold;
381

382
        .fa-arrow-right {
383 384
          display: block;
        }
385
      }
386

387 388 389 390
      &.retried {
        background-color: $gray-lightest;
      }

391 392 393
      &:hover {
        background-color: $row-hover;
      }
394

395
      .fa-refresh {
396 397 398
        font-size: 13px;
        margin-left: 3px;
      }
399 400
    }
  }
401 402 403 404

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

407 408 409 410
.build-sidebar {
  .container-fluid.container-limited {
    max-width: 100%;
  }
K
kushalpandya 已提交
411 412 413 414

  .content-wrapper {
    padding-bottom: 6px;
  }
415 416
}

P
Phil Hughes 已提交
417 418
.build-detail-row {
  margin-bottom: 5px;
419

420 421 422
  &:last-of-type {
    margin-bottom: 0;
  }
P
Phil Hughes 已提交
423 424 425
}

.build-light-text {
T
tauriedavis 已提交
426
  color: $gl-text-color-secondary;
427
  word-wrap: break-word;
P
Phil Hughes 已提交
428 429 430 431 432 433 434 435
}

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