cycle_analytics.scss 7.7 KB
Newer Older
F
Fatih Acet 已提交
1
#cycle-analytics {
2
  max-width: 1000px;
F
Fatih Acet 已提交
3 4
  margin: 24px auto 0;
  position: relative;
F
Fatih Acet 已提交
5

A
Alfredo Sumaran 已提交
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  .col-headers {
    ul {
      margin: 0;
      padding: 0;
      @include clearfix;
    }

    li {
      display: inline-block;
      float: left;
      line-height: 50px;
      width: 20%;
    }


    .fa {
      color: $cycle-analytics-light-gray;
    }

    .stage-header {
26
      width: 28%;
A
Alfredo Sumaran 已提交
27 28 29 30 31 32
      padding-left: $gl-padding;
    }

    .median-header {
      width: 12%;
    }
F
Fatih Acet 已提交
33

A
Alfredo Sumaran 已提交
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
    .event-header {
      width: 45%;
      padding-left: $gl-padding;
    }

    .total-time-header {
      width: 15%;
      text-align: right;
      padding-right: $gl-padding;
    }

    .stage-name {
      font-weight: 600;
    }
  }

  .panel {
F
Fatih Acet 已提交
51 52 53 54
    .content-block {
      padding: 24px 0;
      border-bottom: none;
      position: relative;
55

56 57
      @media (max-width: $screen-sm-min) {
        padding: 6px 0 24px;
58
      }
F
Fatih Acet 已提交
59 60 61 62
    }

    .column {
      text-align: center;
63

64 65 66
      @media (max-width: $screen-sm-min) {
        padding: 15px 0;
      }
F
Fatih Acet 已提交
67 68 69 70 71 72 73 74 75 76

      .header {
        font-size: 30px;
        line-height: 38px;
        font-weight: normal;
        margin: 0;
      }

      .text {
        color: $layout-link-gray;
77
        margin: 0;
F
Fatih Acet 已提交
78
      }
F
Fatih Acet 已提交
79 80

      &:last-child {
81 82 83
        @media (max-width: $screen-sm-min) {
          text-align: center;
        }
F
Fatih Acet 已提交
84
      }
F
Fatih Acet 已提交
85 86 87
    }
  }

88 89 90 91
  .js-ca-dropdown {
    top: $gl-padding-top;
  }

F
Fatih Acet 已提交
92 93
  .bordered-box {
    border: 1px solid $border-color;
C
Clement Ho 已提交
94
    border-radius: $border-radius-default;
F
Fatih Acet 已提交
95 96 97 98 99
  }

  .content-list {
    li {
      padding: 18px $gl-padding $gl-padding;
F
Fatih Acet 已提交
100 101 102 103

      .container-fluid {
        padding: 0;
      }
F
Fatih Acet 已提交
104 105
    }

F
Fatih Acet 已提交
106
    .title-col {
107 108 109 110
      p {
        margin: 0;

        &.title {
F
Fatih Acet 已提交
111 112 113
          line-height: 19px;
          font-size: 15px;
          font-weight: 600;
114
          color: $gl-title-color;
F
Fatih Acet 已提交
115
        }
116

117 118
        &.text {
          color: $layout-link-gray;
119

120 121 122
          &.value-col {
            color: $gl-title-color;
          }
F
Fatih Acet 已提交
123 124 125 126
        }
      }
    }

F
Fatih Acet 已提交
127 128
    .value-col {
      text-align: right;
F
Fatih Acet 已提交
129

F
Fatih Acet 已提交
130
      span {
131 132 133
        position: relative;
        vertical-align: middle;
        top: 3px;
F
Fatih Acet 已提交
134
      }
F
Fatih Acet 已提交
135
    }
F
Fatih Acet 已提交
136
  }
F
Fatih Acet 已提交
137

