builds.scss 6.57 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);
  }

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);
  }
}

Filipa Lacerda's avatar
Filipa Lacerda committed
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

Filipa Lacerda's avatar
Filipa Lacerda committed
39
.build-page {
40 41
  .build-trace-container {
    position: relative;
42
  }
43

44
  .build-trace {
Filipa Lacerda's avatar
Filipa Lacerda committed
45 46
    background: $black;
    color: $gray-darkest;
47 48
    white-space: pre;
    overflow-x: auto;
Filipa Lacerda's avatar
Filipa Lacerda committed
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 67 68 69 70
  .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;
    top: 50px;

    &.affix {
      top: 50px;
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;
    }
Filipa Lacerda's avatar
Filipa Lacerda committed
84

85 86 87 88 89
    &.affix-top {
      position: absolute;
      right: 0;
      left: 0;
    }
Filipa Lacerda's avatar
Filipa Lacerda committed
90

91 92 93
    .truncated-info {
      margin: 0 auto;
      align-self: center;
Filipa Lacerda's avatar
Filipa Lacerda committed
94

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

      .raw-link {
        color: $gl-text-color;
        margin-left: 5px;
        text-decoration: underline;
Filipa Lacerda's avatar
Filipa Lacerda committed
103
      }
104
    }
105

Filipa Lacerda's avatar
Filipa Lacerda committed
106 107 108
    .controllers {
      display: flex;
      font-size: 15px;
109 110
      justify-content: center;
      align-items: center;
111

Filipa Lacerda's avatar
Filipa Lacerda committed
112 113 114
      svg {
        height: 15px;
        display: block;
115
        fill: $gl-text-color;
Filipa Lacerda's avatar
Filipa Lacerda committed
116
      }
117

118
      .controllers-buttons {
119 120
        color: $gl-text-color;
        margin: 0 10px;
Filipa Lacerda's avatar
Filipa Lacerda committed
121
      }
122

Filipa Lacerda's avatar
Filipa Lacerda committed
123 124 125 126 127
      .btn-scroll.animate {
        .first-triangle {
          animation: blinking-scroll-button 1s ease infinite;
          animation-delay: .3s;
        }
128

Filipa Lacerda's avatar
Filipa Lacerda committed
129 130 131 132
        .second-triangle {
          animation: blinking-scroll-button 1s ease infinite;
          animation-delay: .2s;
        }
Kushal Pandya's avatar
Kushal Pandya committed
133

Filipa Lacerda's avatar
Filipa Lacerda committed
134 135 136
        .third-triangle {
          animation: blinking-scroll-button 1s ease infinite;
        }
Kushal Pandya's avatar
Kushal Pandya committed
137

Filipa Lacerda's avatar
Filipa Lacerda committed
138 139 140 141
        &:disabled {
          opacity: 1;
        }
      }
142

Filipa Lacerda's avatar
Filipa Lacerda committed
143 144 145 146
      .btn-scroll:disabled {
        opacity: 0.35;
        cursor: not-allowed;
      }
147 148
    }
  }
149

Filipa Lacerda's avatar
Filipa Lacerda committed
150 151
  .environment-information {
    border: 1px solid $border-color;
152
    padding: 8px $gl-padding 12px;
Filipa Lacerda's avatar
Filipa Lacerda committed
153
    border-radius: $border-radius-default;
154

Filipa Lacerda's avatar
Filipa Lacerda committed
155 156
    svg {
      position: relative;
157
      top: 5px;
Filipa Lacerda's avatar
Filipa Lacerda committed
158
      margin-right: 5px;
159 160
      width: 22px;
      height: 22px;
161
    }
162
  }
Filipa Lacerda's avatar
Filipa Lacerda committed
163 164 165 166 167 168 169 170 171

  .build-loader-animation {
    position: relative;
    width: 6px;
    height: 6px;
    margin: auto auto 12px 2px;
    border-radius: 50%;
    animation: blinking-dots 1s linear infinite;
  }
172
}
173

