builds.scss 6.1 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 19 20 21 22 23 24 25 26 27 28 29 30 31
@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);
  }

  75%{
    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);
  }
}

32
.build-page {
33
  pre.trace {
S
Sam Rose 已提交
34 35
    background: $builds-trace-bg;
    color: $white-light;
36
    font-family: $monospace_font;
37
    white-space: pre-wrap;
38 39 40 41 42 43 44 45 46 47
    overflow: auto;
    overflow-y: hidden;
    font-size: 12px;

    .fa-refresh {
      font-size: 24px;
      margin-left: 20px;
    }
  }

48 49 50 51 52
  .environment-information {
    background-color: $gray-light;
    border: 1px solid $border-color;
    padding: 12px $gl-padding;
    border-radius: $border-radius-default;
53

54 55 56 57
    svg {
      position: relative;
      top: 1px;
      margin-right: 5px;
P
Phil Hughes 已提交
58
    }
59 60
  }
}
P
Phil Hughes 已提交
61

62 63
.scroll-controls {
  height: 100%;
P
Phil Hughes 已提交
64

65 66 67 68
  .scroll-step {
    width: 31px;
    margin: 0 0 0 auto;
  }
K
Kushal Pandya 已提交
69

K
Kushal Pandya 已提交
70
  .scroll-link,
71 72 73 74 75 76
  .autoscroll-container {
    right: 25px;
    z-index: 1;
  }

  .scroll-link {
K
Kushal Pandya 已提交
77
    position: fixed;
78 79 80 81
    display: block;
    margin-bottom: 10px;

    &.scroll-top {
K
Kushal Pandya 已提交
82 83
      top: 110px;

K
Kushal Pandya 已提交
84 85 86
      .gitlab-icon-scroll-up-hover {
        display: none;
      }
K
Kushal Pandya 已提交
87

88
      &:hover {
K
Kushal Pandya 已提交
89 90 91 92 93 94 95 96

        .gitlab-icon-scroll-up {
          display: none;
        }

        .gitlab-icon-scroll-up-hover {
          display: inline-block;
        }
K
Kushal Pandya 已提交
97
      }
98
    }
K
Kushal Pandya 已提交
99

100
    &.scroll-bottom {
K
Kushal Pandya 已提交
101 102
      bottom: -2px;

K
Kushal Pandya 已提交
103 104 105
      .gitlab-icon-scroll-down-hover {
        display: none;
      }
K
Kushal Pandya 已提交
106

107
      &:hover {
K
Kushal Pandya 已提交
108 109 110 111 112 113 114 115

        .gitlab-icon-scroll-down {
          display: none;
        }

        .gitlab-icon-scroll-down-hover {
          display: inline-block;
        }
K
Kushal Pandya 已提交
116
      }
117 118
    }
  }
119

120 121 122 123 124 125
  .autoscroll-container {
    position: absolute;
  }

  &.sidebar-expanded {

K
Kushal Pandya 已提交
126
    .scroll-link,
127
    .autoscroll-container {
128
      right: ($gutter_width + ($gl-padding * 2));
129
    }
130 131
  }
}
P
Phil Hughes 已提交
132

133 134 135
.status-message {
  display: inline-block;
  color: $white-light;
136

137 138 139 140
  .status-icon {
    display: inline-block;
    width: 16px;
    height: 33px;
141
  }
142

143 144 145 146 147 148 149
  .status-text {
    float: left;
    opacity: 0;
    margin-right: 10px;
    font-weight: normal;
    line-height: 1.8;
    transition: opacity 1s ease-out;
150

151 152
    &.animate {
      animation: fade-out-status 2s ease;
153
    }
154
  }
155 156 157 158

  &:hover .status-text {
    opacity: 1;
  }
P
Phil Hughes 已提交
159
}
160

