cycle_analytics.scss 7.9 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
  .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;
23 24 25 26

      &:hover {
        color: $gl-text-color;
      }
A
Alfredo Sumaran 已提交
27 28 29
    }

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

    .median-header {
A
Alfredo Sumaran 已提交
35
      width: 14%;
A
Alfredo Sumaran 已提交
36
    }
F
Fatih Acet 已提交
37

A
Alfredo Sumaran 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
    .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 已提交
55 56 57 58
    .content-block {
      padding: 24px 0;
      border-bottom: none;
      position: relative;
59

60
      @media (max-width: $screen-xs-max) {
61
        padding: 6px 0 24px;
62
      }
F
Fatih Acet 已提交
63 64 65 66
    }

    .column {
      text-align: center;
67

68
      @media (max-width: $screen-xs-max) {
69 70
        padding: 15px 0;
      }
F
Fatih Acet 已提交
71 72 73 74 75 76 77 78 79 80

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

      .text {
        color: $layout-link-gray;
81
        margin: 0;
F
Fatih Acet 已提交
82
      }
F
Fatih Acet 已提交
83 84

      &:last-child {
85
        @media (max-width: $screen-xs-max) {
86 87
          text-align: center;
        }
F
Fatih Acet 已提交
88
      }
F
Fatih Acet 已提交
89 90 91
    }
  }

92 93 94 95
  .js-ca-dropdown {
    top: $gl-padding-top;
  }

F
Fatih Acet 已提交
96 97
  .bordered-box {
    border: 1px solid $border-color;
C
Clement Ho 已提交
98
    border-radius: $border-radius-default;
F
Fatih Acet 已提交
99 100 101 102 103
  }

  .content-list {
    li {
      padding: 18px $gl-padding $gl-padding;
F
Fatih Acet 已提交
104 105 106 107

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

F
Fatih Acet 已提交
110
    .title-col {
111 112 113 114
      p {
        margin: 0;

        &.title {
F
Fatih Acet 已提交
115
          line-height: 19px;
116
          font-size: 14px;
F
Fatih Acet 已提交
117
          font-weight: 600;
T
tauriedavis 已提交
118
          color: $gl-text-color;
F
Fatih Acet 已提交
119
        }
120

121 122
        &.text {
          color: $layout-link-gray;
123

124
          &.value-col {
T
tauriedavis 已提交
125
            color: $gl-text-color;
126
          }
F
Fatih Acet 已提交
127 128 129 130
        }
      }
    }

F
Fatih Acet 已提交
131 132
    .value-col {
      text-align: right;
F
Fatih Acet 已提交
133

F
Fatih Acet 已提交
134
      span {
135 136 137
        position: relative;
        vertical-align: middle;
        top: 3px;
F
Fatih Acet 已提交
138
      }
F
Fatih Acet 已提交
139
    }
F
Fatih Acet 已提交
140
  }
F
Fatih Acet 已提交
141

F
Fatih Acet 已提交
142
  .landing {
F
Filipa Lacerda 已提交
143
    margin-bottom: $gl-padding;
F
Fatih Acet 已提交
144
    overflow: hidden;
F
Fatih Acet 已提交
145

F
Fatih Acet 已提交
146 147
    .dismiss-icon {
      position: absolute;
A
Alfredo Sumaran 已提交
148
      right: $cycle-analytics-box-padding;
F
Fatih Acet 已提交
149
      cursor: pointer;
S
Sam Rose 已提交
150
      color: $cycle-analytics-dismiss-icon-color;
F
Fatih Acet 已提交
151 152
    }

153 154
    .svg-container {
      text-align: center;
155

156 157 158 159
      svg {
        width: 136px;
        height: 136px;
      }
F
Fatih Acet 已提交
160
    }
161

F
Fatih Acet 已提交
162
    .inner-content {
163
      @media (max-width: $screen-xs-max) {
164
        padding: 0 28px;
165
        text-align: center;
166
      }
F
Fatih Acet 已提交
167

F
Fatih Acet 已提交
168 169 170 171
      h4 {
        color: $gl-text-color;
        font-size: 17px;
      }
F
Fatih Acet 已提交
172

F
Fatih Acet 已提交
173
      p {
174
        color: $cycle-analytics-box-text-color;
F
Filipa Lacerda 已提交
175
        margin-bottom: $gl-padding;
F
Fatih Acet 已提交
176
      }
F
Fatih Acet 已提交
177
    }
F
Fatih Acet 已提交
178
  }
F
Fatih Acet 已提交
179

F
Fatih Acet 已提交
180 181 182 183 184 185
  .fa-spinner {
    font-size: 28px;
    position: relative;
    margin-left: -20px;
    left: 50%;
    margin-top: 36px;
F
Fatih Acet 已提交
186
  }
F
Fatih Acet 已提交
187

A
Alfredo Sumaran 已提交
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 214 215 216 217
  .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 已提交
218 219 220
      border-top: 1px solid transparent;
      border-bottom: 1px solid transparent;
      border-right: 1px solid $border-color;
A
Alfredo Sumaran 已提交
221 222 223 224 225 226 227
      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 已提交
228
        box-shadow: inset 2px 0 0 0 $active-item-blue;
A
Alfredo Sumaran 已提交
229 230 231 232 233 234

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

A
Alfredo Sumaran 已提交
235 236 237
      &:hover:not(.active) {
        background-color: $gray-lightest;
        box-shadow: inset 2px 0 0 0 $border-color;
238
        cursor: pointer;
A
Alfredo Sumaran 已提交
239 240
      }

A
Alfredo Sumaran 已提交
241 242 243 244 245 246 247 248
      &:first-child {
        border-top: none;
      }

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

A
Alfredo Sumaran 已提交
249
      .stage-nav-item-cell {
A
Alfredo Sumaran 已提交
250 251 252
        float: left;

        &.stage-name {
A
Alfredo Sumaran 已提交
253
          width: 65%;
A
Alfredo Sumaran 已提交
254 255 256
        }

        &.stage-median {
A
Alfredo Sumaran 已提交
257
          width: 35%;
A
Alfredo Sumaran 已提交
258 259 260 261 262 263
        }
      }

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

265 266
      .stage-empty,
      .not-available {
T
tauriedavis 已提交
267
        color: $gl-text-color-secondary;
A
Alfredo Sumaran 已提交
268
      }
A
Alfredo Sumaran 已提交
269 270 271
    }
  }

