_progress.scss 840 字节
Newer Older
C
codecalm 已提交
1 2 3 4 5 6 7 8 9 10 11 12
@keyframes progress-indeterminate {
  0% {
    left: -35%;
    right: 100%
  }

  100%, 60% {
    left: 100%;
    right: -90%
  }
}

C
chomik 已提交
13
.progress {
C
codecalm 已提交
14
  appearance: none;
15
  line-height: $progress-height;
C
codecalm 已提交
16 17 18 19
  position: relative;
  width: 100%;

  &::-webkit-progress-bar {
20
    background: $gray-100;
C
codecalm 已提交
21 22 23 24 25 26 27 28 29 30 31 32 33 34
  }

  &::-webkit-progress-value {
    background-color: $primary
  }

  &::-moz-progress-bar {
    background-color: $primary
  }

  &::-ms-fill {
    background-color: $primary;
    border: none
  }
C
chomik 已提交
35 36
}

C
codecalm 已提交
37
.progress-sm {
C
chomik 已提交
38 39
  height: .25rem;
}
C
chomik 已提交
40

C
codecalm 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
.progress-bar-indeterminate {
  &:after,
  &:before {
    content: '';
    position: absolute;
    background-color: inherit;
    left: 0;
    will-change: left, right;
    top: 0;
    bottom: 0;
  }

  &:before {
    animation: progress-indeterminate 2.1s cubic-bezier(.65, .815, .735, .395) infinite;
  }
C
chomik 已提交
56
}