.direct-upload {
  display: inline-block;
  position: relative;
  padding: 2px 4px;
  margin: 0 3px 3px 0;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  font-size: 11px;
  line-height: 13px;
}

.direct-upload--pending {
  opacity: 0.6;
}

.direct-upload__progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  opacity: 0.2;
  background: #0076ff;
  transition: width 120ms ease-out, opacity 60ms 60ms ease-in;
  transform: translate3d(0, 0, 0);
}

.direct-upload--complete .direct-upload__progress {
  opacity: 0.4;
}

.direct-upload--error {
  border-color: red;
}

input[type=file][data-direct-upload-url][disabled] {
  display: none;
}

[v-cloak] {
  display: none;
}

@keyframes underline {
  0% {
    left: 50%;
    width: 0;
  }
  100% {
    left: 0;
    width: 100%;
  }
}

.animated-underline:hover {
  text-decoration: none;
}

.animated-underline:after {
  position: absolute;
  height: 4px;
  background-color: #419ecd;
  display: block;
  content: "";
  bottom: calc(1rem - 4px);
  animation: underline 0.4s ease-out 0s normal 1 forwards;
}

.striped {
  &:nth-child(even) {
    background: #f8fafc;
  }
}

.markdown {
  line-height: 1.25rem;

  p {
    margin-bottom: 1rem;
  }

  table {
    border-collapse: collapse;
    margin: 1rem 0;
  }

  table, th, td {
    border: 1px solid #b8c2cc;
  }

  th, td {
    padding: 0.5rem;
  }

  th {
    text-align: center !important;
  }

  td {
    height: 3rem;
  }
}

.markdown-legacy {
  line-height: 1.25rem;

  p {
    margin-bottom: 1rem;
  }

  table {
    margin-bottom: 10px;
  }

  table td {
    border-top: 1px solid #f3f3f3;
    border-bottom: 1px solid #f3f3f3;
    padding: 3px 5px;
  }
}

.async-action {
  border: 2px solid transparent;
  transition: all 0.5s ease-in;
}

.async-action-success {
  border: 2px solid green;
}
