| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>{% block title %}{{ site_name }}{% endblock %}</title> |
| 7 | <style> |
| 8 | *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } |
| 9 | body { |
| 10 | font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace; |
| 11 | background: #0a0a0a; |
| 12 | color: #e0e0e0; |
| 13 | min-height: 100vh; |
| 14 | display: flex; |
| 15 | flex-direction: column; |
| 16 | align-items: center; |
| 17 | padding: 3rem 2rem; |
| 18 | } |
| 19 | .container { max-width: 700px; width: 100%; } |
| 20 | a { color: #888; text-decoration: none; } |
| 21 | a:hover { color: #ccc; } |
| 22 | .breadcrumb { |
| 23 | font-size: 0.85rem; |
| 24 | margin-bottom: 1.5rem; |
| 25 | color: #555; |
| 26 | } |
| 27 | .breadcrumb a { color: #888; } |
| 28 | .breadcrumb a:hover { color: #ccc; } |
| 29 | .breadcrumb .sep { color: #333; margin: 0 0.25rem; } |
| 30 | h1 { |
| 31 | font-size: 1.3rem; |
| 32 | font-weight: 400; |
| 33 | color: #fff; |
| 34 | margin-bottom: 0.25rem; |
| 35 | } |
| 36 | h2 { |
| 37 | font-size: 0.75rem; |
| 38 | font-weight: 400; |
| 39 | color: #555; |
| 40 | text-transform: uppercase; |
| 41 | letter-spacing: 0.1em; |
| 42 | margin-bottom: 0.75rem; |
| 43 | } |
| 44 | .section { margin-bottom: 2rem; } |
| 45 | .empty { color: #333; font-size: 0.8rem; font-style: italic; } |
| 46 | footer { |
| 47 | margin-top: 3rem; |
| 48 | font-size: 0.7rem; |
| 49 | color: #333; |
| 50 | } |
| 51 | footer a { color: #444; } |
| 52 | |
| 53 | /* Tree / file list */ |
| 54 | .tree-list { |
| 55 | list-style: none; |
| 56 | font-size: 0.85rem; |
| 57 | } |
| 58 | .tree-list li { |
| 59 | border-bottom: 1px solid #181818; |
| 60 | padding: 0.4rem 0; |
| 61 | display: flex; |
| 62 | align-items: center; |
| 63 | gap: 0.5rem; |
| 64 | } |
| 65 | .tree-list li:last-child { border-bottom: none; } |
| 66 | .tree-icon { color: #555; width: 1.2rem; text-align: center; flex-shrink: 0; } |
| 67 | .tree-name a { color: #ccc; } |
| 68 | .tree-name a:hover { color: #fff; } |
| 69 | |
| 70 | /* Repo list on user page */ |
| 71 | .repo-list { |
| 72 | list-style: none; |
| 73 | font-size: 0.85rem; |
| 74 | } |
| 75 | .repo-list li { |
| 76 | border-bottom: 1px solid #181818; |
| 77 | padding: 0.5rem 0; |
| 78 | display: flex; |
| 79 | justify-content: space-between; |
| 80 | align-items: center; |
| 81 | } |
| 82 | .repo-list li:last-child { border-bottom: none; } |
| 83 | .repo-hash { color: #444; font-size: 0.7rem; } |
| 84 | |
| 85 | /* File viewer */ |
| 86 | .blob-container { |
| 87 | background: #111; |
| 88 | border: 1px solid #222; |
| 89 | border-radius: 6px; |
| 90 | overflow-x: auto; |
| 91 | font-size: 0.8rem; |
| 92 | line-height: 1.6; |
| 93 | } |
| 94 | .blob-table { border-collapse: collapse; width: 100%; } |
| 95 | .blob-table td { padding: 0 0.75rem; vertical-align: top; } |
| 96 | .blob-table .line-num { |
| 97 | color: #444; |
| 98 | text-align: right; |
| 99 | user-select: none; |
| 100 | width: 1%; |
| 101 | white-space: nowrap; |
| 102 | padding-right: 1rem; |
| 103 | border-right: 1px solid #222; |
| 104 | } |
| 105 | .blob-table .line-content { |
| 106 | color: #aaa; |
| 107 | white-space: pre; |
| 108 | } |
| 109 | .binary-notice { |
| 110 | padding: 2rem; |
| 111 | text-align: center; |
| 112 | color: #555; |
| 113 | } |
| 114 | |
| 115 | /* Commit log */ |
| 116 | .commit-list { |
| 117 | list-style: none; |
| 118 | font-size: 0.8rem; |
| 119 | } |
| 120 | .commit-list li { |
| 121 | border-bottom: 1px solid #181818; |
| 122 | padding: 0.5rem 0; |
| 123 | } |
| 124 | .commit-list li:last-child { border-bottom: none; } |
| 125 | .commit-msg { color: #ccc; } |
| 126 | .commit-meta { color: #555; font-size: 0.7rem; margin-top: 0.15rem; } |
| 127 | .commit-hash { color: #666; } |
| 128 | |
| 129 | /* README */ |
| 130 | .readme { |
| 131 | background: #111; |
| 132 | border: 1px solid #222; |
| 133 | border-radius: 6px; |
| 134 | padding: 1.5rem; |
| 135 | font-size: 0.85rem; |
| 136 | line-height: 1.7; |
| 137 | color: #bbb; |
| 138 | } |
| 139 | .readme h1, .readme h2, .readme h3 { color: #ddd; margin: 1rem 0 0.5rem; font-weight: 400; } |
| 140 | .readme h1 { font-size: 1.2rem; } |
| 141 | .readme h2 { font-size: 1rem; text-transform: none; letter-spacing: normal; } |
| 142 | .readme h3 { font-size: 0.9rem; } |
| 143 | .readme p { margin-bottom: 0.75rem; } |
| 144 | .readme code { |
| 145 | background: #1a1a1a; |
| 146 | padding: 0.15rem 0.4rem; |
| 147 | border-radius: 3px; |
| 148 | font-size: 0.8rem; |
| 149 | } |
| 150 | .readme pre { |
| 151 | background: #0d0d0d; |
| 152 | border: 1px solid #222; |
| 153 | border-radius: 4px; |
| 154 | padding: 0.75rem; |
| 155 | overflow-x: auto; |
| 156 | margin-bottom: 0.75rem; |
| 157 | } |
| 158 | .readme pre code { background: none; padding: 0; } |
| 159 | .readme a { color: #888; } |
| 160 | .readme a:hover { color: #ccc; } |
| 161 | .readme ul, .readme ol { margin: 0.5rem 0 0.75rem 1.5rem; } |
| 162 | .readme blockquote { border-left: 2px solid #333; padding-left: 0.75rem; color: #777; } |
| 163 | |
| 164 | /* Pagination */ |
| 165 | .pagination { |
| 166 | margin-top: 1.5rem; |
| 167 | font-size: 0.8rem; |
| 168 | display: flex; |
| 169 | gap: 1rem; |
| 170 | } |
| 171 | .pagination a { color: #888; } |
| 172 | .pagination a:hover { color: #ccc; } |
| 173 | |
| 174 | /* Tabs (tree/commits toggle) */ |
| 175 | .tab-bar { |
| 176 | display: flex; |
| 177 | gap: 1.5rem; |
| 178 | margin-bottom: 1rem; |
| 179 | font-size: 0.75rem; |
| 180 | text-transform: uppercase; |
| 181 | letter-spacing: 0.08em; |
| 182 | } |
| 183 | .tab-bar a { color: #555; } |
| 184 | .tab-bar a:hover { color: #888; } |
| 185 | .tab-bar .active { color: #ccc; } |
| 186 | /* Clone box */ |
| 187 | .clone-box { |
| 188 | background: #111; |
| 189 | border: 1px solid #222; |
| 190 | border-radius: 6px; |
| 191 | padding: 0.5rem 0.75rem; |
| 192 | margin-bottom: 1rem; |
| 193 | display: flex; |
| 194 | align-items: center; |
| 195 | gap: 0.75rem; |
| 196 | font-size: 0.8rem; |
| 197 | } |
| 198 | .clone-label { |
| 199 | color: #555; |
| 200 | font-size: 0.7rem; |
| 201 | text-transform: uppercase; |
| 202 | letter-spacing: 0.08em; |
| 203 | flex-shrink: 0; |
| 204 | } |
| 205 | .clone-url { |
| 206 | color: #aaa; |
| 207 | user-select: all; |
| 208 | overflow-x: auto; |
| 209 | white-space: nowrap; |
| 210 | } |
| 211 | {% block extra_css %}{% endblock %} |
| 212 | </style> |
| 213 | </head> |
| 214 | <body> |
| 215 | <div class="container"> |
| 216 | {% block body %}{% endblock %} |
| 217 | <footer> |
| 218 | <a href="/">{{ site_name }}</a> |
| 219 | </footer> |
| 220 | </div> |
| 221 | </body> |
| 222 | </html> |