package site const siteCSS = `:root { --bg: #ffffff; --canvas: #f6f8fa; --canvas-subtle: #f8f9fa; --border: #d1d9e0; --border-muted: #d8dee4; --text: #1f2328; --muted: #59636e; --blue: #0969da; --green: #1f883d; --green-hover: #1a7f37; --success-text: #1a7f37; --danger-text: #cf222e; --shadow: 0 1px 0 rgba(31,35,40,.04); --button-border: rgba(31,35,40,.15); --avatar-border: rgba(31,35,40,.15); --button-hover: #eff2f5; --success-bg: #dafbe1; --popover-bg: #ffffff; --popover-shadow: 0 8px 24px rgba(140,149,159,.28); --neutral-muted: #eaeef2; --selected-bg: #ddf4ff; --attention-bg: #fff8c5; --diff-add: #dafbe1; --diff-add-number: #ccffd8; --diff-delete: #ffebe9; --diff-delete-number: #ffd7d5; --diff-hunk: #ddf4ff; --diff-empty: #f6f8fa; --checker-a: #f6f8fa; --checker-b: #ffffff; --dialog-backdrop: rgba(31,35,40,.45); --dialog-shadow: 0 16px 48px rgba(31,35,40,.3); --brand-filter: none; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); } @media (prefers-color-scheme: dark) { :root { --bg: #0d1117; --canvas: #161b22; --canvas-subtle: #010409; --border: #30363d; --border-muted: #21262d; --text: #e6edf3; --muted: #8b949e; --blue: #58a6ff; --green: #238636; --green-hover: #2ea043; --success-text: #3fb950; --danger-text: #f85149; --shadow: 0 0 transparent; --button-border: rgba(240,246,252,.1); --avatar-border: rgba(240,246,252,.1); --button-hover: #21262d; --success-bg: rgba(46,160,67,.15); --popover-bg: #161b22; --popover-shadow: 0 8px 24px rgba(1,4,9,.8); --neutral-muted: #21262d; --selected-bg: rgba(56,139,253,.15); --attention-bg: rgba(187,128,9,.15); --diff-add: #12261e; --diff-add-number: #1b4721; --diff-delete: #2d1715; --diff-delete-number: #5d1f1a; --diff-hunk: #121d2f; --diff-empty: #161b22; --checker-a: #161b22; --checker-b: #21262d; --dialog-backdrop: rgba(1,4,9,.8); --dialog-shadow: 0 16px 48px rgba(1,4,9,.8); --brand-filter: invert(1); } } * { box-sizing: border-box; } [hidden] { display: none !important; } body { margin: 0; min-width: 320px; background: var(--bg); font-size: 14px; line-height: 1.5; } body.dialog-open { overflow: hidden; } a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; } button, input { font: inherit; } .icon { display: inline-block; width: 16px; height: 16px; flex: none; fill: currentColor; stroke: none; overflow: visible; vertical-align: text-bottom; } .icon-chevron { width: 12px; height: 12px; } .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; } .topbar { min-height: 64px; padding: 16px 32px; display: flex; align-items: center; gap: 12px; background: var(--canvas); } .brand { display: inline-grid; place-items: center; color: var(--text); } .brand:hover { text-decoration: none; } .brand-mark { display: block; width: 32px; height: 32px; object-fit: contain; filter: var(--brand-filter); } .header-crumbs { min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; } .header-crumbs a { color: var(--text); white-space: nowrap; } .header-owner { color: var(--text); white-space: nowrap; } .header-repo { margin: -4px -6px; padding: 4px 6px; overflow: hidden; border-radius: 6px; font-weight: 650; text-overflow: ellipsis; } .header-repo:hover { background: rgba(175,184,193,.22); text-decoration: none; } .header-crumbs span { color: var(--muted); } .repo-nav { background: var(--canvas); border-bottom: 1px solid var(--border); } .tabs { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; gap: 8px; } .tab { position: relative; display: flex; align-items: center; gap: 7px; margin: 4px 0 6px; padding: 4px 10px; color: var(--text); font-size: 14px; font-weight: 500; } .tab:hover { text-decoration: none; background: rgba(175,184,193,.18); border-radius: 6px; } .tab.active { font-weight: 650; } .tab.active:after { content: ""; height: 2px; background: #fd8c73; position: absolute; left: 8px; right: 8px; bottom: -7px; } .counter { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(175,184,193,.25); color: var(--text); font-size: 12px; font-weight: 600; } .content-shell { max-width: 1280px; margin: 0 auto 64px; padding: 24px; } .blob-content-shell { max-width: 1600px; } .repo-overview-head { min-height: 34px; margin-bottom: 18px; display: flex; align-items: center; gap: 16px; } .repo-title { min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 20px; } .repo-title > a { overflow: hidden; color: var(--text); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; } .repo-title > a:hover, .repo-title > a:focus { color: var(--text); text-decoration: underline; } .repo-title-avatar { width: 24px; height: 24px; } .repo-icon { display: inline-flex; color: var(--muted); } .repo-icon .icon { width: 18px; height: 18px; } .visibility { color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; } .repo-overview-head .fork-button { margin-left: auto; } .repo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 32px; } .primary { min-width: 0; } .full-width { width: 100%; } .toolbar { min-height: 34px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; } .toolbar-spacer { flex: 1 1 auto; } .branch-menu, .clone-menu { position: relative; } .branch-button, .clone-button, .secondary-button, .blob-actions a, .blob-actions button { min-height: 32px; border: 1px solid var(--button-border); border-radius: 6px; background: var(--canvas); box-shadow: var(--shadow); color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 5px 12px; font-weight: 600; font-size: 13px; line-height: 20px; cursor: pointer; } .branch-button:hover, .secondary-button:hover, .blob-actions a:hover, .blob-actions button:hover { background: var(--button-hover); text-decoration: none; } .branch-button { max-width: 240px; } .branch-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .clone-button { background: var(--green); border-color: var(--button-border); color: white; } .clone-button:hover { background: var(--green-hover); } .fork-button { white-space: nowrap; } .fork-button.is-copied { color: var(--green); background: var(--success-bg); } .branch-popover, .clone-popover { position: absolute; z-index: 30; top: calc(100% + 7px); border: 1px solid var(--border); border-radius: 8px; background: var(--popover-bg); box-shadow: var(--popover-shadow); } .branch-popover { left: 0; width: 300px; overflow: hidden; } .branch-popover h3 { margin: 0; padding: 12px 16px 10px; border-bottom: 1px solid var(--border-muted); font-size: 14px; } .branch-list { max-height: 300px; padding: 6px 0; overflow-y: auto; } .branch-option { min-height: 34px; padding: 6px 16px 6px 38px; position: relative; display: block; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .branch-option:hover { background: var(--canvas); text-decoration: none; } .branch-option.selected { font-weight: 650; } .branch-option.selected:before { content: "✓"; position: absolute; left: 16px; color: var(--text); } .clone-popover { right: 0; width: 390px; padding: 16px; } .clone-popover h3 { margin: 0; font-size: 14px; } .clone-popover p { margin: 3px 0 12px; color: var(--muted); font-size: 12px; } .clone-input-group { display: flex; } .clone-input-group input { min-width: 0; flex: 1; height: 34px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px 0 0 6px; color: var(--text); background: var(--canvas); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; } .clone-input-group button { width: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-left: 0; border-radius: 0 6px 6px 0; color: var(--text); background: var(--canvas); cursor: pointer; } .clone-input-group button:hover { background: var(--button-hover); } .clone-input-group button.is-copied { color: var(--green); background: var(--success-bg); } .clone-popover > code { display: block; margin-top: 12px; padding: 9px 10px; overflow: hidden; border-radius: 6px; color: var(--muted); background: var(--canvas); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; } .menu-status { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 13px; } .toolbar-path { border-bottom: 1px solid var(--border-muted); padding-bottom: 14px; } .breadcrumbs { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; font-size: 14px; } .breadcrumbs a { color: var(--text); white-space: nowrap; } .breadcrumbs a:last-child { overflow: hidden; font-weight: 650; text-overflow: ellipsis; } .breadcrumbs span { color: var(--muted); } .tree-card, .readme-card, .blob-card { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--bg); } .commit-row { min-height: 54px; display: grid; grid-template-columns: 32px minmax(120px,1fr) auto auto auto; align-items: center; gap: 9px; padding: 9px 14px; background: var(--canvas); border-bottom: 1px solid var(--border); } .avatar { width: 28px; height: 28px; display: block; border-radius: 50%; object-fit: cover; background: var(--neutral-muted); box-shadow: 0 0 0 1px var(--avatar-border); } .latest-commit { min-width: 0; display: flex; align-items: baseline; gap: 9px; } .latest-commit strong { flex: none; } .commit-message { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; } .commit-message:hover { color: var(--blue); } .commit-hash, .commit-row time { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; } .commit-row time { font-family: inherit; white-space: nowrap; } .commit-count-link { min-height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 0 4px 10px; border-left: 1px solid var(--border-muted); color: var(--text); white-space: nowrap; } .commit-count-link:hover { color: var(--blue); text-decoration: none; } .tree-rows { width: 100%; } .tree-row { min-height: 42px; display: grid; grid-template-columns: 24px minmax(180px, 2fr) minmax(120px, 3fr) 75px; align-items: center; gap: 8px; padding: 6px 16px; color: var(--text); border-top: 1px solid var(--border-muted); } .tree-row:first-child { border-top: 0; } .tree-row:hover { background: var(--canvas); } .file-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--muted); } .parent-icon:hover { color: var(--blue); text-decoration: none; } .file-icon.folder { color: #54aeff; } .file-icon .icon { width: 16px; height: 16px; } .file-name { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-name:hover { text-decoration: underline; } .row-message { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .row-message:hover { color: var(--blue); text-decoration: underline; } .file-date { color: var(--muted); text-align: right; font-size: 12px; white-space: nowrap; } .parent-row { grid-template-columns: 24px 1fr 1fr 75px; } .readme-card { margin-top: 18px; } .card-heading { height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 16px; border-bottom: 1px solid var(--border); font-weight: 650; } .markdown-body { padding: 30px 32px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; } .markdown-body > :first-child { margin-top: 0 !important; } .markdown-body > :last-child { margin-bottom: 0 !important; } .markdown-body h1, .markdown-body h2 { border-bottom: 1px solid var(--border-muted); padding-bottom: .3em; } .markdown-body h1 { font-size: 2em; } .markdown-body h2 { font-size: 1.5em; } .markdown-body h3 { font-size: 1.25em; } .markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 24px 0 16px; line-height: 1.25; } .markdown-body img { max-width: 100%; } .markdown-body code { padding: .2em .4em; border-radius: 6px; background: rgba(175,184,193,.2); font: 85% ui-monospace, SFMono-Regular, Consolas, monospace; } .markdown-body pre { padding: 16px; overflow: auto; border-radius: 6px; background: var(--canvas); } .markdown-body pre code { padding: 0; background: transparent; } .markdown-body blockquote { margin-left: 0; padding-left: 1em; color: var(--muted); border-left: .25em solid var(--border); } .sidebar { padding-top: 50px; } .sidebar-section { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--border-muted); } .sidebar-section:last-child { border-bottom: 0; } .sidebar h2 { margin: 0 0 10px; font-size: 16px; } .section-title { display: flex; align-items: center; justify-content: space-between; } .section-title > span:first-child { display: inline-flex; align-items: center; gap: 7px; } .about-description { margin: 0 0 12px; color: var(--text); font-size: 16px; line-height: 1.45; } .about-description.muted { color: var(--muted); } .about-link { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; color: var(--blue); font-weight: 600; } .about-link .icon { width: 16px; height: 16px; } .about-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .contributors-list { display: flex; flex-direction: column; gap: 8px; } .contributor { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 8px; } .contributor-avatar { width: 32px; height: 32px; } .contributor-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; } .contributor-count { color: var(--muted); font-size: 12px; } .language-bar { height: 10px; display: flex; overflow: hidden; margin: 12px 0 13px; border-radius: 999px; background: var(--neutral-muted); } .language-segment { width: var(--language-width); min-width: 2px; background: var(--language-color); } .language-segment + .language-segment { border-left: 2px solid var(--bg); } .language-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 12px; padding: 0; margin: 0; list-style: none; } .language-list li { min-width: 0; display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 6px; font-size: 12px; } .language-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .language-list li > span:last-child { color: var(--muted); } .language-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--language-color); } .blob-layout { display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 20px; align-items: start; } .blob-main { min-width: 0; } .file-browser { position: sticky; top: 16px; height: calc(100vh - 32px); min-height: 420px; display: flex; flex-direction: column; overflow: visible; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); } .file-browser-heading { min-height: 46px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-muted); font-size: 15px; } .file-browser-heading .icon { color: var(--muted); } .file-browser-branch { padding: 10px 10px 0; } .file-browser-branch .branch-menu, .file-browser-branch .branch-button { width: 100%; } .file-browser-branch .branch-button { justify-content: flex-start; max-width: none; } .file-browser-branch .branch-button .icon-chevron { margin-left: auto; } .file-tree-search { min-height: 34px; margin: 8px 10px; padding: 0 8px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 6px; } .file-tree-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,105,218,.15); } .file-tree-search .icon { color: var(--muted); } .file-tree-search input { width: 100%; min-width: 0; height: 30px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; } .file-tree { position: relative; min-height: 0; flex: 1; padding: 2px 8px 12px; overflow: auto; } .file-tree-node { min-width: max-content; } .file-tree-children { padding-left: 16px; } .file-tree-folder, .file-tree-file { width: 100%; min-height: 30px; padding: 4px 6px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 5px; color: var(--text); background: transparent; text-align: left; white-space: nowrap; } .file-tree-folder { cursor: pointer; } .file-tree-folder:hover, .file-tree-file:hover { background: var(--canvas); text-decoration: none; } .file-tree-folder > .icon { color: #54aeff; } .file-tree-file > .icon { color: var(--muted); } .file-tree-folder > span:last-child, .file-tree-file > span:last-child { overflow: hidden; text-overflow: ellipsis; } .file-tree-caret { width: 10px; flex: none; color: var(--muted); font-size: 17px; line-height: 1; transform-origin: center; transition: transform .1s ease; } .file-tree-caret.open { transform: rotate(90deg); } .file-tree-file { padding-left: 23px; } .file-tree-file.selected { color: var(--text); background: var(--selected-bg); font-weight: 600; } .blob-toolbar { min-height: 42px; } .blob-card { border-radius: 6px; } .blob-heading { min-height: 54px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; background: var(--canvas); border-bottom: 1px solid var(--border); } .blob-heading > div:first-child { min-width: 0; display: flex; flex-direction: column; } .blob-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .blob-heading span { color: var(--muted); font-size: 12px; } .blob-actions { margin-left: auto; display: flex; gap: 6px; } .blob-actions a, .blob-actions button { min-height: 28px; padding: 3px 10px; } .blob-actions button.is-copied { color: var(--green); background: var(--success-bg); } .markdown-file { min-height: 240px; background: var(--bg); } .code-view { overflow: auto; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; } .code-view .chroma { margin: 0; padding: 0; background: var(--bg); } .code-view .chroma table { width: 100%; border-spacing: 0; } .code-view .chroma td:first-child { width: 1%; min-width: 50px; padding: 8px 10px; color: var(--muted); text-align: right; vertical-align: top; border-right: 1px solid var(--border-muted); user-select: none; } .code-view .chroma td:last-child { padding: 8px 16px; } .code-view pre { margin: 0; } .image-preview { padding: 32px; display: grid; place-items: center; min-height: 260px; background: repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%) 50%/20px 20px; } .image-preview img { max-width: 100%; max-height: 70vh; } .binary-notice { padding: 70px 20px; display: flex; flex-direction: column; align-items: center; color: var(--muted); } .binary-notice > span .icon { width: 44px; height: 44px; } .binary-notice strong { color: var(--text); font-size: 16px; } .binary-notice p { margin: 5px 0 14px; } .history-toolbar { padding-bottom: 14px; border-bottom: 1px solid var(--border-muted); } .history-total { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); } .history-heading { margin: 22px 0 24px; } .history-heading h1 { margin: 0; font-size: 24px; } .history-heading p { margin: 4px 0 0; color: var(--muted); } .commit-group { margin: 0 0 28px; } .commit-group > h2 { margin: 0 0 9px; font-size: 15px; font-weight: 600; } .commit-list { overflow: hidden; border: 1px solid var(--border); border-radius: 7px; } .commit-list-row { min-height: 67px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px 14px; border-top: 1px solid var(--border-muted); } .commit-list-row:first-child { border-top: 0; } .commit-list-row:target { background: var(--attention-bg); } .commit-list-row:hover { background: var(--canvas); } .commit-list-row:target:hover { background: var(--attention-bg); } .commit-list-body { min-width: 0; display: flex; flex-direction: column; } .commit-list-message { overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; } .commit-list-message:hover, .commit-list-message:focus { color: var(--text); text-decoration: underline; } .commit-list-body > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; } .commit-list-avatar { width: 16px; height: 16px; } .commit-list-body > span strong { color: var(--text); } .commit-list-actions { display: inline-flex; align-items: center; gap: 6px; } .commit-sha { padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: var(--canvas); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; } .commit-sha:hover { color: var(--blue); text-decoration: none; } .commit-list-copy { width: 30px; min-height: 30px; padding: 4px; } .commit-list-copy.is-copied { color: var(--green); background: var(--success-bg); } .commit-view { max-width: 100%; } .commit-page-heading { min-height: 42px; margin-bottom: 12px; display: flex; align-items: center; } .commit-page-heading h1 { margin: 0; font-size: 24px; font-weight: 500; } .commit-page-heading code { padding: 3px 7px; border-radius: 6px; background: var(--neutral-muted); font: 20px ui-monospace, SFMono-Regular, Consolas, monospace; } .commit-summary-card { overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); } .commit-summary-title { min-height: 44px; padding: 8px 12px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); } .commit-summary-title > strong { min-width: 0; flex: 1; font: 14px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; } .commit-copy { flex: none; margin-left: auto; } .commit-copy.is-copied { color: var(--green); background: var(--success-bg); } .commit-body { margin: 0; padding: 14px 16px; overflow: auto; border-bottom: 1px solid var(--border-muted); color: var(--text); background: var(--bg); font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; } .commit-author-row { min-height: 28px; margin: -6px 0 12px; display: flex; align-items: center; gap: 9px; } .commit-author-row > span { display: flex; align-items: center; gap: 5px; color: var(--muted); } .commit-author-row .commit-avatar { width: 20px; height: 20px; } .commit-author-row strong { color: var(--text); } .commit-identifiers { min-height: 48px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--muted); font-size: 12px; } .commit-identifiers code { color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; } .diff-overview { min-height: 44px; padding: 8px 12px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); } .diff-overview > strong { font-size: 16px; } .diff-overview .muted { color: var(--muted); font-size: 12px; } .diff-totals, .diff-file-stats { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; } .addition { color: var(--success-text); } .deletion { color: var(--danger-text); } .diff-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); align-items: start; gap: 20px; } .diff-sidebar { position: sticky; top: 12px; min-width: 0; height: calc(100vh - 24px); min-height: 320px; } .diff-files { display: flex; flex-direction: column; gap: 24px; } .diff-file { scroll-margin-top: 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); } .diff-file:target { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); } .diff-file-header { min-height: 44px; padding: 8px 12px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--border); background: var(--canvas); } .diff-file-header strong { min-width: 0; overflow: hidden; font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; } .diff-status { flex: none; padding: 1px 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 600; } .split-diff { width: 100%; overflow: auto; } .split-diff table { width: 100%; min-width: 960px; border-spacing: 0; border-collapse: collapse; table-layout: fixed; font: 12px/20px ui-monospace, SFMono-Regular, Consolas, monospace; } .split-diff .diff-number-col { width: 50px; } .split-diff .diff-code-col { width: calc(50% - 50px); } .diff-line-number { width: 50px; padding: 0 8px; color: var(--muted); background: var(--bg); border-right: 1px solid var(--border-muted); text-align: right; vertical-align: top; user-select: none; } .diff-line-number:nth-child(3) { border-left: 1px solid var(--border); } .diff-line-number.addition { background: var(--diff-add-number); } .diff-line-number.deletion { background: var(--diff-delete-number); } .diff-code { padding: 0 10px; overflow: hidden; color: var(--text); background: var(--bg); vertical-align: top; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; } .diff-code code { display: block; min-height: 20px; font: inherit; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; } .diff-code code:before { width: 14px; display: inline-block; color: var(--muted); content: " "; user-select: none; } .diff-code.addition code:before { color: var(--success-text); content: "+"; } .diff-code.deletion code:before { color: var(--danger-text); content: "−"; } .diff-code.addition { background: var(--diff-add); } .diff-code.deletion { background: var(--diff-delete); } .diff-code.empty { background: var(--diff-empty); } .diff-hunk td { padding: 4px 12px; color: var(--muted); background: var(--diff-hunk); border-top: 1px solid var(--border-muted); border-bottom: 1px solid var(--border-muted); } .diff-hunk:first-child td { border-top: 0; } .diff-hunk code { font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; } .diff-file-notice, .diff-limit-notice { padding: 42px 20px; color: var(--muted); text-align: center; } .diff-truncated-notice { padding: 10px 14px; color: var(--muted); background: var(--canvas); border-top: 1px solid var(--border); font-size: 12px; text-align: center; } .diff-limit-notice { margin-top: 16px; border: 1px solid var(--border); border-radius: 7px; } .diff-limit-notice strong { color: var(--text); font-size: 16px; } .diff-limit-notice p { margin: 4px 0 0; } .dialog-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; align-items: start; justify-items: center; padding: 12vh 20px 20px; background: var(--dialog-backdrop); } .file-dialog { width: min(680px, 100%); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); box-shadow: var(--dialog-shadow); } .file-dialog > header { min-height: 48px; padding: 8px 10px 8px 16px; display: flex; align-items: center; border-bottom: 1px solid var(--border-muted); } .file-dialog h2 { margin: 0; font-size: 16px; } .icon-button { width: 32px; height: 32px; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; } .icon-button:hover { color: var(--text); background: var(--canvas); } .file-search { margin: 12px 16px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid #818b98; border-radius: 6px; } .file-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(9,105,218,.2); } .file-search .icon { color: var(--muted); } .file-search input { width: 100%; height: 36px; border: 0; outline: 0; color: var(--text); background: transparent; } .file-results { min-height: 110px; overflow-y: auto; border-top: 1px solid var(--border-muted); } .file-result { padding: 8px 16px; display: block; color: var(--text); font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .file-result:hover, .file-result:focus { background: var(--canvas); color: var(--blue); text-decoration: none; outline: 0; } @media (max-width: 900px) { .repo-grid { grid-template-columns: 1fr; } .blob-layout { grid-template-columns: 1fr; } .file-browser { display: none; } .diff-layout { grid-template-columns: 1fr; } .diff-sidebar.file-browser { position: static; height: auto; min-height: 0; max-height: 320px; display: flex; } .sidebar { padding-top: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; } .about-section { grid-column: 1 / -1; } .commit-row { grid-template-columns: 32px minmax(0,1fr) auto; } .commit-hash, .commit-row time { display: none; } } @media (max-width: 650px) { .topbar { min-height: 56px; padding: 12px 16px; } .tabs { padding: 0 12px; } .content-shell { padding: 16px 12px; margin-bottom: 40px; } .repo-overview-head { align-items: flex-start; } .repo-title { font-size: 17px; } .fork-button { padding-left: 9px; padding-right: 9px; } .sidebar { display: block; } .repo-toolbar { flex-wrap: wrap; } .toolbar-path { align-items: flex-start; flex-wrap: wrap; } .toolbar-path .breadcrumbs { order: 5; width: 100%; } .go-file-button { padding-left: 9px; padding-right: 9px; } .commit-row { grid-template-columns: 32px minmax(0,1fr) auto; } .commit-count-link { border-left: 0; padding-right: 0; } .commit-count-link strong, .latest-commit strong { display: none; } .tree-row { grid-template-columns: 22px minmax(100px,1fr) 70px; } .row-message { display: none; } .markdown-body { padding: 22px 18px; } .branch-popover, .clone-popover { position: fixed; top: 74px; left: 12px; right: 12px; width: auto; } .commit-list-row { grid-template-columns: minmax(0,1fr); } .commit-list-actions { display: none; } .commit-summary-title { align-items: center; } .commit-page-heading h1 { font-size: 20px; } .commit-page-heading code { font-size: 17px; } .commit-summary-title > strong { line-height: 1.4; } .commit-copy [data-copy-label] { display: none; } .commit-identifiers code { word-break: break-all; } .diff-overview { flex-wrap: wrap; padding-bottom: 10px; } .diff-overview .muted { width: 100%; order: 3; } .dialog-backdrop { padding: 7vh 10px 10px; } .file-dialog { max-height: 82vh; } }`