F
Fatih Acet 已提交
138
  .landing {
F
Filipa Lacerda 已提交
139
    margin-bottom: $gl-padding;
F
Fatih Acet 已提交
140
    overflow: hidden;
F
Fatih Acet 已提交
141

F
Fatih Acet 已提交
142 143
    .dismiss-icon {
      position: absolute;
144
      right: $cycle-analytics-box-padding;
F
Fatih Acet 已提交
145
      cursor: pointer;
146
      color: #b2b2b2;
F
Fatih Acet 已提交
147 148
    }

149 150
    .svg-container {
      text-align: center;
151

152 153 154 155
      svg {
        width: 136px;
        height: 136px;
      }
F
Fatih Acet 已提交
156
    }
157

F
Fatih Acet 已提交
158
    .inner-content {
159 160
      @media (max-width: $screen-sm-min) {
        padding: 0 28px;
161
        text-align: center;
162
      }
F
Fatih Acet 已提交
163

F
Fatih Acet 已提交
164 165 166 167
      h4 {
        color: $gl-text-color;
        font-size: 17px;
      }
F
Fatih Acet 已提交
168

F
Fatih Acet 已提交
169
      p {
170
        color: $cycle-analytics-box-text-color;
F
Filipa Lacerda 已提交
171
        margin-bottom: $gl-padding;
F
Fatih Acet 已提交
172
      }
F
Fatih Acet 已提交
173
    }
F
Fatih Acet 已提交
174
  }
F
Fatih Acet 已提交
175

F
Fatih Acet 已提交
176 177 178 179 180 181
  .fa-spinner {
    font-size: 28px;
    position: relative;
    margin-left: -20px;
    left: 50%;
    margin-top: 36px;
F
Fatih Acet 已提交
182
  }
F
Fatih Acet 已提交
183

A
Alfredo Sumaran 已提交
184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213
  .stage-panel-body {
    display: flex;
    flex-wrap: wrap;
  }

  .stage-nav,
  .stage-entries {
    display: flex;
    vertical-align: top;
    font-size: $gl-font-size;
  }

  .stage-nav {
    width: 40%;
    margin-bottom: 0;

    ul {
      padding: 0;
      margin: 0;
      width: 100%;
    }

    li {
      list-style-type: none;
      @include clearfix;
    }

    .stage-nav-item {
      display: block;
      line-height: 65px;
A
Alfredo Sumaran 已提交
214 215 216
      border-top: 1px solid transparent;
      border-bottom: 1px solid transparent;
      border-right: 1px solid $border-color;
A
Alfredo Sumaran 已提交
217 218 219 220 221 222 223
      background-color: $gray-light;

      &.active {
        background-color: transparent;
        border-right-color: transparent;
        border-top-color: $border-color;
        border-bottom-color: $border-color;
A
Alfredo Sumaran 已提交
224
        box-shadow: inset 2px 0 0 0 $active-item-blue;
A
Alfredo Sumaran 已提交
225 226 227 228 229 230 231 232 233 234 235 236 237 238

        .stage-name {
          font-weight: 600;
        }
      }

      &:first-child {
        border-top: none;
      }

      &:last-child {
        border-bottom: none;
      }

A
Alfredo Sumaran 已提交
239
      .stage-nav-item-cell {
A
Alfredo Sumaran 已提交
240 241 242
        float: left;

        &.stage-name {
243
          width: 70%;
A
Alfredo Sumaran 已提交
244 245 246 247 248 249 250 251 252 253
        }

        &.stage-median {
          width: 30%;
        }
      }

      .stage-name {
        padding-left: 16px;
      }
A
Alfredo Sumaran 已提交
254

255 256
      .stage-empty,
      .not-available {
A
Alfredo Sumaran 已提交
257 258
        color: $gl-text-color-light;
      }
A
Alfredo Sumaran 已提交
259 260 261
    }
  }

262 263 264 265 266
  .stage-panel-container {
    width: 100%;
    overflow: auto;
  }

