vextoly/gitman

Fork of patx/gitman.

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  color-scheme: dark;
  --page-bg: #000000;
  --ink: #ffffff;
  --text: #b3b3b3;
  --muted: #999999;
  --chip: #333333;
  --press: #e2e2e2;
  --surface: #161616;
  --surface-border: #262626;
  --code-bg: #1f1f1f;
  --app-font: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --code-font: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font: 1rem/1.5 var(--app-font);
}

main.page {
  flex: 1 1 auto;
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding: clamp(3rem, 9vh, 5.5rem) 24px clamp(3rem, 8vh, 5rem);
}

h1, h2, h3, h4 {
  margin: 0 0 .75rem;
  color: var(--ink);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 6vw, 2.5rem); line-height: 1.2; }
h2 { font-size: 1.25rem; line-height: 1.4; }
h3 { font-size: 1.05rem; line-height: 1.4; }

p, ul, ol, dl { margin: 0 0 .75rem; }
small { font-size: .875rem; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }

:is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

form { display: grid; gap: .9rem; }
label { display: grid; gap: .35rem; align-content: start; }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  font: inherit;
}
input::placeholder { color: var(--muted); }
textarea { resize: vertical; }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover {
  background: var(--ink);
  color: var(--page-bg);
  text-decoration: none;
}
button:active, .button:active {
  background: var(--press);
  color: var(--page-bg);
}
.button.small { min-height: 44px; padding: 8px 14px; }
.button.danger { background: var(--ink); color: var(--page-bg); }
.button.danger:hover { background: var(--press); }
.button.danger:active { background: var(--chip); color: var(--ink); }

form button[type="submit"] { justify-self: start; }

@media (prefers-reduced-motion: no-preference) {
  button, .button, .nav-icons, .repo-search-link, .ref-picker-option, .ref-picker-toggle, .mention-option {
    transition: background-color 150ms ease, color 150ms ease;
  }
}

code { font-family: var(--code-font); font-size: .9em; background: var(--code-bg); border-radius: 3px; padding: .12em .35em; }
pre {
  margin: 0 0 .75rem;
  overflow-x: auto;
  padding: .75rem 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  font: .875rem/1.55 var(--code-font);
}
pre code { padding: 0; background: transparent; border-radius: 0; font-size: inherit; }
.clone-box code {
  display: block;
  overflow-x: auto;
  padding: .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  font: .875rem/1.55 var(--code-font);
}
.diff { max-height: 70vh; overflow: auto; }
.edit-textarea {
  font-family: var(--code-font);
  font-size: .875rem;
  line-height: 1.55;
  white-space: pre;
  overflow-wrap: normal;
}
.license-body {
  max-height: 70vh;
  overflow: auto;
}

.copyable-code {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
}
.copyable-code pre {
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.code-actions {
  position: absolute;
  top: .4rem;
  right: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  z-index: 2;
}
.copyable-code pre.code {
  flex: 1 1 auto;
  min-width: 0;
  padding: .75rem 1rem;
}
.copyable-code pre.line-numbers {
  flex: 0 0 auto;
  overflow: hidden;
  padding: .75rem .75rem .75rem 1rem;
  color: var(--muted);
  text-align: right;
  user-select: none;
  border-right: 1px solid var(--surface-border);
}
.copy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
}
.copy-button:hover { background: var(--ink); color: var(--page-bg); text-decoration: none; }
.copy-button svg { width: 1rem; height: 1rem; fill: currentColor; }
.copy-button.is-copied { background: var(--ink); color: var(--page-bg); }
.copy-button.copy-error { outline: 2px solid var(--ink); outline-offset: 1px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .4rem .6rem; border: 1px solid var(--surface-border); text-align: left; }
th { color: var(--ink); font-weight: 700; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg {
  flex: 0 0 auto;
  transform: scale(2);
  transform-origin: center;
}
.nav, .repo-tabs, .filters, .tabs, .panel-heading, .hero-actions, .breadcrumb {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.nav { align-items: center; }
.panel-heading, .repo-header { justify-content: space-between; }
.panel-heading { margin-bottom: 1.25rem; }
.panel-heading h2 { margin: 0; }
.nav-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text);
}
.nav-icons:hover { color: var(--ink); text-decoration: none; }
.nav-icons svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.nav form, .repo-tabs form, .inline-form { display: inline; }

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 60rem;
  margin-inline: auto;
  padding: 1.5rem 24px 2.5rem;
  color: var(--muted);
  font-size: .875rem;
}
.colophon p { margin: 0; }
.colophon a { color: var(--muted); }
.colophon a:hover { color: var(--ink); text-decoration: underline; }

