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

A
Alfredo Sumaran 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  .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 {
25
      width: 28%;
A
Alfredo Sumaran 已提交
26 27 28 29 30 31
      padding-left: $gl-padding;
    }

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

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

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

    .column {
      text-align: center;
62

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

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

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

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

  .bordered-box {
    border: 1px solid $border-color;
C
Clement Ho 已提交
89
    border-radius: $border-radius-default;
F
Fatih Acet 已提交
90 91 92 93 94
  }

  .content-list {
    li {
      padding: 18px $gl-padding $gl-padding;
F
Fatih Acet 已提交
95 96 97 98

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

F
Fatih Acet 已提交
101
    .title-col {
102 103 104 105
      p {
        margin: 0;

        &.title {
F
Fatih Acet 已提交
106 107 108
          line-height: 19px;
          font-size: 15px;
          font-weight: 600;
109
          color: $gl-title-color;
F
Fatih Acet 已提交
110
        }
111

112 113
        &.text {
          color: $layout-link-gray;
114

115 116 117
          &.value-col {
            color: $gl-title-color;
          }
F
Fatih Acet 已提交
118 119 120 121
        }
      }
    }

F
Fatih Acet 已提交
122 123
    .value-col {
      text-align: right;
F
Fatih Acet 已提交
124

F
Fatih Acet 已提交
125
      span {
126 127 128
        position: relative;
        vertical-align: middle;
        top: 3px;
F
Fatih Acet 已提交
129
      }
F
Fatih Acet 已提交
130
    }
F
Fatih Acet 已提交
131
  }
F
Fatih Acet 已提交
132

F
Fatih Acet 已提交
133
  .landing {
F
Filipa Lacerda 已提交
134
    margin-bottom: $gl-padding;
F
Fatih Acet 已提交
135
    overflow: hidden;
F
Fatih Acet 已提交
136

F
Fatih Acet 已提交
137 138
    .dismiss-icon {
      position: absolute;
139
      right: $cycle-analytics-box-padding;
F
Fatih Acet 已提交
140
      cursor: pointer;
141
      color: #b2b2b2;
F
Fatih Acet 已提交
142 143
    }

144 145
    .svg-container {
      text-align: center;
146

147 148 149 150
      svg {
        width: 136px;
        height: 136px;
      }
F
Fatih Acet 已提交
151
    }
152

F
Fatih Acet 已提交
153
    .inner-content {
154 155
      @media (max-width: $screen-sm-min) {
        padding: 0 28px;
156
        text-align: center;
157
      }
F
Fatih Acet 已提交
158

F
Fatih Acet 已提交
159 160 161 162
      h4 {
        color: $gl-text-color;
        font-size: 17px;
      }
F
Fatih Acet 已提交
163

F
Fatih Acet 已提交
164
      p {
165
        color: $cycle-analytics-box-text-color;
F
Filipa Lacerda 已提交
166
        margin-bottom: $gl-padding;
F
Fatih Acet 已提交
167
      }
F
Fatih Acet 已提交
168
    }
F
Fatih Acet 已提交
169
  }
F
Fatih Acet 已提交
170

F
Fatih Acet 已提交
171 172 173 174 175 176
  .fa-spinner {
    font-size: 28px;
    position: relative;
    margin-left: -20px;
    left: 50%;
    margin-top: 36px;
F
Fatih Acet 已提交
177
  }
F
Fatih Acet 已提交
178

A
Alfredo Sumaran 已提交
179 180 181 182 183 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 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237
  .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;
      border-top: solid 1px transparent;
      border-bottom: solid 1px transparent;
      border-right: solid 1px $border-color;
      background-color: $gray-light;

      &.active {
        background-color: transparent;
        border-right-color: transparent;
        border-top-color: $border-color;
        border-bottom-color: $border-color;
        box-shadow: inset 2px 0px 0px 0px $active-item-blue;

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

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

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

      > div {
        float: left;

        &.stage-name {
238
          width: 70%;
A
Alfredo Sumaran 已提交
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 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 295 296 297
        }

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

      .stage-name {
        padding-left: 16px;
      }
    }
  }

  .stage-panel {
    .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;
    margin: 0 $gl-padding $gl-padding $gl-padding;
    border-bottom: solid 1px $gray-darker;
    @include clearfix;

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

    .item-details, .item-time {
      float: left;
    }

    .item-details {
      width: 75%;
    }

    .item-title {
      margin: 0 0 2px 0;

298
      .issue-title {
A
Alfredo Sumaran 已提交
299 300 301 302 303 304 305 306 307 308
        color: $gl-dark-link-color;
        max-width: 100%;
        display: block;
        @include text-overflow();
      }
    }

    .item-time {
      width: 25%;
      text-align: right;
A
Alfredo Sumaran 已提交
309 310 311
    }

    .total-time {
A
Alfredo Sumaran 已提交
312 313 314
      font-size: $cycle-analytics-big-font;
      color: $cycle-analytics-dark-text;

A
Alfredo Sumaran 已提交
315
      span {
A
Alfredo Sumaran 已提交
316
        color: $gl-text-color;
A
Alfredo Sumaran 已提交
317
        font-size: $gl-font-size;
A
Alfredo Sumaran 已提交
318 319
      }
    }
320

321 322 323 324 325 326 327
    .issue-date {
      color: $gl-text-color;
    }
    
    .issue-link,
    .commit-author-link,
    .issue-author-link {
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343
      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 已提交
344
  }
345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 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;
      }

      .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;
      }
      
      .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;
      }
    }
  }
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406

  .empty-stage {
    text-align: center;
    width: 75%;
    margin: 0 auto;
    padding-top: 130px;
    color: $gl-text-color-light;

    .icon-no-data {
      height: 36px;
      width: 78px;
      display: inline-block;
      margin-bottom: 20px;
    }

    h4 {
      color: $gl-text-color;
    }
  }
F
Fatih Acet 已提交
407
}