| 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 | @media (max-width: 800px) { |
| 151 | .proj, .fileview { grid-template-columns: 1fr; } |
| 152 | } |