.repo-header, .profile-header { margin-bottom: 2.5rem; }
.repo-header { display: flex; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.panel { margin-bottom: 2.5rem; }
.panel > :last-child, .repo-header > :last-child, .auth-card > :last-child { margin-bottom: 0; }
.auth-card { max-width: 32rem; margin-bottom: 2.5rem; }
.auth-card.wide { max-width: 36rem; }
.repo-title-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.repo-title-row h1 { margin-bottom: 0; }

.repo-tabs .repo-tab { padding: .25rem 0; }
.repo-tab.active, .filters .active, .tabs .active {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.link-button, .button-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.link-button:hover, .button-link:hover {
  background: none;
  color: var(--ink);
  text-decoration: underline;
}

.eyebrow, .muted, .empty, .issue-list span { color: var(--muted); }
.eyebrow { font-size: .875rem; }

.repo-list, .clean-list, .commit-list, .file-list, .issue-list, .comment-list, .activity-feed {
  display: grid;
  gap: .75rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}
.commit-list li, .file-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; }
.commit-list li > code, .file-list li > code { justify-self: start; }

.meta-list { display: grid; grid-template-columns: 8rem 1fr; gap: .35rem 1rem; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; overflow-x: auto; }

.activity-feed { gap: 1rem; }
.activity-feed li { padding-bottom: 1rem; border-bottom: 1px solid var(--surface-border); }
.activity-feed li:last-child { border-bottom: 0; }
.activity-title, .activity-detail { margin-bottom: .25rem; }
.activity-detail { color: var(--text); }

.comment { padding-bottom: 1rem; border-bottom: 1px solid var(--surface-border); min-width: 0; }
.comment:last-child { border-bottom: 0; padding-bottom: 0; }
.comment-meta {
  display: flex;
  gap: .5rem;
  align-items: baseline;
  margin-bottom: .35rem;
}
.comment-body {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.comment-body > :last-child { margin-bottom: 0; }
.comment p, .activity-title, .activity-detail {
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.comment small, .activity-feed .muted { font-size: .875rem; }

.markdown-body { overflow-x: auto; }
.markdown-body img { max-width: 100%; }
.markdown-body h1 { font-size: 1.5rem; margin: 1.5rem 0 .75rem; }
.markdown-body h2 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
.markdown-body h3 { font-size: 1.05rem; margin: 1.25rem 0 .6rem; }
.markdown-body h1:first-child, .markdown-body h2:first-child, .markdown-body h3:first-child { margin-top: 0; }
.markdown-body blockquote {
  margin: 0 0 .75rem;
  padding: .25rem 0 .25rem 1rem;
  border-left: 2px solid var(--chip);
  color: var(--muted);
}
.markdown-body a { text-decoration: underline; }

.repo-search { position: relative; width: 18rem; max-width: 100%; align-self: flex-start; }
.repo-search-input { width: 350px; margin-bottom: 10px; }
.repo-search-form { display: block; margin: 0; }
.panel-heading > .repo-search { margin-left: auto; }
.hero-actions .repo-search-menu { left: 0; right: auto; }
.repo-search-menu {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  position: absolute;
  right: 0;
  top: calc(100% + .4rem);
  z-index: 25;
  width: 20rem;
  max-width: calc(100vw - 2rem);
  max-height: 20rem;
  overflow-y: auto;
  padding: .45rem;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface);
}
.repo-search-result { display: block; }
.repo-search-link {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: baseline;
  width: 100%;
  padding: .5rem .6rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}
.repo-search-link:hover, .repo-search-link:focus {
  background: var(--ink);
  color: var(--page-bg);
  text-decoration: none;
}
.repo-search-link strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.repo-search-link small { flex: 0 0 auto; white-space: nowrap; }
.repo-search-link small, .repo-search-empty { color: var(--muted); }
.repo-search-link:hover small, .repo-search-link:focus small { color: inherit; }
.repo-search-empty { margin: 0; padding: .3rem .4rem; }

.ref-picker { position: relative; display: inline-block; }
.ref-picker-toggle {
  display: inline-flex;
  gap: .25rem;
  align-items: center;
  min-height: 0;
  padding: .3rem .9rem;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  cursor: pointer;
}
.ref-picker-toggle:hover { background: var(--ink); color: var(--page-bg); }
.ref-picker-menu {
  position: absolute;
  left: 0;
  top: calc(100% + .4rem);
  z-index: 20;
  width: 20rem;
  max-width: calc(100vw - 2rem);
  padding: .5rem;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: var(--surface);
}
.ref-picker-search { margin-bottom: .4rem; }
.ref-picker-options { display: grid; gap: .15rem; max-height: 18rem; overflow-y: auto; }
.ref-picker-option {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: .45rem .6rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}
.ref-picker-option:hover, .ref-picker-option:focus {
  background: var(--ink);
  color: var(--page-bg);
  text-decoration: none;
}
.ref-picker-option.active { font-weight: 700; }
.ref-picker-current { color: var(--muted); font-weight: 400; }
.ref-picker-option:hover .ref-picker-current, .ref-picker-option:focus .ref-picker-current { color: inherit; }
.ref-picker-empty { padding: .35rem .45rem; color: var(--muted); }
.ref-picker-footer {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
  padding-top: .45rem;
  border-top: 1px solid var(--surface-border);
}
.ref-picker-link.active { color: var(--ink); font-weight: 700; text-decoration: none; }

.list-search {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  flex-wrap: wrap;
}
.list-search input[type="search"] { width: 18rem; max-width: 100%; }

.hero-actions { margin-top: 1.25rem; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-top: 1rem;
}
.pagination-current, .pagination-disabled { color: var(--muted); }
.pagination-disabled { padding: .3rem 0; }

.alert { margin-bottom: 1rem; color: var(--ink); font-weight: 700; }
.notice { margin-bottom: 1rem; color: var(--text); }
.danger-zone { margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--surface-border); }
.danger-zone h2 { margin-top: 0; }

.password-dialog {
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
}
.password-dialog::backdrop { background: rgb(0 0 0 / .6); }
.password-dialog h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.password-dialog .muted { font-size: .875rem; }
.password-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
.password-dialog form { margin-bottom: 0; }

.mention-menu {
  position: fixed;
  right: auto;
  margin: 0;
}
.mention-option {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: baseline;
  width: 100%;
  min-height: 0;
  padding: .5rem .6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.mention-option:hover, .mention-option.active {
  background: var(--ink);
  color: var(--page-bg);
}
.mention-option small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mention-option:hover small, .mention-option.active small { color: inherit; }

@media (max-width: 760px) {
  .repo-search, .repo-search-input { width: 100%; }
  .repo-search-menu { left: 0; right: auto; width: 100%; }
  .commit-list li, .file-list li { grid-template-columns: 1fr; }
  .repo-header { align-items: flex-start; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}