html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  box-sizing: border-box;
  background: #eee;
}
.container {
  margin: 16px;
  overflow-y: auto;
}
.row {
  background-color: #fff;
  padding: 20px;
}
.row + .row {
  margin-top: 16px;
  border-radius: 10px;
}
.switch {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: #eee;
  border-radius: 24px;
  width: 100px;
  height: 40px;
  cursor: pointer;
}
.switch .track {
  width: 100%;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: justify;
      justify-content: space-between;
  line-height: 20px;
  padding: 10px 15px;
  color: #fff;
  box-sizing: border-box;
}
.switch .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 20px;
}
.switch-enter,
.switch-leave-to {
  background-color: #aaa;
}
.switch-enter .thumb,
.switch-leave-to .thumb {
  left: 2px;
}
.switch-enter-active {
  background-color: #3f51b5;
  transition: background-color 300ms;
}
.switch-enter-active .thumb {
  left: 62px;
  transition: left 300ms;
}
.switch-leave-active {
  background-color: #aaa;
  transition: background-color 300ms;
}
.switch-leave-active .thumb {
  left: 2px;
  transition: left 300ms;
}
.switch-leave,
.switch-enter-to {
  background: #3f51b5;
}
.switch-leave .thumb,
.switch-enter-to .thumb {
  left: 62px;
}
.btn {
  line-height: 2rem;
  padding: 0 1rem;
  font-size: 18px;
}
.dialog {
  z-index: 10;
  position: fixed;
  width: 400px;
  height: 300px;
  text-align: center;
  top: 50%;
  left: 50%;
  margin-left: -150px;
  margin-top: -200px;
  background: #fff;
  transform-origin: center;
  border-radius: 10px;
}
.dialog-enter,
.dialog-leave-to {
  opacity: 0;
  box-shadow: none;
  transform: scale(0);
}
.dialog-enter-active,
.dialog-leave-active {
  opacity: 1;
  box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
  transition: all 300ms;
}
.dialog-enter-active {
  transform: scale(1);
}
.dialog-leave-active {
  transform: scale(0);
}
.dialog-leave,
.dialog-enter-to {
  box-shadow: 0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
}
