// shell: page parts in the one page language (docs/ui-language.md). Tokens only. // The unread count on the bell: a small pill on the bell's row, 12px like the other counts. .corner-bell .bell-count { position: static; min-width: 18px; height: 18px; margin-left: auto; padding: 0 6px; border-radius: 9px; background: var(--surface-2); color: var(--text); font-family: var(--font); font-size: 12px; font-weight: 600; line-height: 18px; text-align: center; box-shadow: none; } // The path bar's edit field: a soft 28px pill with the shortcut, the same as a tool's shape. .pathbar-edit, button.pathbar-edit { height: 28px; border-radius: 14px; font-size: 14px; kbd { font-size: 12px; line-height: 18px; } } // Repo head: the actions menu's summary is a plain button, with no outline of its own. .head .menu > summary.button { border: 0; } // The finder button in the rail is a tool-size control. .rail-head > .finder-open { height: 34px; border-radius: 12px; font-size: 14px; } // Ref menu: section labels read as hairline headings, never uppercase. .ref-head { padding: 8px 12px 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); } .ref-head .ref-count { font-size: 12px; } // The default-branch badge is a soft tag, not an outlined box. .ref-chip { padding: 0 8px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 18px; } // Code pages menu: the toggle sits right after Code, and its panel takes no room in the tab row. .repo-tabs .tab-more { position: static; margin: 0; } .repo-tabs .tab-more-toggle { margin-left: -6px; width: 26px; padding: 0; justify-content: center; color: var(--muted); svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } &:hover { color: var(--text); } } .repo-tabs .tab-more-list { top: 100%; left: 0; margin-top: 6px; color: var(--text); } .repo-tabs .tab-more-link { color: var(--text); font-size: 14px; font-weight: 500; height: 34px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; margin: 0 6px; } // The bell count is a pill, not a circle of its own size. .corner-bell .bell-count { border-radius: 999px; } // The default-branch chip has no outline on any page. a > .ref-chip, .ref-chip.ref-chip { border: 0; } // Theme picker on the sign-in pages: its buttons are the segmented set's soft shapes, not outlined boxes. .theme-form button.icon-btn { border: 0; } // Watch options are menu rows: the name only. The longer description stays for screen readers. .watch-list .watch-option-desc { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } // The watch menu's button is a soft shape like every other action beside a title (the // `.head-title` pill rule below). Its options are menu rows: 34px, the check before the name. .watch-menu > summary { height: var(--control-h); padding: 0 30px 0 14px; border: 0; border-radius: 19px; background: var(--surface-2); font-size: 15px; } // Beside a repo title, the watch button is one of the head's pills: the same height, radius, fill, // and 600 text as Star and Fork. The caret keeps its place at the end. .head-title > .watch-control .watch-menu > summary { box-sizing: border-box; padding: 0 30px 0 18px; font-size: 15px; font-weight: 600; line-height: 1; color: var(--text); &:hover { background: color-mix(in oklab, var(--surface-2) 88%, var(--text)); } } .watch-list { padding: 6px; } .watch-list button.watch-option { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 12px; font-size: 14px; white-space: nowrap; &::before { flex: none; margin: 0 4px -2px; align-self: center; transform: translateY(-2px) rotate(45deg); } } .watch-list button.watch-option { justify-content: flex-start; text-align: left; } // The open code page is marked in its menu the way a current rail item is. .repo-tabs .tab-more-link.is-current { background: var(--surface-2); font-weight: 600; } // In the head the watcher count is in the line under the title, so the watch pill stands alone. .head-title > .watch-control > .hint { display: none; } // On a phone the watch pill is its eye and chevron, so it shares the title's line with Star; its // level stays in the summary's label. @media (max-width: 700px) { .head-title > .watch-control .watch-menu > summary > span { display: none; } }