174 175 176 177
.build-header {
  .ci-header-container,
  .header-action-buttons {
    display: flex;
178
  }
179

180 181
  .ci-header-container {
    min-height: 54px;
182
  }
183

184 185
  .page-content-header {
    padding: 10px 0 9px;
186
  }
187

188 189 190 191 192 193 194
  .header-action-buttons {
    @media (max-width: $screen-xs-max) {
      .sidebar-toggle-btn {
        margin-top: 0;
        margin-left: 10px;
        max-height: 34px;
      }
195 196 197 198
    }
  }

  .header-content {
199
    a {
200
      color: $gl-text-color;
201

202 203 204 205
      &:hover {
        color: $gl-link-color;
        text-decoration: none;
      }
206 207
    }
  }
Phil Hughes's avatar
Phil Hughes committed
208 209 210 211 212 213 214 215 216 217

  code {
    color: $code-color;
  }

  .avatar {
    float: none;
    margin-right: 2px;
    margin-left: 2px;
  }
218
}
Annabel Dunstone's avatar
Annabel Dunstone committed
219

Phil Hughes's avatar
Phil Hughes committed
220
.right-sidebar.build-sidebar {
221
  padding: 0;
Phil Hughes's avatar
Phil Hughes committed
222 223 224 225 226

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

227
  .blocks-container {
Luke Bennett's avatar
Luke Bennett committed
228
    padding: 0 $gl-padding;
229 230
  }

Phil Hughes's avatar
Phil Hughes committed
231 232 233
  .block {
    width: 100%;

234 235 236 237
    &:last-child {
      border-bottom: 1px solid $border-gray-normal;
    }

238 239 240 241 242 243 244
    &.coverage {
      padding: 0 16px 11px;
    }

    .btn-group-justified {
      margin-top: 5px;
    }
245 246
  }

247
  .trigger-build-variable {
ubudzisz's avatar
ubudzisz committed
248 249 250
    color: $code-color;
  }

251
  .trigger-build-value {
ubudzisz's avatar
ubudzisz committed
252 253 254 255 256
    padding: 2px 4px;
    color: $black;
    background-color: $white-light;
  }

257 258
  .label {
    margin-left: 2px;
Phil Hughes's avatar
Phil Hughes committed
259
  }
260

261 262 263
  .retry-link {
    display: none;

264 265 266 267 268 269
    .btn-inverted-secondary {
      color: $blue-500;

      &:hover {
        color: $white-light;
      }
270 271 272
    }

    @media (max-width: $screen-sm-max) {
273
      display: block;
274 275 276 277 278 279

      .btn {
        i {
          margin-left: 5px;
        }
      }
280 281 282
    }
  }

283 284 285 286 287 288 289 290 291
  .stage-item {
    cursor: pointer;

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

  .build-dropdown {
292
    padding: $gl-padding 0;
293 294 295 296

    .dropdown-menu-toggle {
      margin-top: 8px;
    }
297 298 299 300 301 302

    .dropdown-menu {
      right: $gl-padding;
      left: $gl-padding;
      width: auto;
    }
303 304 305 306 307 308

    svg {
      position: relative;
      top: 2px;
      margin-right: 3px;
    }
309 310 311 312 313 314
  }

  .builds-container {
    background-color: $white-light;
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
315
    max-height: 300px;
316
    overflow: auto;
317 318 319 320 321 322 323 324 325 326

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

    a {
      display: block;
327 328 329 330 331
      padding: $gl-padding 10px $gl-padding 40px;
      width: 270px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
332 333 334 335 336 337 338

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

    .build-job {
339 340
      position: relative;

341
      .fa-arrow-right {
342 343 344 345 346 347
        position: absolute;
        left: 15px;
        top: 20px;
        display: none;
      }

348 349
      &.active {
        font-weight: bold;
350

351
        .fa-arrow-right {
352 353
          display: block;
        }
354
      }
355

356 357 358 359
      &.retried {
        background-color: $gray-lightest;
      }

360 361 362
      &:hover {
        background-color: $row-hover;
      }
363

364
      .fa-refresh {
365 366 367
        font-size: 13px;
        margin-left: 3px;
      }
368 369
    }
  }
370 371 372 373

  .link-commit {
    color: $blue-600;
  }
Phil Hughes's avatar
Phil Hughes committed
374 375
}

376 377 378 379
.build-sidebar {
  .container-fluid.container-limited {
    max-width: 100%;
  }
380 381 382 383

  .content-wrapper {
    padding-bottom: 6px;
  }
384 385
}

Phil Hughes's avatar
Phil Hughes committed
386 387
.build-detail-row {
  margin-bottom: 5px;
388

389 390 391
  &:last-of-type {
    margin-bottom: 0;
  }
Phil Hughes's avatar
Phil Hughes committed
392 393 394
}

.build-light-text {
395
  color: $gl-text-color-secondary;
396
  word-wrap: break-word;
Phil Hughes's avatar
Phil Hughes committed
397 398 399 400 401 402 403 404
}

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