forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

_one_shell.scss214 lines, 4.7 KiBHistoryRawDownload
1// shell: page parts in the one page language (docs/ui-language.md). Tokens only.
2
3// The unread count on the bell: a small pill on the bell's row, 12px like the other counts.
4.corner-bell .bell-count {
5 position: static;
6 min-width: 18px;
7 height: 18px;
8 margin-left: auto;
9 padding: 0 6px;
10 border-radius: 9px;
11 background: var(--surface-2);
12 color: var(--text);
13 font-family: var(--font);
14 font-size: 12px;
15 font-weight: 600;
16 line-height: 18px;
17 text-align: center;
18 box-shadow: none;
19}
20
21// The path bar's edit field: a soft 28px pill with the shortcut, the same as a tool's shape.
22.pathbar-edit,
23button.pathbar-edit {
24 height: 28px;
25 border-radius: 14px;
26 font-size: 14px;
27
28 kbd {
29 font-size: 12px;
30 line-height: 18px;
31 }
32}
33
34// Repo head: the actions menu's summary is a plain button, with no outline of its own.
35.head .menu > summary.button {
36 border: 0;
37}
38
39// The finder button in the rail is a tool-size control.
40.rail-head > .finder-open {
41 height: 34px;
42 border-radius: 12px;
43 font-size: 14px;
44}
45
46// Ref menu: section labels read as hairline headings, never uppercase.
47.ref-head {
48 padding: 8px 12px 4px;
49 font-size: 13px;
50 font-weight: 600;
51 letter-spacing: 0;
52 text-transform: none;
53 color: var(--muted);
54}
55
56.ref-head .ref-count {
57 font-size: 12px;
58}
59
60// The default-branch badge is a soft tag, not an outlined box.
61.ref-chip {
62 padding: 0 8px;
63 border: 0;
64 border-radius: 9px;
65 background: var(--surface-2);
66 color: var(--muted);
67 font-size: 12px;
68 line-height: 18px;
69}
70
71// Code pages menu: the toggle sits right after Code, and its panel takes no room in the tab row.
72.repo-tabs .tab-more {
73 position: static;
74 margin: 0;
75}
76
77.repo-tabs .tab-more-toggle {
78 margin-left: -6px;
79 width: 26px;
80 padding: 0;
81 justify-content: center;
82 color: var(--muted);
83
84 svg {
85 width: 14px;
86 height: 14px;
87 fill: none;
88 stroke: currentColor;
89 stroke-width: 2;
90 stroke-linecap: round;
91 stroke-linejoin: round;
92 }
93
94 &:hover {
95 color: var(--text);
96 }
97}
98
99.repo-tabs .tab-more-list {
100 top: 100%;
101 left: 0;
102 margin-top: 6px;
103 color: var(--text);
104}
105
106.repo-tabs .tab-more-link {
107 color: var(--text);
108 font-size: 14px;
109 font-weight: 500;
110 height: 34px;
111 display: flex;
112 align-items: center;
113 padding: 0 12px;
114 border-radius: 12px;
115 margin: 0 6px;
116}
117
118// The bell count is a pill, not a circle of its own size.
119.corner-bell .bell-count {
120 border-radius: 999px;
121}
122
123// The default-branch chip has no outline on any page.
124a > .ref-chip,
125.ref-chip.ref-chip {
126 border: 0;
127}
128
129// Theme picker on the sign-in pages: its buttons are the segmented set's soft shapes, not outlined boxes.
130.theme-form button.icon-btn {
131 border: 0;
132}
133
134// Watch options are menu rows: the name only. The longer description stays for screen readers.
135.watch-list .watch-option-desc {
136 position: absolute;
137 width: 1px;
138 height: 1px;
139 overflow: hidden;
140 clip-path: inset(50%);
141 white-space: nowrap;
142}
143
144// The watch menu's button is a soft shape like every other action beside a title (the
145// `.head-title` pill rule below). Its options are menu rows: 34px, the check before the name.
146.watch-menu > summary {
147 height: var(--control-h);
148 padding: 0 30px 0 14px;
149 border: 0;
150 border-radius: 19px;
151 background: var(--surface-2);
152 font-size: 15px;
153}
154
155// Beside a repo title, the watch button is one of the head's pills: the same height, radius, fill,
156// and 600 text as Star and Fork. The caret keeps its place at the end.
157.head-title > .watch-control .watch-menu > summary {
158 box-sizing: border-box;
159 padding: 0 30px 0 18px;
160 font-size: 15px;
161 font-weight: 600;
162 line-height: 1;
163 color: var(--text);
164
165 &:hover {
166 background: color-mix(in oklab, var(--surface-2) 88%, var(--text));
167 }
168}
169
170.watch-list {
171 padding: 6px;
172}
173
174.watch-list button.watch-option {
175 display: flex;
176 align-items: center;
177 gap: 8px;
178 height: 34px;
179 padding: 0 12px;
180 border-radius: 12px;
181 font-size: 14px;
182 white-space: nowrap;
183
184 &::before {
185 flex: none;
186 margin: 0 4px -2px;
187 align-self: center;
188 transform: translateY(-2px) rotate(45deg);
189 }
190}
191
192.watch-list button.watch-option {
193 justify-content: flex-start;
194 text-align: left;
195}
196
197// The open code page is marked in its menu the way a current rail item is.
198.repo-tabs .tab-more-link.is-current {
199 background: var(--surface-2);
200 font-weight: 600;
201}
202
203// In the head the watcher count is in the line under the title, so the watch pill stands alone.
204.head-title > .watch-control > .hint {
205 display: none;
206}
207
208// On a phone the watch pill is its eye and chevron, so it shares the title's line with Star; its
209// level stays in the summary's label.
210@media (max-width: 700px) {
211 .head-title > .watch-control .watch-menu > summary > span {
212 display: none;
213 }
214}