buttons.css 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
.btn {
  border-radius: 4px;
}
.btn:hover {
  opacity: 0.8;
}
.btn.btn-orange {
  background: #fb5531;
}
.btn.btn-primary {
  background: #0d96f0;
}
.btn.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;
}
.btn.starting #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);
}
#start:hover,
#stop:hover {
  transform: translate(0, -2px);
}
#start.border-orange,
#stop.border-orange {
  border: 1px solid #fb5531;
}
#start.border-orange:hover,
#stop.border-orange:hover {
  box-shadow: 2px 2px 4px rgba(251, 85, 49, 0.4);
}
#start.border-blue,
#stop.border-blue {
  border: 1px solid #0d96f0;
}
#start.border-blue:hover,
#stop.border-blue:hover {
  box-shadow: 2px 2px 4px rgba(13, 150, 240, 0.6);
}
#start img,
#stop img {
  display: block;
  height: 120px;
  margin: 52px auto;
}
#start button,
#stop button {
  width: 180px;
  height: 40px;
  color: #ccc;
  padding: 8px 0;
  outline: none;
  border: none;
  font-size: 16px;
}
#progress-log,
#progress-message {
  color: #fb5531;
  font-size: 16px;
}
#progress-log .progress-log-event,
#progress-message .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;
  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 #000000;
  height: 100%;
}
.running_container {
  margin: 0;
  margin-top: -20px;
  width: 100%;
  height: calc(100vh);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.running_container .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.running_container .content {
  position: relative;
  z-index: 9;
}