P
Phil Hughes 已提交
161 162
.build-header {
  position: relative;
163 164 165 166
  padding: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
167

168 169
  @media (max-width: $screen-sm-max) {
    padding-right: 40px;
170
    margin-top: 6px;
171

A
Annabel Dunstone Gray 已提交
172
    .btn-inverted {
173 174 175 176 177 178
      display: none;
    }
  }

  .header-content {
    flex: 1;
179

180 181
    a {
      color: $gl-gray;
182

183 184 185 186
      &:hover {
        color: $gl-link-color;
        text-decoration: none;
      }
187 188
    }
  }
P
Phil Hughes 已提交
189 190 191 192 193 194 195 196 197 198

  code {
    color: $code-color;
  }

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

P
Phil Hughes 已提交
201
.build-trace {
202
  background: $black;
A
Annabel Dunstone Gray 已提交
203
  color: $gray-darkest;
P
Phil Hughes 已提交
204 205 206 207 208 209 210 211 212 213 214
  white-space: pre;
  overflow-x: auto;
  font-size: 12px;

  .fa-refresh {
    font-size: 24px;
  }

  .bash {
    display: block;
  }
215

216 217 218 219 220 221 222 223
  .build-loader-animation {
    position: relative;
    width: 6px;
    height: 6px;
    margin-bottom: 12px;
    margin-left: 2px;
    border-radius: 50%;
    animation: blinking-dots 1s linear infinite;
224
  }
P
Phil Hughes 已提交
225 226 227
}

.right-sidebar.build-sidebar {
228
  padding: $gl-padding 0;
P
Phil Hughes 已提交
229 230 231 232 233

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

234
  .blocks-container {
L
Luke Bennett 已提交
235
    padding: 0 $gl-padding;
236 237
  }

P
Phil Hughes 已提交
238 239 240
  .block {
    width: 100%;

241 242 243 244 245 246 247
    &.coverage {
      padding: 0 16px 11px;
    }

    .btn-group-justified {
      margin-top: 5px;
    }
248 249
  }

U
ubudzisz 已提交
250 251 252 253 254 255 256 257 258 259
  .js-build-variable {
    color: $code-color;
  }

  .js-build-value {
    padding: 2px 4px;
    color: $black;
    background-color: $white-light;
  }

P
Phil Hughes 已提交
260
  .build-sidebar-header {
261
    padding: 0 $gl-padding $gl-padding;
P
Phil Hughes 已提交
262 263 264 265 266

    .gutter-toggle {
      margin-top: 0;
    }
  }
267

268 269 270 271 272 273 274 275 276
  .retry-link {
    color: $gl-link-color;
    display: none;

    &:hover {
      text-decoration: underline;
    }

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

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

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

  .build-dropdown {
290
    padding: $gl-padding 0;
291 292 293 294

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

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

  .builds-container {
    background-color: $white-light;
    border-top: 1px solid $border-color;
    border-bottom: 1px solid $border-color;
307
    max-height: 300px;
308
    overflow: auto;
309 310 311 312 313 314 315 316 317 318

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

    a {
      display: block;
319 320 321 322 323
      padding: $gl-padding 10px $gl-padding 40px;
      width: 270px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
324 325 326 327 328 329 330

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

    .build-job {
331 332
      position: relative;

333
      .fa-arrow-right {
334 335 336 337 338 339
        position: absolute;
        left: 15px;
        top: 20px;
        display: none;
      }

340 341
      &.active {
        font-weight: bold;
342

343
        .fa-arrow-right {
344 345
          display: block;
        }
346
      }
347

348 349 350 351
      &.retried {
        background-color: $gray-lightest;
      }

352 353 354
      &:hover {
        background-color: $row-hover;
      }
355 356 357 358 359

      .fa-refresh {
        font-size: 13px;
        margin-left: 3px;
      }
360 361
    }
  }
P
Phil Hughes 已提交
362 363
}

364 365 366 367 368 369
.build-sidebar {
  .container-fluid.container-limited {
    max-width: 100%;
  }
}

P
Phil Hughes 已提交
370 371
.build-detail-row {
  margin-bottom: 5px;
372

373 374 375
  &:last-of-type {
    margin-bottom: 0;
  }
P
Phil Hughes 已提交
376 377 378
}

.build-light-text {
379
  color: $gl-gray-light;
P
Phil Hughes 已提交
380 381 382 383 384 385 386 387
}

.build-gutter-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -17px;
}
388 389 390 391 392 393

@media (min-width: $screen-md-min) {
  .sub-nav.build {
    width: calc(100% + #{$gutter_width});
  }
}