| 1 | :root { |
| 2 | --ink: #142033; |
| 3 | --blue: #1f6feb; |
| 4 | --blue-deep: #0c3f86; |
| 5 | --paper: #f3f6fb; |
| 6 | --card: #ffffff; |
| 7 | --line: #d5e0ee; |
| 8 | --muted: #5c6b80; |
| 9 | --bad: #9f2d2d; |
| 10 | --ok: #146c43; |
| 11 | --shadow: 0 10px 30px rgba(20, 32, 51, 0.06); |
| 12 | font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif; |
| 13 | } |
| 14 | * { box-sizing: border-box; } |
| 15 | body { margin: 0; background: var(--paper); color: var(--ink); } |
| 16 | a { color: var(--blue-deep); } |
| 17 | .top { |
| 18 | display: flex; justify-content: space-between; align-items: center; |
| 19 | padding: 0.8rem 1.4rem; background: var(--ink); color: white; |
| 20 | } |
| 21 | .top a { color: white; text-decoration: none; } |
| 22 | .brand { display: flex; gap: 0.6rem; align-items: center; font-weight: 700; letter-spacing: 0.02em; } |
| 23 | .brand img { width: 32px; height: 32px; } |
| 24 | .top nav { display: flex; gap: 1rem; align-items: center; } |
| 25 | .top button, .btn, button { |
| 26 | background: var(--blue); color: white; border: 0; border-radius: 999px; |
| 27 | padding: 0.45rem 0.9rem; cursor: pointer; font: inherit; |
| 28 | } |
| 29 | .btn.ghost, button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); } |
| 30 | .top button { background: transparent; border: 1px solid rgba(255,255,255,.35); } |
| 31 | main { max-width: 980px; margin: 0 auto; padding: 1.4rem; } |
| 32 | .hero { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; align-items: center; } |
| 33 | .hero img { width: 120px; } |
| 34 | .card, .panel { |
| 35 | background: var(--card); border: 1px solid var(--line); border-radius: 16px; |
| 36 | padding: 1rem 1.1rem; box-shadow: var(--shadow); margin: 0.8rem 0; |
| 37 | } |
| 38 | .flash { padding: 0.7rem 0.9rem; border-radius: 12px; background: #e5f6ec; color: var(--ok); } |
| 39 | .flash.bad { background: #fde8e8; color: var(--bad); } |
| 40 | .tabs, .sub { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 0.4rem 0 1rem; } |
| 41 | .sub a { text-decoration: none; padding-bottom: 0.2rem; } |
| 42 | .muted { color: var(--muted); } |
| 43 | .preview { margin: 0.15rem 0 0.7rem; color: var(--muted); word-break: break-all; } |
| 44 | .preview:empty { display: none; } |
| 45 | label { display: block; margin: 0.55rem 0; } |
| 46 | input[type="checkbox"] { width: auto; } |
| 47 | input, textarea, select { |
| 48 | width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 10px; |
| 49 | font: inherit; background: white; |
| 50 | } |
| 51 | textarea { min-height: 7rem; } |
| 52 | .row { display: flex; gap: 0.6rem; align-items: center; } |
| 53 | .row input, .row select { width: auto; flex: 1; } |
| 54 | code, pre { font-family: "IBM Plex Mono", "ui-monospace", monospace; } |
| 55 | pre, .code { |
| 56 | background: #0f1b2d; color: #e7eef8; padding: 0.8rem 1rem; border-radius: 12px; overflow: auto; |
| 57 | } |
| 58 | ul.clean { list-style: none; padding: 0; } |
| 59 | ul.clean li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); } |
| 60 | .pill { font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.45rem; } |
| 61 | table { width: 100%; border-collapse: collapse; } |
| 62 | td, th { text-align: left; padding: 0.4rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: top; } |
| 63 | .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } |
| 64 | @media (max-width: 720px) { |
| 65 | .hero, .grid-2 { grid-template-columns: 1fr; } |
| 66 | main { padding: 0.8rem; } |
| 67 | } |
| 68 | main.wide { max-width: 1180px; } |
| 69 | .sub a.on { border-bottom: 2px solid var(--blue); color: var(--ink); } |
| 70 | .crumbs { color: var(--muted); margin: 0 0 0.4rem; } |
| 71 | .crumbs a { color: var(--muted); text-decoration: none; } |
| 72 | .projhead { display: flex; align-items: center; gap: 0.7rem; } |
| 73 | .projhead h1 { margin: 0; font-size: 1.6rem; } |
| 74 | .tile { |
| 75 | width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; |
| 76 | background: #e56a93; color: white; font-weight: 700; font-size: 1.2rem; |
| 77 | } |
| 78 | .vis { width: 18px; height: 18px; color: var(--muted); } |
| 79 | .ficon { width: 16px; height: 16px; vertical-align: -2px; margin-right: 0.25rem; } |
| 80 | .proj { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.2rem; align-items: start; } |
| 81 | .toolbar { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; margin: 0.9rem 0; flex-wrap: wrap; } |
| 82 | .toolbar .left, .toolbar .right { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; } |
| 83 | .branch select { width: auto; border-radius: 8px; padding: 0.35rem 0.5rem; background: #f6f8fa; } |
| 84 | .pathnow { color: var(--ink); } |
| 85 | .pathnow a { color: inherit; text-decoration: none; } |
| 86 | .menu { position: relative; } |
| 87 | .menu summary { list-style: none; cursor: pointer; } |
| 88 | .menu summary::-webkit-details-marker { display: none; } |
| 89 | .menu-panel { |
| 90 | position: absolute; right: 0; top: 2.3rem; z-index: 4; width: min(420px, 80vw); |
| 91 | background: white; border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem; |
| 92 | box-shadow: var(--shadow); |
| 93 | } |
| 94 | .copyline { display: flex; gap: 0.4rem; } |
| 95 | .copyline input { font-family: ui-monospace, monospace; font-size: 0.85rem; } |
| 96 | .commitbar { |
| 97 | display: flex; gap: 0.7rem; align-items: center; background: #f6f8fa; |
| 98 | border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.75rem; margin: 0.4rem 0 0.8rem; |
| 99 | } |
| 100 | .commitbar .grow { flex: 1; min-width: 0; } |
| 101 | .commitbar .grow a { display: block; font-weight: 650; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } |
| 102 | .avatar { |
| 103 | width: 32px; height: 32px; border-radius: 50%; background: #d5e0ee; color: var(--ink); |
| 104 | display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; flex: none; |
| 105 | } |
| 106 | .sha { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 0.15rem 0.4rem; } |
| 107 | .iconbtn, .copyline button { |
| 108 | background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; |
| 109 | padding: 0.3rem 0.55rem; cursor: pointer; font: inherit; |
| 110 | } |
| 111 | table.files { background: white; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; } |
| 112 | table.files th { color: var(--muted); font-weight: 600; font-size: 0.92rem; } |
| 113 | table.files td.msg { max-width: 280px; } |
| 114 | table.files td.msg a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; } |
| 115 | .readme, .codebox, .side { |
| 116 | background: white; border: 1px solid var(--line); border-radius: 12px; margin-top: 1rem; |
| 117 | } |
| 118 | .readme header, .codebox header { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font-weight: 600; } |
| 119 | .mdbody { padding: 0.2rem 1.1rem 1rem; } |
| 120 | .mdbody h1, .mdbody h2, .mdbody h3 { margin: 1rem 0 0.4rem; } |
| 121 | table.md { margin: 0.6rem 0 1rem; } |
| 122 | table.md th, table.md td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; } |
| 123 | .side { margin-top: 0.2rem; padding: 0.9rem 1rem; } |
| 124 | .side h2 { margin: 0 0 0.5rem; font-size: 1rem; } |
| 125 | .counts { list-style: none; padding: 0; margin: 0.6rem 0; } |
| 126 | .counts li { padding: 0.28rem 0; } |
| 127 | .counts a { text-decoration: none; } |
| 128 | .fileview { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; align-items: start; } |
| 129 | .treebox h2 { margin: 0 0 0.5rem; font-size: 1.15rem; } |
| 130 | .treelist { list-style: none; padding: 0; margin: 0.5rem 0 0; } |
| 131 | .treelist li { padding: 0.18rem 0.3rem; border-radius: 6px; white-space: nowrap; } |
| 132 | .treelist li a { color: inherit; text-decoration: none; } |
| 133 | .treelist li.active { background: #ddf4ff; } |
| 134 | .treelist li.depth-1 { padding-left: 0.9rem; } |
| 135 | .treelist li.depth-2 { padding-left: 1.6rem; } |
| 136 | .treelist li.depth-3 { padding-left: 2.3rem; } |
| 137 | .treelist li.depth-4 { padding-left: 3rem; } |
| 138 | .treelist li.depth-5 { padding-left: 3.7rem; } |
| 139 | .treelist li.depth-6, .treelist li.depth-7, .treelist li.depth-8 { padding-left: 4.4rem; } |
| 140 | .filename { display: flex; align-items: center; gap: 0.35rem; margin: 0.2rem 0 0.6rem; } |
| 141 | .codebox { margin-top: 0.8rem; overflow: auto; } |
| 142 | table.code { border-collapse: collapse; width: 100%; } |
| 143 | table.code td { border: 0; padding: 0 0.7rem; vertical-align: top; font-family: ui-monospace, monospace; font-size: 0.86rem; line-height: 1.45; } |
| 144 | table.code td.ln { color: #8c959f; text-align: right; width: 1%; user-select: none; background: #f6f8fa; } |
| 145 | table.code td.src { white-space: pre; } |
| 146 | .hl-k { color: #8250df; } |
| 147 | .hl-s { color: #cf222e; } |
| 148 | .hl-c { color: #6e7781; } |
| 149 | .hl-n { color: #0550ae; } |
| 150 | .heat { |
| 151 | background: white; border: 1px solid var(--line); border-radius: 16px; |
| 152 | padding: 1rem 1.1rem 0.8rem; box-shadow: var(--shadow); margin: 0.4rem 0 1.1rem; |
| 153 | } |
| 154 | .heat h2 { margin: 0 0 0.55rem; font-size: 1.05rem; } |
| 155 | .heat-scroll { overflow-x: auto; padding: 1.7rem 0.2rem 0.15rem; } |
| 156 | .heat-months, .heat-cols { |
| 157 | display: grid; grid-auto-flow: column; grid-auto-columns: 11px; column-gap: 3px; |
| 158 | } |
| 159 | .heat-months { margin: 0 0 0.25rem 20px; height: 1rem; font-size: 0.68rem; color: var(--muted); } |
| 160 | .heat-months span { white-space: nowrap; line-height: 1rem; } |
| 161 | .heat-body { display: flex; gap: 4px; } |
| 162 | .heat-dow { |
| 163 | display: grid; grid-template-rows: repeat(7, 11px); row-gap: 3px; |
| 164 | width: 16px; font-size: 0.65rem; color: var(--muted); line-height: 11px; |
| 165 | } |
| 166 | .heat-col { display: grid; grid-auto-rows: 11px; row-gap: 3px; } |
| 167 | .sq { width: 11px; height: 11px; border-radius: 2px; display: block; position: relative; } |
| 168 | .sq[title]:hover::after, .sq[title]:focus::after { |
| 169 | content: attr(title); |
| 170 | position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); |
| 171 | background: #142033; color: white; padding: 0.28rem 0.5rem; border-radius: 6px; |
| 172 | font-size: 0.78rem; line-height: 1.2; white-space: nowrap; z-index: 5; pointer-events: none; |
| 173 | } |
| 174 | .sq.off { background: transparent; } |
| 175 | .sq.lv0 { background: #e6edf5; } |
| 176 | .sq.lv1 { background: #b9d4f6; } |
| 177 | .sq.lv2 { background: #6eacf0; } |
| 178 | .sq.lv3 { background: #1f6feb; } |
| 179 | .sq.lv4 { background: #0c3f86; } |
| 180 | .heat-foot { |
| 181 | display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; |
| 182 | margin-top: 0.7rem; color: var(--muted); font-size: 0.85rem; |
| 183 | } |
| 184 | .heat-total, .heat-legend, .heat-foot .muted { margin: 0; } |
| 185 | .heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; } |
| 186 | .heat-foot .muted { text-align: right; margin-top: 0.2rem; } |
| 187 | .chooser { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.2rem 0 0.4rem; transition: opacity .28s ease, transform .28s ease; } |
| 188 | .chooser.away { opacity: 0; transform: translateY(-10px) scale(.97); pointer-events: none; } |
| 189 | .pick { min-width: 11rem; padding: 1rem 1.3rem; font-size: 1.05rem; } |
| 190 | .sheet { transform-origin: top center; } |
| 191 | .sheet.open { animation: unfold .32s ease; } |
| 192 | .sheet.closing { animation: fold .28s ease forwards; } |
| 193 | @keyframes unfold { |
| 194 | from { opacity: 0; transform: scaleY(.55); } |
| 195 | to { opacity: 1; transform: scaleY(1); } |
| 196 | } |
| 197 | @keyframes fold { |
| 198 | from { opacity: 1; transform: scaleY(1); } |
| 199 | to { opacity: 0; transform: scaleY(.45); } |
| 200 | } |
| 201 | .preview { min-height: 1.2rem; display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; } |
| 202 | .flag.ok { color: var(--ok); font-weight: 600; } |
| 203 | .flag.bad { color: var(--bad); font-weight: 600; } |
| 204 | .form-err:empty { display: none; } |
| 205 | .form-err { color: var(--bad); margin: 0.2rem 0; } |
| 206 | .bar { display: flex; gap: .6rem; align-items: center; margin: .4rem 0 .2rem; } |
| 207 | .bar input[type="search"] { flex: 1; } |
| 208 | .sortlabel { color: var(--muted); } |
| 209 | .iconbtn { text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .55rem; background: white; color: var(--ink); } |
| 210 | .repolist { list-style: none; padding: 0; margin: .4rem 0 1rem; } |
| 211 | .repolist > li { display: flex; align-items: center; gap: .7rem; padding: .75rem .2rem; border-bottom: 1px solid var(--line); } |
| 212 | .reponame { font-weight: 600; text-decoration: none; } |
| 213 | .stars { color: #9a6700; white-space: nowrap; } |
| 214 | .grown { flex: 1; } |
| 215 | .rowmenu { position: relative; } |
| 216 | .rowmenu > summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: .15rem .55rem; background: white; } |
| 217 | .rowmenu > summary::-webkit-details-marker { display: none; } |
| 218 | .rowmenu .menu-panel { position: absolute; right: 0; z-index: 3; min-width: 9rem; } |
| 219 | .rowmenu .menu-panel button, .rowmenu .menu-panel form { width: 100%; } |
| 220 | .rowmenu .menu-panel button { text-align: left; border-radius: 8px; } |
| 221 | img.tile { object-fit: cover; background: #fff; } |
| 222 | @font-face { |
| 223 | font-family: "Noto Sans Cuneiform"; |
| 224 | src: url("/assets/NotoSansCuneiform-Regular.ttf") format("truetype"); |
| 225 | font-display: swap; |
| 226 | } |
| 227 | html.cunei, html.cunei body, html.cunei button, html.cunei input, html.cunei select, html.cunei textarea { |
| 228 | font-family: "Noto Sans Cuneiform", "Segoe UI", sans-serif; |
| 229 | } |
| 230 | @media (max-width: 800px) { |
| 231 | .proj, .fileview { grid-template-columns: 1fr; } |
| 232 | .heat-foot { flex-direction: column; align-items: flex-start; } |
| 233 | .heat-legend, .heat-foot .muted { justify-content: flex-start; text-align: left; } |
| 234 | .repolist > li { flex-wrap: wrap; } |
| 235 | } |