Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

7.1 KB
Raw Blame
.header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.headerText {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  color: var(--c-text);
}

.subtitle {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}

.body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.settingRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--c-border-subtle);
  border-bottom: 1px solid var(--c-border-subtle);
}

.settingLabel {
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--c-text);
  white-space: nowrap;
}

.settingControl {
  flex: 0 1 13rem;
  min-width: 0;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--c-surface-sunken);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--c-text-muted);
}

.noteBody {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  min-width: 0;
}

.noteText {
  margin: 0;
}

.inlineCode {
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--c-text);
  white-space: nowrap;
}

.noteLink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--font-weight-medium);
  color: var(--c-accent-text);
  text-decoration: none;
}

.noteLink:hover {
  text-decoration: underline;
}

.noteIcon {
  flex: 0 0 auto;
  margin-top: 0.0625rem;
  color: var(--c-accent-fg, var(--c-primary));
}

.animatedHeight {
  transition: height var(--motion-slow);
}

/* A new formatting context, so child margins stay inside the measured height
   instead of collapsing through, and jumping, as the animation ends. */
.animatedContent {
  display: flow-root;
}

.animating {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .animatedHeight {
    transition: none;
  }
}

.noteWarning {
  background: var(--c-danger-subtle);
}

.noteWarning .noteIcon {
  color: var(--c-danger);
}

/* Room above and below the settings, so they don't crowd the title or the button. */
.frame .body {
  padding-block: var(--space-2) var(--space-4);
}

.actions {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

/* Side by side, wrapping to a stack with the primary last on narrow cards. */
.actions[data-choice="true"] {
  flex-direction: row;
  flex-wrap: wrap;
}

.actions[data-choice="true"] > * {
  flex: 1 1 10rem;
  min-width: 0;
}

.screen {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: var(--c-bg);
}

/* For URLs and other values longer than the card is wide. */
.inlineCodeWrap {
  white-space: normal;
  overflow-wrap: anywhere;
}

.topBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.75rem;
  margin-bottom: var(--space-3);
}

.progress {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--c-text-subtle);
}

.hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}

.expandToggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: calc(var(--space-2) * -1);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: transform var(--motion-fast);
}

.setupChoice {
  min-width: 0;
}

/* The chevron sits at the segment's right edge whatever the word beside it. */
.setupChoice :global(.mantine-SegmentedControl-innerLabel):has(.expandLabel) {
  width: 100%;
}

.expandLabel {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  width: 100%;
}

.expandLabelText {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* The details panel is the same grey as a segmented track, so a choice among
   its fields takes an input's well and a tinted pill instead. */
.groupDetailsBody :global(.sui-seg.mantine-SegmentedControl-root) {
  --sc-color: var(--c-active);
  background-color: var(--c-input-bg);
  box-shadow: inset 0 0 0 1px var(--c-border);
}

.expandToggle:hover {
  background: var(--c-hover);
}

.expandToggle[data-open="true"] {
  transform: rotate(180deg);
}

/* The card stops growing here; its header and body scroll, its actions stay. */
.frame {
  display: flex;
  flex-direction: column;
  max-height: min(42rem, calc(100vh - 8rem));
}

/* Focused only to take focus off a choice's buttons, not as a control. */
.frame:focus {
  outline: none;
}

/* The inline padding keeps a boxed setting's outward edge and inputs' focus
   rings clear of the scroll clip; it must exceed --setup-box-bleed. */
.frameScroll {
  /* A boxed row's padding and border. */
  --setup-box-bleed: calc(var(--space-4) + 1px);
  flex: 1 1 auto;
  min-height: 0;
  margin-inline: -1.5rem;
  padding-inline: 1.5rem;
  scrollbar-width: thin;
}

.frameScroll:not(.animating) {
  overflow-y: auto;
}

/* Back and the step count stay in reach while a long card scrolls under them. */
.frameScroll .topBar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-inline: -1.5rem;
  margin-bottom: 0;
  padding: 0 1.5rem var(--space-3);
  background: var(--auth-card-bg);
}

/* Only a setting that can open more fields is boxed. The box reaches out by its
   padding and border, so its contents line up with the settings around it. */
.group[data-expandable="true"] {
  margin-inline: calc(-1 * var(--setup-box-bleed));
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.groupRow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.group[data-expandable="true"] .groupRow {
  padding: var(--space-3) var(--space-4);
}

.groupRow .settingLabel {
  flex: 1 1 auto;
}

.groupFields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Grid rows animate between 0fr and 1fr, which height cannot do to auto. */
.groupDetails {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--motion-slow);
}

.groupDetails[data-open="true"] {
  grid-template-rows: 1fr;
}

.groupDetailsActions {
  display: flex;
  justify-content: flex-end;
}

.groupDetailsClip {
  min-height: 0;
  overflow: hidden;
}

.groupDetailsBody {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--c-border-subtle);
  background: var(--c-surface-sunken);
}

/* Tracks a resize that is itself animating, such as a group opening. */
.followResize {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .groupDetails,
  .expandToggle {
    transition: none;
  }
}