pipelines.scss 6.44 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 218

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

  .build-link {

    a {
      color: $gl-dark-link-color;
    }
  }
227 228 229 230

  .btn-group.open .dropdown-toggle {
    box-shadow: none;
  }
231
}
232 233

// Pipeline visualization
234

235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
.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
253
.pipeline-graph {
254 255
  width: 100%;
  overflow: auto;
Annabel Dunstone's avatar
Annabel Dunstone committed
256
  white-space: nowrap;
257 258 259 260 261 262 263
  max-height: 500px;
  transition: max-height 0.3s, padding 0.3s;

  &.graph-collapsed {
    max-height: 0;
    padding: 0 16px;
  }
Annabel Dunstone's avatar
Annabel Dunstone committed
264 265 266 267 268
}

.pipeline-visualization {
  position: relative;
  min-width: 1220px;
269 270 271 272

  ul {
    padding: 0;
  }
273 274
}

275 276 277
.stage-column {
  display: inline-block;
  vertical-align: top;
278
  margin-right: 50px;
279

280 281 282 283
  li {
    list-style: none;
  }

284 285 286
  .stage-name {
    margin-bottom: 15px;
    font-weight: bold;
287 288 289 290
    width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
291 292 293 294 295 296 297 298 299 300
  }

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

301
    &.playable {
302
      background-color: $gray-light;
Annabel Dunstone's avatar
Annabel Dunstone committed
303 304 305 306 307 308 309 310 311 312 313

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

        path {
          fill: $layout-link-gray;
        }
      }
314 315
    }

316 317 318 319 320
    .build-content {
      width: 130px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
321 322 323 324

      a {
        color: $layout-link-gray;
      }
325 326
    }

327 328 329 330 331 332
    svg {
      position: relative;
      top: 2px;
      margin-right: 5px;
    }

333
    // Connect first build in each stage with right horizontal line
334
    &:first-child {
335
      &::after {
336 337 338
        content: '';
        position: absolute;
        top: 50%;
339
        right: -54px;
340
        border-top: 2px solid $border-color;
341
        width: 54px;
342 343 344
        height: 1px;
      }
    }
345 346 347 348 349 350 351 352 353 354 355 356 357 358

    // 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 {
359
        right: -20px;
360
        border-right: 2px solid $border-color;
Annabel Dunstone's avatar
Annabel Dunstone committed
361
        border-radius: 0 0 50px;
362 363 364 365
      }

      // Left connecting curves
      &::before {
366
        left: -20px;
367 368 369 370 371 372 373 374
        border-left: 2px solid $border-color;
        border-radius: 0 0 0 50px;
      }
    }

    // Connect second build to first build with smaller curved line
    &:nth-child(2) {
      &::after, &::before {
375
        height: 45px;
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394
        top: -26px;
      }
    }
  }

  &: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;
        }
      }
395
    }
396
  }
397

398 399 400 401 402 403 404 405 406
  &:first-child {
    .build {
      // Remove left curved connectors from all builds in first stage
      &:not(:first-child) {
        &::before {
          border: none;
        }
      }
    }
407
  }
408
}
409 410 411 412 413 414 415 416 417 418 419

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

.toggle-pipeline-btn {

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

421 422 423
.pipelines.tab-pane {

  .content-list.pipelines {
424
    overflow: scroll;
425 426 427 428 429 430 431
  }

  .stage {
    max-width: 60px;
    width: 60px;
  }
}