Skip to content

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

3.1 KB
Raw Blame
.sui-settings-shell {
  display: flex;
  height: min(80vh, 36rem);
  min-height: 22rem;
}

/* Left navigation rail */
.sui-settings-shell__nav {
  width: 14rem;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--color-bg-subtle);
  border-right: 1px solid var(--c-border-subtle);
}

.sui-settings-shell__group {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sui-settings-shell__group-title {
  padding: 0 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
}

.sui-settings-shell__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-muted);
  cursor: pointer;
  transition:
    background var(--motion-fast),
    color var(--motion-fast);
}
.sui-settings-shell__item:hover:not(:disabled) {
  background: var(--c-hover);
  color: var(--c-text);
}
.sui-settings-shell__item.is-active {
  background: var(--c-hover);
  color: var(--c-text);
  box-shadow: inset 2px 0 0 var(--c-primary);
}
.sui-settings-shell__item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sui-settings-shell__item-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: currentColor;
}
.sui-settings-shell__item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sui-settings-shell__item-badge {
  flex-shrink: 0;
}

/* Right content pane */
.sui-settings-shell__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
}

.sui-settings-shell__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--c-border-subtle);
}
.sui-settings-shell__title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--c-text);
}
.sui-settings-shell__header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Sizing/background/hover are owned by the Button; this just keeps it from
 * stretching. */
.sui-settings-shell__close {
  flex: 0 0 auto;
}

.sui-settings-shell__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.sui-settings-shell__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--c-border-subtle);
}

/* On a phone the rail collapses to a horizontal strip above the content. */
@media (max-width: 40rem) {
  .sui-settings-shell {
    flex-direction: column;
    height: 100%;
  }
  .sui-settings-shell__nav {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-right: none;
    border-bottom: 1px solid var(--c-border-subtle);
  }
  .sui-settings-shell__group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  .sui-settings-shell__group-title {
    display: none;
  }
}