v0.31.0 bf0756b

permission_popup_css.go RawHistoryFolder

1package theme
2
3// generatePermissionPopupCSS creates permission popup overlay styles.
4// Uses em units for scalable UI, matches omnibox/session manager styling patterns.
5func generatePermissionPopupCSS(p Palette) string {
6	_ = p
7	return `/* ===== Permission Popup Styling ===== */
8
9.permission-popup-outer {
10	/* Positioning handled via SetHalign/SetValign in Go */
11}
12
13.permission-popup-container {
14	background-color: var(--surface-variant);
15	border: 0.0625em solid var(--border);
16	border-radius: 0.1875em;
17	padding: 0;
18	min-width: 20em;
19}
20
21.permission-popup-heading {
22	font-size: 0.9375em;
23	font-weight: 600;
24	color: var(--text);
25	padding: 0.75em 1em 0.25em 1em;
26}
27
28.permission-popup-body {
29	font-size: 0.8125em;
30	font-weight: 400;
31	color: var(--muted);
32	padding: 0.25em 1em 0.75em 1em;
33}
34
35.permission-popup-btn-row {
36	border-top: 0.0625em solid var(--border);
37	padding: 0.5em 0.75em;
38}
39
40/* Shared button base */
41.permission-popup-btn {
42	background-image: none;
43	border: 0.0625em solid var(--border);
44	border-radius: 0.1875em;
45	padding: 0.375em 0.75em;
46	font-size: 0.8125em;
47	font-weight: 500;
48	transition: background-color 120ms ease-in-out, border-color 120ms ease-in-out;
49}
50
51/* Allow buttons - accent styled */
52.permission-popup-btn-allow {
53	background-color: alpha(var(--accent), 0.15);
54	color: var(--accent);
55	border-color: alpha(var(--accent), 0.3);
56}
57
58.permission-popup-btn-allow:hover {
59	background-color: alpha(var(--accent), 0.25);
60	border-color: var(--accent);
61}
62
63/* Deny button - subtle default */
64.permission-popup-btn-deny {
65	background-color: var(--surface);
66	color: var(--text);
67}
68
69.permission-popup-btn-deny:hover {
70	background-color: shade(var(--surface), 1.15);
71}
72
73/* Always Deny - destructive */
74.permission-popup-btn-destructive {
75	background-color: alpha(var(--destructive), 0.15);
76	color: var(--destructive);
77	border-color: alpha(var(--destructive), 0.3);
78}
79
80.permission-popup-btn-destructive:hover {
81	background-color: alpha(var(--destructive), 0.25);
82	border-color: var(--destructive);
83}
84`
85}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close