view mrjunejune/src/tools/latex_editor/index.css @ 279:b3b547563ec7

Add Google connector service and agent wiki Implement the C/Seobeo Google Drive and Gmail connector with encrypted OAuth storage, Zenbu authentication, browser testing, AI tool discovery, chunked HTTP decoding, and Bazel coverage. Consolidate repository guidance into progressive wiki documentation and enforce arena-first allocation for new first-party C code. Co-authored-by: Copilot <[email protected]> Copilot-Session: 84c338fd-0939-4bb3-b7f3-1062eb213e5d
author MrJuneJune <me@mrjunejune.com>
date Mon, 17 Aug 2026 22:22:36 -0700
parents 60a876c4587a
children
line wrap: on
line source

.latex-page {
  width: min(1500px, calc(100% - 2rem));
  max-width: none;
  margin: 1.5rem auto 3rem;
}

.latex-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.latex-heading h1,
.latex-heading p {
  margin-bottom: 0.4rem;
}

.latex-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.latex-actions zen-button {
  display: inline-flex;
}

.latex-actions button,
.button-link {
  border: 2px solid var(--black);
  border-radius: var(--zenbu-sys-radius-control);
  background: var(--awesome);
  color: var(--black);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.latex-actions button.secondary {
  background: transparent;
}

.latex-actions button:disabled,
.button-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.auto-compile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.latex-status {
  min-height: 1.5em;
  margin: 0.5rem 0 1rem;
  font-weight: 700;
}

.latex-status[data-state="working"] {
  color: var(--orange);
}

.latex-status[data-state="ready"] {
  color: var(--blue);
}

.latex-status[data-state="error"] {
  color: var(--red);
}

.latex-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  min-height: 72vh;
}

.latex-panel {
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--black);
  border-radius: var(--zenbu-sys-radius-panel);
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.12);
}

.editor-panel:focus-within {
  outline: 4px solid var(--awesome);
  outline-offset: 2px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zenbu-sys-control-gap-md);
  min-height: var(--zenbu-sys-control-height-lg);
  padding:
    var(--zenbu-sys-control-padding-block-sm)
    var(--zenbu-sys-control-padding-inline-md);
  border-bottom: 2px solid var(--black);
  background: var(--gray-gradient);
}

.panel-heading h2,
.panel-heading span {
  margin: 0;
  font-size: var(--zenbu-sys-font-size-sm);
}

#latexSource {
  display: block;
  width: 100%;
  height: calc(72vh - 50px);
  min-height: 540px;
  resize: vertical;
  box-sizing: border-box;
  padding: var(--zenbu-sys-padding-md);
  border: 0;
  outline: 0;
  background: #111318;
  color: #f4f4f5;
  caret-color: #f4f4f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: var(--zenbu-sys-font-size-sm);
  line-height: var(--zenbu-sys-line-height-md);
  tab-size: 2;
}

#pdfPreview {
  display: block;
  width: 100%;
  height: calc(72vh - 50px);
  min-height: 540px;
  border: 0;
  background: #525659;
}

.latex-diagnostics {
  width: 100%;
  height: calc(72vh - 50px);
  min-height: 540px;
  box-sizing: border-box;
  overflow: auto;
  margin: 0;
  padding: 1rem;
  white-space: pre-wrap;
  background: #1e1e1e;
  color: #ffb4ab;
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.latex-notes {
  margin-top: 1.5rem;
}

.latex-notes h2,
.latex-notes p {
  margin-bottom: 0.4rem;
}

@media (max-width: 900px) {
  .latex-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .latex-actions {
    justify-content: flex-start;
  }

  .latex-workspace {
    grid-template-columns: 1fr;
  }

  #latexSource,
  #pdfPreview,
  .latex-diagnostics {
    height: 65vh;
    min-height: 480px;
  }
}

@media (max-width: 520px) {
  .latex-page {
    width: min(100% - 1rem, 1500px);
  }

  .latex-actions {
    align-items: stretch;
  }

  .latex-actions button,
  .button-link {
    flex: 1 1 45%;
    text-align: center;
  }

  .latex-actions zen-button {
    flex: 1 1 45%;
  }

  .latex-actions zen-button > :where(button, a) {
    width: 100%;
  }
}