Skip to content

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

2.6 KB
Raw Blame
.portal-home {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  max-width: 78rem;
  margin: 0 auto;
}

/* Paid-tier greeting header */
.portal-home__greeting {
  margin-bottom: -0.25rem;
}
.portal-home__greeting-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text-muted);
}
.portal-home__greeting-date {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--c-text-subtle);
}

/* Two-column dashboard row (activity + quick actions) */
.portal-home__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 60rem) {
  .portal-home__row {
    grid-template-columns: 1fr;
  }
}

/* Quick actions card */
.portal-home__quick-head {
  margin-bottom: 0.625rem;
}

.portal-home__quick-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-text);
}

.portal-home__quick-sub {
  font-size: 0.75rem;
  color: var(--c-text-subtle);
}

.portal-home__quick-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Visual container only — layout (icon / text / arrow) is handled by the
   shared Button's leftSection / label / rightSection, not overridden here. */
.portal-home__quick-row {
  background: var(--color-bg-subtle);
  border: 1px solid var(--c-border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast);
}

.portal-home__quick-row:hover {
  background: var(--c-hover);
  border-color: var(--c-border);
}

/* Let the label grow so the arrow (rightSection) is pushed to the far right,
   and don't clip the stacked subtitle. */
.portal-home__quick-row .mantine-Button-label {
  flex: 1 1 auto;
  justify-content: flex-start;
  overflow: visible;
}

.portal-home__quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.portal-home__quick-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.portal-home__quick-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.portal-home__quick-text strong {
  font-size: 0.8125rem;
  color: var(--c-text);
  font-weight: 600;
}

.portal-home__quick-text span {
  font-size: 0.75rem;
  color: var(--c-text-subtle);
}

.portal-home__quick-arrow {
  display: inline-flex;
  font-size: 0.875rem;
  color: var(--c-text-subtle);
}
.portal-home__quick-arrow svg {
  width: 1rem;
  height: 1rem;
}

.portal-home__quick-row:hover .portal-home__quick-arrow {
  color: var(--c-accent-text);
}