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 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 {
A
Alfredo Sumaran 已提交
26
      width: 26%;
A
Alfredo Sumaran 已提交
27 28 29 30
      padding-left: $gl-padding;
    }

    .median-header {
A
Alfredo Sumaran 已提交
31
      width: 14%;
A
Alfredo Sumaran 已提交
32
    }
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
      @media (max-width: $screen-xs-max) {
57
        padding: 6px 0 24px;
58
      }
F
Fatih Acet 已提交
59 60 61 62
    }

    .column {
      text-align: center;
63

64
      @media (max-width: $screen-xs-max) {
65 66
        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
        @media (max-width: $screen-xs-max) {
82 83
          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
          line-height: 19px;
112
          font-size: 14px;
F
Fatih Acet 已提交
113
          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;
A
Alfredo Sumaran 已提交
144
      right: $cycle-analytics-box-padding;
F
Fatih Acet 已提交
145
      cursor: pointer;
S
Sam Rose 已提交
146
      color: $cycle-analytics-dismiss-icon-color;
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
      @media (max-width: $screen-xs-max) {
160
        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

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

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

A
Alfredo Sumaran 已提交
237 238 239 240 241 242 243 244
      &:first-child {
        border-top: none;
      }

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

A
Alfredo Sumaran 已提交
245
      .stage-nav-item-cell {
A
Alfredo Sumaran 已提交
246 247 248
        float: left;

        &.stage-name {
A
Alfredo Sumaran 已提交
249
          width: 65%;
A
Alfredo Sumaran 已提交
250 251 252
        }

        &.stage-median {
A
Alfredo Sumaran 已提交
253
          width: 35%;
A
Alfredo Sumaran 已提交
254 255 256 257 258 259
        }
      }

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

261 262
      .stage-empty,
      .not-available {
A
Alfredo Sumaran 已提交
263 264
        color: $gl-text-color-light;
      }
A
Alfredo Sumaran 已提交
265 266 267
    }
  }

268 269 270 271 272
  .stage-panel-container {
    width: 100%;
    overflow: auto;
  }

A
Alfredo Sumaran 已提交
273
  .stage-panel {
274 275
    min-width: 968px;

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

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

A
Alfredo Sumaran 已提交
310 311
    .item-details,
    .item-time {
A
Alfredo Sumaran 已提交
312 313 314 315 316 317 318 319
      float: left;
    }

    .item-details {
      width: 75%;
    }

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

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

        a {
          color: $gl-dark-link-color;
        }
A
Alfredo Sumaran 已提交
332 333 334 335 336 337
      }
    }

    .item-time {
      width: 25%;
      text-align: right;
A
Alfredo Sumaran 已提交
338 339 340
    }

    .total-time {
A
Alfredo Sumaran 已提交
341 342 343
      font-size: $cycle-analytics-big-font;
      color: $cycle-analytics-dark-text;

A
Alfredo Sumaran 已提交
344
      span {
A
Alfredo Sumaran 已提交
345
        color: $gl-text-color;
A
Alfredo Sumaran 已提交
346
        font-size: $gl-font-size;
A
Alfredo Sumaran 已提交
347 348
      }
    }
349

A
Alfredo Sumaran 已提交
350 351
    .issue-date,
    .build-date {
352 353
      color: $gl-text-color;
    }
A
Alfredo Sumaran 已提交
354

355 356 357
    .issue-link,
    .commit-author-link,
    .issue-author-link {
358 359 360 361 362 363 364 365 366 367 368 369 370 371
      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 已提交
372
      }
373
    }
374 375 376 377 378 379 380 381 382 383 384

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

387 388 389 390 391 392 393
  // Custom Styles for stage items
  .item-build-component {

    .item-title {
      .icon-build-status {
        float: left;
        margin-right: 5px;
A
Alfredo Sumaran 已提交
394 395
        position: relative;
        top: 2px;
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
      }

      .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 已提交
417

418 419 420 421 422 423 424 425 426 427 428 429 430
      .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;
      }
    }
  }
431

432 433
  .empty-stage,
  .no-access-stage {
434 435 436 437 438 439
    text-align: center;
    width: 75%;
    margin: 0 auto;
    padding-top: 130px;
    color: $gl-text-color-light;

440 441 442 443 444 445
    h4 {
      color: $gl-text-color;
    }
  }

  .empty-stage {
446 447 448 449 450 451
    .icon-no-data {
      height: 36px;
      width: 78px;
      display: inline-block;
      margin-bottom: 20px;
    }
452
  }
453

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

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

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

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

476 477 478 479 480 481 482
  .overview-icon {
    svg {
      width: 365px;
      height: 227px;
    }
  }
}