pipelines.scss 7.47 KB
Newer Older
1 2
.pipelines {
  .stage {
3 4
    max-width: 90px;
    width: 90px;
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .commit-title {
    margin: 0;
  }

  .controls {
    white-space: nowrap;
  }

  .btn {
    margin: 4px;
  }
21 22 23 24

  .table.builds {
    min-width: 1200px;
  }
25
}
26

Annabel Dunstone's avatar
Annabel Dunstone committed
27 28 29 30 31 32 33
.content-list {

  &.pipelines,
  &.builds-content-list {
    width: 100%;
    overflow: auto;
  }
34 35
}

36 37 38 39 40
.pipeline-holder {
  width: 100%;
  overflow: auto;
}

41
.table.builds {
42
  min-width: 900px;
43

44 45 46 47
  &.pipeline {
    min-width: 650px;
  }

48 49
  tr {
    th {
50
      padding: 16px 8px;
51 52
      border: none;
    }
53 54 55 56

    td {
      padding: 10px 8px;
    }
57 58 59 60 61 62
  }

  tbody {
    border-top-width: 1px;
  }

63 64
  .commit-link {

65
    .ci-status {
66 67 68 69 70 71 72

      svg {
        top: 1px;
        margin-right: 0;
      }
    }

73 74 75 76 77
    a:hover {
      text-decoration: none;
    }
  }

78 79 80 81
  .branch-commit {

    .branch-name {
      font-weight: bold;
82
      max-width: 150px;
83 84 85 86 87 88 89
      overflow: hidden;
      display: inline-block;
      white-space: nowrap;
      vertical-align: top;
      text-overflow: ellipsis;
    }

90 91
    svg {
      height: 14px;
92
      width: 14px;
93
      vertical-align: middle;
94 95 96 97 98 99
      fill: $table-text-gray;
    }

    .fa {
      font-size: 12px;
      color: $table-text-gray;
100 101 102 103 104 105 106 107 108
    }

    .commit-id {
      color: $gl-link-color;
      margin-right: 8px;
    }

    .commit-title {
      margin-top: 4px;
Annabel Dunstone's avatar
Annabel Dunstone committed
109
      max-width: 300px;
110 111 112 113 114 115 116 117
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .avatar {
      margin-left: 0;
    }
Annabel Dunstone's avatar
Annabel Dunstone committed
118

119 120 121 122
    .label {
      margin-right: 4px;
    }

Annabel Dunstone's avatar
Annabel Dunstone committed
123
    .label-container {
124
      font-size: 0;
125 126 127 128

      .label {
        margin-top: 5px;
      }
Annabel Dunstone's avatar
Annabel Dunstone committed
129
    }
130 131
  }

132 133
  .icon-container {
    display: inline-block;
134
    text-align: right;
135
    width: 15px;
136 137 138 139 140 141 142 143 144 145

    .fa {
      position: relative;
      right: 3px;
    }

    svg {
      position: relative;
      right: 1px;
    }
146
  }
147

148 149 150
  .stage-cell {

    svg {
151 152
      height: 18px;
      width: 18px;
153
      vertical-align: middle;
154
      overflow: visible;
155
    }
Annabel Dunstone's avatar
Annabel Dunstone committed
156 157 158 159

    .light {
      width: 3px;
    }
160
  }
161

162 163 164
  .duration,
  .finished-at {
    color: $table-text-gray;
Annabel Dunstone's avatar
Annabel Dunstone committed
165
    margin: 4px 0;
166 167

    .fa {
168
      font-size: 12px;
169
      margin-right: 4px;
170 171 172
    }

    svg {
173
      width: 12px;
174
      height: 12px;
175
      vertical-align: middle;
176
      margin-right: 4px;
177 178 179 180
    }
  }

  .pipeline-actions {
181
    min-width: 140px;
182 183

    .btn {
184
      margin: 0;
Annabel Dunstone's avatar
Annabel Dunstone committed
185
      color: $table-text-gray;
186 187
    }

188
    .cancel-retry-btns {
189 190
      vertical-align: middle;

191 192 193 194 195
      .btn:not(:first-child) {
        margin-left: 8px;
      }
    }

196
    .dropdown-toggle,
Annabel Dunstone's avatar
Annabel Dunstone committed
197
    .dropdown-menu {
198
      color: $table-text-gray;
199 200 201 202 203 204

      .fa {
        color: $table-text-gray;
        margin-right: 6px;
        font-size: 14px;
      }
205 206 207 208 209
    }

    .btn-remove {
      color: $white-light;
    }
210 211 212 213 214 215 216 217

    .btn-group {
      &.open {
        .btn-default {
          background-color: $white-normal;
          border-color: $border-white-normal;
        }
      }
218 219 220 221 222 223 224

      .btn {
        .icon-play {
          height: 13px;
          width: 12px;
        }
      }
225
    }
226 227 228 229 230 231 232 233
  }

  .build-link {

    a {
      color: $gl-dark-link-color;
    }
  }
234 235 236 237

  .btn-group.open .dropdown-toggle {
    box-shadow: none;
  }
238
}
239 240

// Pipeline visualization
241

242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
.toggle-pipeline-btn {
  background-color: $gray-dark;

  .caret {
    border-top: none;
    border-bottom: 4px solid;
  }

  &.graph-collapsed {
    background-color: $white-light;

    .caret {
      border-bottom: none;
      border-top: 4px solid;
    }
  }
}

Annabel Dunstone's avatar
Annabel Dunstone committed
260
.pipeline-graph {
261 262
  width: 100%;
  overflow: auto;
Annabel Dunstone's avatar
Annabel Dunstone committed
263
  white-space: nowrap;
264 265 266 267 268 269
  transition: max-height 0.3s, padding 0.3s;

  &.graph-collapsed {
    max-height: 0;
    padding: 0 16px;
  }
Annabel Dunstone's avatar
Annabel Dunstone committed
270 271 272 273
}

.pipeline-visualization {
  position: relative;
274 275 276 277

  ul {
    padding: 0;
  }
278 279
}

280 281 282
.stage-column {
  display: inline-block;
  vertical-align: top;
283
  margin-right: 65px;
284

285 286 287 288
  li {
    list-style: none;
  }

289 290 291
  .stage-name {
    margin-bottom: 15px;
    font-weight: bold;
292 293 294 295
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
296 297 298 299 300 301 302 303 304 305
  }

  .build {
    border: 1px solid $border-color;
    position: relative;
    padding: 6px 10px;
    border-radius: 30px;
    width: 150px;
    margin-bottom: 10px;

306
    &.playable {
307
      background-color: $gray-light;
Annabel Dunstone's avatar
Annabel Dunstone committed
308 309 310 311 312 313 314 315 316 317 318

      svg {
        height: 12px;
        width: 12px;
        position: relative;
        top: 1px;

        path {
          fill: $layout-link-gray;
        }
      }
319 320
    }

321 322 323 324 325
    .build-content {
      width: 130px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
326 327 328

      a {
        color: $layout-link-gray;
329 330 331 332 333 334 335 336
        text-decoration: none;

        &:hover {
          .ci-status-text {
            text-decoration: underline;
          }
        }

337
      }
338 339
    }

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

346
    // Connect first build in each stage with right horizontal line
347
    &:first-child {
348
      &::after {
349 350 351
        content: '';
        position: absolute;
        top: 50%;
352
        right: -69px;
353
        border-top: 2px solid $border-color;
354
        width: 69px;
355 356 357
        height: 1px;
      }
    }
358 359 360 361 362 363 364 365 366 367 368 369 370 371

    // Connect each build (except for first) with curved lines
    &:not(:first-child) {
      &::after, &::before {
        content: '';
        top: -47px;
        position: absolute;
        border-bottom: 2px solid $border-color;
        width: 20px;
        height: 65px;
      }

      // Right connecting curves
      &::after {
372
        right: -20px;
373
        border-right: 2px solid $border-color;
374
        border-radius: 0 0 15px;
375 376 377 378
      }

      // Left connecting curves
      &::before {
379
        left: -20px;
380
        border-left: 2px solid $border-color;
381
        border-radius: 0 0 0 15px;
382 383 384 385 386 387
      }
    }

    // Connect second build to first build with smaller curved line
    &:nth-child(2) {
      &::after, &::before {
388 389 390 391 392
        height: 29px;
        top: -10px;
      }
      .curve {
        display: block;
393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
      }
    }
  }

  &:last-child {
    .build {
      // Remove right connecting horizontal line from first build in last stage
      &:first-child {
        &::after, &::before {
          border: none;
        }
      }
      // Remove right curved connectors from all builds in last stage
      &:not(:first-child) {
        &::after {
          border: none;
        }
      }
411 412 413 414 415 416
      // Remove opposite curve
      .curve {
        &::before {
          display: none;
        }
      }
417
    }
418
  }
419

420 421 422 423 424 425 426 427
  &:first-child {
    .build {
      // Remove left curved connectors from all builds in first stage
      &:not(:first-child) {
        &::before {
          border: none;
        }
      }
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453
      // Remove opposite curve
      .curve {
        &::after {
          display: none;
        }
      }
    }
  }

  // Curve first child connecting lines in opposite direction
  .curve {
    display: none;

    &::before,
    &::after {
      content: '';
      width: 21px;
      height: 25px;
      position: absolute;
      top: -28.5px;
      border-top: 2px solid $border-color;
    }

    &::after {
      left: -39px;
      border-right: 2px solid $border-color;
454
      border-radius: 0 15px;
455 456 457 458 459
    }

    &::before {
      right: -39px;
      border-left: 2px solid $border-color;
460
      border-radius: 15px 0 0;
461
    }
462
  }
463
}
464 465 466 467 468 469 470 471 472 473 474

.pipeline-actions {
  border-bottom: none;
}

.toggle-pipeline-btn {

  .fa {
    color: $dropdown-header-color;
  }
}
475

476 477 478
.pipelines.tab-pane {

  .content-list.pipelines {
479
    overflow: scroll;
480 481 482 483 484 485 486
  }

  .stage {
    max-width: 60px;
    width: 60px;
  }
}
Annabel Dunstone's avatar
Annabel Dunstone committed
487 488 489 490 491 492 493

.ci-status-icon-created {

  svg {
    fill: $table-text-gray;
  }
}