buttons.less 2.5 KB
Newer Older
Miykael_xxm's avatar
Miykael_xxm 已提交
1 2 3 4 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
@color-blue: #0d96f0;
@color-orange: #fb5531;

.btn {
  border-radius: 4px;
  &:hover {
    opacity: 0.8;
  }
  &.btn-orange {
    background: @color-orange;
  }
  &.btn-primary {
    background: @color-blue;
  }
  &.starting {
    display: block;
    width: 280px;
    height: 60px;
    font-size: 20px;
    color: #ccc;
    margin: 120px auto;
    margin-bottom: 20px;
    pointer-events: none;
    background: #f5f5f5;
    border: none;
    position: relative;
    #progress-text {
      position: relative;
      z-index: 9;
    }
  }
}

#start,
#stop {
  display: inline-block;
  vertical-align: middle;
  width: 200px;
  height: 280px;
  border-radius: 4px;
  background: #fff;
  margin: 80px 40px;
  transition: all 0.3s;
  transform: translate(0, 0);
  &:hover {
    transform: translate(0, -2px);
  }
  &.border-orange {
    border: 1px solid @color-orange;
    &:hover {
      box-shadow: 2px 2px 4px fade(@color-orange, 40%);
    }
  }
  &.border-blue {
    border: 1px solid @color-blue;
    &:hover {
      box-shadow: 2px 2px 4px fade(@color-blue, 60%);
    }
  }
  img {
    display: block;
    height: 120px;
    margin: 52px auto;
  }
  button {
    width: 180px;
    height: 40px;
    border: none;
    color: #ccc;
    padding: 8px 0;
    outline: none;
    border: none;
    font-size: 16px;
  }
}

#progress-log,
#progress-message {
  color: @color-orange;
  font-size: 16px;
  .progress-log-event {
    border: none;
  }
}

@-webkit-keyframes progress-bar-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}
@keyframes progress-bar-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}

#progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background-color: #fb5531;
  border: none;
  animation: progress-bar-stripes 2s linear infinite;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 40px 40px;
  transition: width 0.6s ease;
  box-shadow: inset 0 -1px 0 rgb(0 0 0 ~'/' 15%);
  height: 100%;
}

.running_container {
  margin: 0;
  margin-top: -20px;
  width: 100%;
  height: calc(100vh);
  padding: 0;
  position: relative;
  overflow: hidden;
  .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .content {
    position: relative;
    z-index: 9;
  }
}