builds.scss 6.6 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 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;
    }
F
Filipa Lacerda 已提交
84

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

91 92 93
    .truncated-info {
      margin: 0 auto;
      align-self: center;
F
Filipa Lacerda 已提交
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;
F
Filipa Lacerda 已提交
103
      }
104
    }
P
Phil Hughes 已提交
105

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

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

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

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

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

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

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

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

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

F
Filipa Lacerda 已提交
155 156
    svg {
      position: relative;
157
      top: 5px;
F
Filipa Lacerda 已提交
158
      margin-right: 5px;
159 160
      width: 22px;
      height: 22px;
161
    }
162
  }
F
Filipa Lacerda 已提交
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
}
P
Phil Hughes 已提交
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 {
T
tauriedavis 已提交
200
      color: $gl-text-color;
201

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

  code {
    color: $code-color;
  }

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

P
Phil Hughes 已提交
220
.right-sidebar.build-sidebar {
221
  padding: 0;
P
Phil Hughes 已提交
222 223 224 225 226

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

227
  .blocks-container {
L
Luke Bennett 已提交
228
    padding: 0 $gl-padding;
229 230
  }

P
Phil Hughes 已提交
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
  }

F
Filipa Lacerda 已提交
247 248 249 250
  .block-last {
    padding: 16px 0;
  }

251
  .trigger-build-variable {
U
ubudzisz 已提交
252 253 254
    color: $code-color;
  }

255
  .trigger-build-value {
U
ubudzisz 已提交
256 257 258 259 260
    padding: 2px 4px;
    color: $black;
    background-color: $white-light;
  }

261 262
  .label {
    margin-left: 2px;
P
Phil Hughes 已提交
263
  }
264

265 266 267
  .retry-link {
    display: none;

268 269 270 271 272 273
    .btn-inverted-secondary {
      color: $blue-500;

      &:hover {
        color: $white-light;
      }
274 275 276
    }

    @media (max-width: $screen-sm-max) {
277
      display: block;
278 279 280 281 282 283

      .btn {
        i {
          margin-left: 5px;
        }
      }
284 285 286
    }
  }

287 288 289 290 291 292 293 294 295
  .stage-item {
    cursor: pointer;

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

  .build-dropdown {
296
    padding: $gl-padding 0;
297 298 299 300

    .dropdown-menu-toggle {
      margin-top: 8px;
    }
301 302 303 304 305 306

    .dropdown-menu {
      right: $gl-padding;
      left: $gl-padding;
      width: auto;
    }
307 308 309 310 311 312

    svg {
      position: relative;
      top: 2px;
      margin-right: 3px;
    }
313 314 315 316 317 318
  }

  .builds-container {
    background-color: $white-light;
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
319
    max-height: 300px;
320
    overflow: auto;
321 322 323 324 325 326 327 328 329 330

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

    a {
      display: block;
331 332 333 334 335
      padding: $gl-padding 10px $gl-padding 40px;
      width: 270px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
336 337 338 339 340 341 342

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

    .build-job {
343 344
      position: relative;

345
      .fa-arrow-right {
346 347 348 349 350 351
        position: absolute;
        left: 15px;
        top: 20px;
        display: none;
      }

352 353
      &.active {
        font-weight: bold;
354

355
        .fa-arrow-right {
356 357
          display: block;
        }
358
      }
359

360 361 362 363
      &.retried {
        background-color: $gray-lightest;
      }

364 365 366
      &:hover {
        background-color: $row-hover;
      }
367

368
      .fa-refresh {
369 370 371
        font-size: 13px;
        margin-left: 3px;
      }
372 373
    }
  }
374 375 376 377

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

380 381 382 383
.build-sidebar {
  .container-fluid.container-limited {
    max-width: 100%;
  }
K
kushalpandya 已提交
384 385 386 387

  .content-wrapper {
    padding-bottom: 6px;
  }
388 389
}

P
Phil Hughes 已提交
390 391
.build-detail-row {
  margin-bottom: 5px;
392

393 394 395
  &:last-of-type {
    margin-bottom: 0;
  }
P
Phil Hughes 已提交
396 397 398
}

.build-light-text {
T
tauriedavis 已提交
399
  color: $gl-text-color-secondary;
400
  word-wrap: break-word;
P
Phil Hughes 已提交
401 402 403 404 405 406 407 408
}

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