josie / simplegit

/* simplegit — josie-c.com, dark. Same shape as the main site's stylesheet. */

/* Variables: */
:root {
  --font: 'Courier New', Courier, monospace;
  --bgcolor: #16172b;   /* page — the main site's #CCCCFF, inverted dark */
  --color1: #1e1f3a;    /* nav bar + boxes — the main site's #FFFFCC slot */
  --color2: #2f3160;    /* hover/active — the main site's #CCFFE6 slot */
  --text: #dcdcf5;
  --muted: #8f92c4;
  --link: #a5aef0;      /* periwinkle, nod to #CCCCFF */
  --success: #7bc275;
  --danger: #e06c75;
  --warning: #e0af68;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

/* --- top nav bar styling ------ */
/* 1fr auto 1fr puts the home link exactly on the page midline whatever the
   username's length; the side cells carry one dash each toward the center. */
.topnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  background-color: var(--color1);
}
.topnav .nav-side { display: flex; }
.topnav .nav-left { justify-content: flex-end; }
.topnav .nav-right { justify-content: flex-start; }
.topnav a {
  display: block;
  color: var(--text);
  padding: 14px 10px;
  text-decoration: none;
}
.topnav a:hover { background-color: var(--color2); }
/* --- end top nav bar styling --- */

/* --- main text styling ------ */
body {
  margin: 0;
  background-color: var(--bgcolor);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.3rem;
  text-align: center;
}

a { color: var(--link); }

main { padding: 0 12px 48px; }

.muted { color: var(--muted); }
.error { color: var(--danger); }
.ok { color: var(--success); }
.sep { color: var(--muted); }

form { text-align: left; }
/* --- end main text styling --- */

/* --- git ui: flat boxes, no borders or rounding ------ */
pre {
  background: var(--color1);
  padding: 12px;
  overflow-x: auto;
  text-align: left;
  font-size: 1rem;
}

article { overflow-x: auto; text-align: left; }

.diff { background: var(--color1); padding: 12px; }
.diff pre, .diff .chroma { background: none; padding: 0; margin: 0; }

table { border-collapse: collapse; margin: 0 auto; text-align: left; }
td, th { border: 1px solid var(--color2); padding: 6px 10px; }

button {
  font: inherit;
  background: var(--color2);
  color: var(--text);
  border: 0;
  padding: 6px 14px;
  cursor: pointer;
}
button:hover { background: var(--link); color: var(--bgcolor); }
button.linklike {
  background: none;
  border: 0;
  padding: 0;
  color: var(--link);
  text-decoration: underline;
}
button.linklike:hover { color: var(--text); background: none; }

input, select, textarea {
  font: inherit;
  background: var(--color1);
  color: var(--text);
  border: 1px solid var(--color2);
  padding: 6px 8px;
}
textarea { width: 100%; resize: vertical; }

.panel, .card {
  background: var(--color1);
  padding: 16px;
  margin: 0 auto 16px;
  text-align: left;
}
.panel { max-width: 560px; }
.panel input:not([type=radio]):not([type=checkbox]), .panel select, .panel textarea { width: 100%; }

.badge { font-size: .8em; color: var(--muted); }
.badge.open { color: var(--success); }
.badge.closed { color: var(--danger); }
.badge.pending { color: var(--warning); }

.repo-list, .issue-list { list-style: none; padding: 0; }
.repo-list li, .issue-row { padding: 8px 0; }

.list-toolbar { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 16px; }
.list-toolbar p { margin: 0; }

.issue-state { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; justify-content: center; margin: 0 0 8px; }
.issue-state form, .comment-actions form { display: inline; }
.issue-filters a.active { color: var(--text); }
.comment {
  background: var(--color1);
  padding: 12px 16px;
  margin: 0 0 12px;
  text-align: left;
}
.comment.pending { outline: 1px solid var(--warning); }
.comment-actions { display: flex; gap: 12px; }
.guest-fields { border: 0; background: var(--color1); padding: 8px 16px 12px; }
.guest-fields legend { color: var(--muted); padding: 0 6px; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.profile-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 0 16px; }

.token { background: var(--bgcolor); padding: 2px 6px; }
/* --- end git ui boxes --- */

/* --- repo pages ------ */
.repo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--color1);
  margin: 0 0 24px;
}
.repo-tabs a {
  display: block;
  color: var(--text);
  padding: 10px 12px;
  text-decoration: none;
}
.repo-tabs a:hover, .repo-tabs a.active { background: var(--color2); }

.clone-row { display: flex; justify-content: center; gap: 8px; margin: 0 0 16px; }
.clone-row input { width: 42ch; max-width: 60vw; font-size: 1rem; text-align: center; }

.repo-layout { display: grid; gap: 24px; align-items: start; text-align: left; }
@media (min-width: 600px) { .repo-layout { grid-template-columns: 280px minmax(0, 1fr); } }

.file-tree-pane { background: var(--color1); padding: 12px 16px; }
.file-tree { list-style: none; padding: 0; margin: 0; font-size: 1rem; }
.file-tree .file-tree { padding-left: 1.2em; }
.file-tree li { padding: 1px 0; }
.file-tree a { text-decoration: none; }

.repo-summary { display: flex; gap: 8px; margin: 0 0 16px; }
.repo-summary > * {
  flex: 1;
  min-width: 0;
  background: var(--color1);
  text-align: center;
}
@media (max-width: 600px) {
  .repo-summary { flex-wrap: wrap; }
  .repo-summary > * { flex: 1 1 40%; }
}
.repo-summary > a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
}
.repo-summary > a:hover { background: var(--color2); }

.branch-picker { position: relative; }
.branch-picker summary {
  cursor: pointer;
  display: block;
  padding: 8px 12px;
}
.branch-picker summary::after { content: " ▾"; color: var(--muted); }
.branch-picker ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  background: var(--color1);
  text-align: left;
}
.branch-picker li { padding: 4px 12px; }
.branch-picker li.current { color: var(--muted); }
.branch-picker li a { display: block; text-decoration: none; }

.file-list { list-style: none; padding: 0; background: var(--color1); }
.file-list li { padding: 6px 12px; }
.file-list form { display: inline; }
/* --- end repo pages --- */