Newer
Older
gnexus-book / ui / src / styles.css
@Eugene Sukhodolskiy Eugene Sukhodolskiy 2 days ago 4 KB Fix UI layout and font serving
body {
  margin: 0;
  background: #16161e;
  color: #c0caf5;
}

#app {
  min-height: 100vh;
}

.gnb-shell {
  width: min(100% - 48px, 1380px);
  max-width: none;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.gnb-shell > .page-header,
.gnb-shell > .section {
  width: 100%;
}

.gnb-shell .page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.gnb-shell .page-header-actions,
.gnb-shell .toolbar > .toolbar-group:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.gnb-shell .btn {
  white-space: nowrap;
}

.gnb-shell .btn.with-icon {
  min-width: 150px;
}

.gnb-shell .tabs {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.gnb-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 24px 0;
}

.gnb-list {
  display: grid;
  gap: 8px;
}

.gnb-row {
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px solid rgba(192, 202, 245, 0.24);
}

.gnb-row span {
  overflow-wrap: anywhere;
  color: #a9b1d6;
}

.gnb-row-button {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(192, 202, 245, 0.24);
  background: transparent;
  color: #c0caf5;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gnb-row-button:hover,
.gnb-row-button.is-active {
  background: rgba(122, 162, 247, 0.16);
}

.gnb-list > .gnb-row-button {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
  padding: 12px 15px;
}

.gnb-list > .gnb-row-button strong,
.gnb-list > .gnb-row-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.gnb-inventory,
.gnb-docs,
.gnb-changes,
.gnb-git {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.gnb-detail {
  min-width: 0;
}

.gnb-detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.gnb-json {
  min-height: 320px;
  max-height: 70vh;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 2px solid rgba(192, 202, 245, 0.24);
  border-left-width: 6px;
  background: #1f2335;
  color: #c0caf5;
  font-size: 13px;
  line-height: 1.5;
}

.gnb-json-small {
  min-height: 120px;
  max-height: 240px;
}

.gnb-doc-detail {
  display: grid;
  gap: 20px;
}

.gnb-doc-detail h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.gnb-markdown {
  min-height: 360px;
  max-height: 70vh;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 2px solid rgba(192, 202, 245, 0.24);
  border-left-width: 6px;
  background: #1f2335;
  color: #c0caf5;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: normal;
}

.gnb-checkbox-row {
  grid-template-columns: 24px 48px minmax(0, 1fr);
}

.gnb-checkbox-row input {
  width: 16px;
  height: 16px;
}

.gnb-checkbox-row.is-disabled {
  opacity: 0.52;
}

.gnb-commit {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.gnb-changes-workspace {
  display: grid;
  gap: 24px;
}

.gnb-proposal {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.gnb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gnb-field {
  display: grid;
  gap: 6px;
}

.gnb-field span {
  font-size: 13px;
  font-weight: 600;
}

.gnb-field textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  padding: 10px 12px;
  border: 2px solid #c0caf5;
  border-bottom-width: 6px;
  background: rgba(192, 202, 245, 0.045);
  color: #c0caf5;
  font: inherit;
}

.gnb-error {
  margin-top: 16px;
  color: #f7768e;
}

@media (max-width: 760px) {
  .gnb-shell {
    width: min(100% - 24px, 1380px);
    padding: 16px 0 40px;
  }

  .gnb-shell .page-header {
    grid-template-columns: 1fr;
  }

  .gnb-shell .page-header-actions,
  .gnb-shell .toolbar > .toolbar-group:last-child {
    justify-content: flex-start;
  }

  .gnb-status,
  .gnb-row,
  .gnb-docs,
  .gnb-changes,
  .gnb-git,
  .gnb-inventory,
  .gnb-detail-grid,
  .gnb-form-grid {
    grid-template-columns: 1fr;
  }
}