Skip to content
Python
2.9 KB
Raw Blame
/* Approved three-column import-progress geometry. */
.r6-import-progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(140px, calc((100% - 32px) / 3));
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  overflow-anchor: none;
}
/* One or two cards stay the same width as the three-up row and sit in the middle.
   safe center falls back to the start if the pair would overflow a narrow column.
   Three or more keep the existing row and scroll horizontally. */
.r6-import-progress[data-count="1"],
.r6-import-progress[data-count="2"] {
  justify-content: safe center;
  overflow-x: hidden;
}
.r6-import-progress-card {
  box-sizing: border-box;
  position: relative;
  min-height: 218px;
  min-width: 0;
  padding: 16px 12px 12px;
  background:
    linear-gradient(rgb(224 237 245 / 45%), rgb(224 237 245 / 45%)),
    rgb(255 255 255 / 12%);
  text-align: center;
  color: #262a2e;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 18px;
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 65%);
  backdrop-filter: blur(16px);
  scroll-snap-align: start;
}
.r6-import-progress-orbit {
  width: 96px;
  height: 96px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}
.r6-import-progress-orbit > span {
  position: absolute;
  inset: 6px;
  border: 3px solid #d5e2e9;
  border-radius: 50%;
}
.r6-import-progress-card[data-running="true"] .r6-import-progress-orbit > span {
  border-top-color: #6f8796;
  border-right-color: #6f8796;
  animation: r6-import-orbit 1.8s linear infinite;
}
.r6-import-progress-orbit img {
  object-fit: contain;
}
.r6-import-progress-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #dee7ee;
  background: #f6f8fa;
  border-radius: 12px;
}
.r6-import-progress-card h2 {
  margin: 0;
  font:
    600 15px / 25px "Noto Sans SC",
    "PingFang SC",
    sans-serif;
  overflow-wrap: anywhere;
}
.r6-import-progress-card p {
  margin: 6px 0 0;
  font:
    400 12px / 20px "Noto Sans SC",
    "PingFang SC",
    sans-serif;
  color: #5a6169;
}
.r6-import-progress-card small {
  display: block;
  margin-top: 9px;
  font-size: 11px;
  line-height: 18px;
  color: #63707b;
}
.r6-import-progress-card h2 + small {
  margin-top: 6px;
}
@keyframes r6-import-orbit {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .r6-import-progress-card[data-running="true"]
    .r6-import-progress-orbit
    > span {
    animation: none;
  }
}
[data-native-reduce-motion="true"]
  .r6-import-progress-card[data-running="true"]
  .r6-import-progress-orbit
  > span {
  animation: none;
}
@media (prefers-reduced-transparency: reduce) {
  .r6-import-progress-card {
    background: #e9f1f5;
  }
}
[data-native-reduce-transparency="true"] .r6-import-progress-card {
  background: #e9f1f5;
}