272 273 274 275 276
  .stage-panel-container {
    width: 100%;
    overflow: auto;
  }

A
Alfredo Sumaran 已提交
277
  .stage-panel {
278 279
    min-width: 968px;

A
Alfredo Sumaran 已提交
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304
    .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 已提交
305
    margin: 0 $gl-padding $gl-padding;
A
Alfredo Sumaran 已提交
306
    border-bottom: 1px solid $gray-darker;
A
Alfredo Sumaran 已提交
307 308 309 310 311 312 313
    @include clearfix;

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

A
Alfredo Sumaran 已提交
314 315
    .item-details,
    .item-time {
A
Alfredo Sumaran 已提交
316 317 318 319 320 321 322 323
      float: left;
    }

    .item-details {
      width: 75%;
    }

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

A
Alfredo Sumaran 已提交
326 327 328
      &.issue-title,
      &.commit-title,
      &.merge-merquest-title {
A
Alfredo Sumaran 已提交
329 330 331
        max-width: 100%;
        display: block;
        @include text-overflow();
A
Alfredo Sumaran 已提交
332 333

        a {
T
tauriedavis 已提交
334
          color: $gl-text-color;
A
Alfredo Sumaran 已提交
335
        }
A
Alfredo Sumaran 已提交
336 337 338 339 340 341
      }
    }

    .item-time {
      width: 25%;
      text-align: right;
A
Alfredo Sumaran 已提交
342 343 344
    }

    .total-time {
A
Alfredo Sumaran 已提交
345 346 347
      font-size: $cycle-analytics-big-font;
      color: $cycle-analytics-dark-text;

A
Alfredo Sumaran 已提交
348
      span {
A
Alfredo Sumaran 已提交
349
        color: $gl-text-color;
A
Alfredo Sumaran 已提交
350
        font-size: $gl-font-size;
A
Alfredo Sumaran 已提交
351 352
      }
    }
353

A
Alfredo Sumaran 已提交
354 355
    .issue-date,
    .build-date {
356 357
      color: $gl-text-color;
    }
A
Alfredo Sumaran 已提交
358

359 360 361
    .issue-link,
    .commit-author-link,
    .issue-author-link {
T
tauriedavis 已提交
362
      color: $gl-text-color;
363 364 365 366 367 368 369 370 371 372 373 374 375
    }

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

        svg {
          float: left;
        }
A
Alfredo Sumaran 已提交
376
      }
377
    }
378 379 380 381 382 383 384 385 386 387 388

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

391 392 393 394 395 396 397
  // Custom Styles for stage items
  .item-build-component {

    .item-title {
      .icon-build-status {
        float: left;
        margin-right: 5px;
A
Alfredo Sumaran 已提交
398 399
        position: relative;
        top: 2px;
400 401 402
      }

      .item-build-name {
T
tauriedavis 已提交
403
        color: $gl-text-color;
404 405 406
      }

      .pipeline-id {
T
tauriedavis 已提交
407
        color: $gl-text-color;
408 409 410 411 412 413 414 415 416 417 418 419 420
        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 已提交
421

422 423 424 425 426 427 428 429
      .short-sha {
        color: $gl-link-color;
        line-height: 1.3;
        vertical-align: top;
        font-weight: normal;
      }

      .fa {
T
tauriedavis 已提交
430
        color: $gl-text-color-secondary;
431 432 433 434
        font-size: $code_font_size;
      }
    }
  }
435

436 437
  .empty-stage,
  .no-access-stage {
438 439 440 441
    text-align: center;
    width: 75%;
    margin: 0 auto;
    padding-top: 130px;
T
tauriedavis 已提交
442
    color: $gl-text-color-secondary;
443

444 445 446 447 448 449
    h4 {
      color: $gl-text-color;
    }
  }

  .empty-stage {
450 451 452 453 454 455
    .icon-no-data {
      height: 36px;
      width: 78px;
      display: inline-block;
      margin-bottom: 20px;
    }
456
  }
457

458 459 460 461 462 463
  .no-access-stage {
    .icon-lock {
      height: 36px;
      width: 78px;
      display: inline-block;
      margin-bottom: 20px;
464 465
    }
  }
F
Fatih Acet 已提交
466
}
467 468 469 470 471 472 473 474 475 476 477 478

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

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

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

480 481 482 483 484 485 486
  .overview-icon {
    svg {
      width: 365px;
      height: 227px;
    }
  }
}