cycle_analytics.scss 5.6 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 25 26 27 28 29 30 31
  .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 {
      width: 16%;
      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 50 51 52 53
    .delta-header {
      width: 12%;
    }

    .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 已提交
54 55 56 57
    .content-block {
      padding: 24px 0;
      border-bottom: none;
      position: relative;
58

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

    .column {
      text-align: center;
66

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

A
Alfredo Sumaran 已提交
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 238 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 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
  .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 {
          width: 40%;
        }

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

        &.stage-delta {
          width: 30%;

          .stage-direction {
            float: right;
            padding-right: $gl-padding;
          }
        }
      }

      .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;

      a {
        color: $gl-dark-link-color;
        max-width: 100%;
        display: block;
        @include text-overflow();
      }
    }

    .item-time {
      width: 25%;
      text-align: right;
      font-size: $cycle-analytics-big-font;
      color: $cycle-analytics-dark-text;

      abbr {
        font-size: $gl-font-size;
        color: $gl-text-color;
      }
    }
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347

    .commit-author-link {
      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 已提交
348
  }
F
Fatih Acet 已提交
349
}