A
Alfredo Sumaran 已提交
267
  .stage-panel {
268 269
    min-width: 968px;

A
Alfredo Sumaran 已提交
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
    .panel-heading {
      padding: 0;
      background-color: transparent;
    }

    .events-description {
      line-height: 65px;
      padding-left: $gl-padding;
    }
  }

  .stage-events {
    width: 60%;
    overflow: scroll;
    height: 467px;
  }

  .stage-event-list {
    margin: 0;
    padding: 0;
  }

  .stage-event-item {
    list-style-type: none;
    padding: 0 0 $gl-padding;
A
Alfredo Sumaran 已提交
295
    margin: 0 $gl-padding $gl-padding;
A
Alfredo Sumaran 已提交
296
    border-bottom: 1px solid $gray-darker;
A
Alfredo Sumaran 已提交
297 298 299 300 301 302 303
    @include clearfix;

    &:last-child {
      border-bottom: none;
      margin-bottom: 0;
    }

A
Alfredo Sumaran 已提交
304 305
    .item-details,
    .item-time {
A
Alfredo Sumaran 已提交
306 307 308 309 310 311 312 313
      float: left;
    }

    .item-details {
      width: 75%;
    }

    .item-title {
A
Alfredo Sumaran 已提交
314
      margin: 0 0 2px;
A
Alfredo Sumaran 已提交
315

A
Alfredo Sumaran 已提交
316 317 318
      &.issue-title,
      &.commit-title,
      &.merge-merquest-title {
A
Alfredo Sumaran 已提交
319 320 321
        max-width: 100%;
        display: block;
        @include text-overflow();
A
Alfredo Sumaran 已提交
322 323 324 325

        a {
          color: $gl-dark-link-color;
        }
A
Alfredo Sumaran 已提交
326 327 328 329 330 331
      }
    }

    .item-time {
      width: 25%;
      text-align: right;
A
Alfredo Sumaran 已提交
332 333 334
    }

    .total-time {
A
Alfredo Sumaran 已提交
335 336 337
      font-size: $cycle-analytics-big-font;
      color: $cycle-analytics-dark-text;

A
Alfredo Sumaran 已提交
338
      span {
A
Alfredo Sumaran 已提交
339
        color: $gl-text-color;
A
Alfredo Sumaran 已提交
340
        font-size: $gl-font-size;
A
Alfredo Sumaran 已提交
341 342
      }
    }
343

A
Alfredo Sumaran 已提交
344 345
    .issue-date,
    .build-date {
346 347
      color: $gl-text-color;
    }
A
Alfredo Sumaran 已提交
348

349 350 351
    .issue-link,
    .commit-author-link,
    .issue-author-link {
352 353 354 355 356 357 358 359 360 361 362 363 364 365
      color: $gl-dark-link-color;
    }

    // Custom CSS for components
    .item-conmmit-component {
      .commit-icon {
        position: relative;
        top: 3px;
        left: 1px;
        display: inline-block;

        svg {
          float: left;
        }
A
Alfredo Sumaran 已提交
366
      }
367
    }
368 369 370 371 372 373 374 375 376 377 378

    .merge-request-branch {
      a {
        max-width: 180px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        display: inline-block;
        vertical-align: bottom;
      }
    }
A
Alfredo Sumaran 已提交
379
  }
A
Alfredo Sumaran 已提交
380

381 382 383 384 385 386 387
  // Custom Styles for stage items
  .item-build-component {

    .item-title {
      .icon-build-status {
        float: left;
        margin-right: 5px;
A
Alfredo Sumaran 已提交
388 389
        position: relative;
        top: 2px;
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
      }

      .item-build-name {
        color: $gl-title-color;
      }

      .pipeline-id {
        color: $gl-title-color;
        padding: 0 3px 0 0;
      }

      .branch-name {
        color: $black;
        display: inline-block;
        max-width: 180px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        line-height: 1.3;
        vertical-align: top;
      }
A
Alfredo Sumaran 已提交
411

412 413 414 415 416 417 418 419 420 421 422 423 424
      .short-sha {
        color: $gl-link-color;
        line-height: 1.3;
        vertical-align: top;
        font-weight: normal;
      }

      .fa {
        color: $gl-text-color-light;
        font-size: $code_font_size;
      }
    }
  }
425

426 427
  .empty-stage,
  .no-access-stage {
428 429 430 431 432 433
    text-align: center;
    width: 75%;
    margin: 0 auto;
    padding-top: 130px;
    color: $gl-text-color-light;

434 435 436 437 438 439
    h4 {
      color: $gl-text-color;
    }
  }

  .empty-stage {
440 441 442 443 444 445
    .icon-no-data {
      height: 36px;
      width: 78px;
      display: inline-block;
      margin-bottom: 20px;
    }
446
  }
447

448 449 450 451 452 453
  .no-access-stage {
    .icon-lock {
      height: 36px;
      width: 78px;
      display: inline-block;
      margin-bottom: 20px;
454 455
    }
  }
F
Fatih Acet 已提交
456
}
457 458 459 460 461 462 463 464 465 466 467 468

.cycle-analytics-overview {
  padding-top: 100px;

  .overview-details {
    display: flex;
    align-items: center;
  }

  .overview-image {
    text-align: right;
  }
A
Alfredo Sumaran 已提交
469

470 471 472 473 474 475 476
  .overview-icon {
    svg {
      width: 365px;
      height: 227px;
    }
  }
}