Wiki-tmp/src/styles/official-attributions.css

src / styles / official-attributions.css

src/styles/official-attributions.css · 2.2 KB

/* The shared Team shell owns the sidebar, decorated frame and document
   timeline. Only the live iframe's complete content height is page-specific. */
.official-attributions-page__form {
  box-sizing: border-box;
  min-height: 0;
  padding: clamp(40px, 5vw, 64px) clamp(26px, 5vw, 72px);
}

.official-attributions-page__form iframe {
  display: block;
  width: 100%;
  height: var(--attribution-form-height, 900px);
  border: 0;
  background: #ffffff;
}

.official-attributions-page__document {
  position: relative;
}

.official-attributions-page__jump-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.official-attributions-page__jump-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.official-attributions-page__jump-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.official-attributions-page__jump-chip {
  appearance: none;
  border: 1px solid #f3f4f6;
  background: #f9fafb;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.4;
}

.official-attributions-page__jump-chip:hover {
  background: #f3f4f6;
  color: #111827;
}

.official-attributions-page__jump-chip.is-active {
  background: #e5e7eb;
  color: #111827;
  border-color: #e5e7eb;
}

.official-attributions-page__bookmark {
  position: absolute;
  top: var(--attribution-bookmark-top);
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  scroll-margin-top: calc(var(--header-height) + 32px);
}

/* No reveal/transform choreography on the live embedded document. */
.official-attributions-page__form,
.official-attributions-page__form iframe {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.official-attributions-page .wiki-outline__drawer-head {
  display: none;
}

@media (max-width: 980px) {
  .official-attributions-page__form {
    padding: 24px 18px;
  }
  .official-attributions-page .wiki-outline__drawer-head {
    display: flex;
  }
}

← 返回文件树 · 在 GitHub 上查看