-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
307 lines (292 loc) · 17.3 KB
/
Copy pathstyle.css
File metadata and controls
307 lines (292 loc) · 17.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
/* ===== Ubuntu (GNOME / Yaru) reskin of the chrome desktop engine =====
Same primitives as solid-apps/chrome + win98 — windows, panes, launcher,
real-time, pod sync — wearing Ubuntu 24.04's Yaru look: dark top bar, the
left dock, the aubergine desktop, rounded Adwaita windows, Ubuntu orange. */
/* Self-hosted Ubuntu font (UFL-licensed). */
@font-face{ font-family:Ubuntu; src:url("fonts/ubuntu-400.woff2") format("woff2"); font-weight:400; font-display:swap; }
@font-face{ font-family:Ubuntu; src:url("fonts/ubuntu-500.woff2") format("woff2"); font-weight:500; font-display:swap; }
@font-face{ font-family:Ubuntu; src:url("fonts/ubuntu-700.woff2") format("woff2"); font-weight:700; font-display:swap; }
:root {
/* Yaru palette */
--u-orange: #E95420;
--u-orange-2: #F4754F;
--u-aubergine: #2C001E;
--u-purple: #77216F;
--u-dark: #1e1e1e;
--u-dark-2: #2b2b2b;
--u-win: #ffffff;
--u-win-2: #f6f5f4; /* Adwaita window background */
--u-header: #ebebeb; /* Adwaita headerbar */
--u-ink: #2e2e2e;
--u-ink-dim: #5e5c64;
--u-ink-faint: #9a9a96;
--u-hairline: rgba(0,0,0,0.12);
/* Aliases — chrome's modules + launcher/quick-settings/lock all read these. */
--bg: var(--u-win-2);
--text: var(--u-ink);
--text-dim: var(--u-ink-dim);
--text-faint: var(--u-ink-faint);
--text-on-accent:#ffffff;
--line: var(--u-hairline);
--bg-elev: var(--u-win);
--bg-elev-2: var(--u-win-2);
--accent: var(--u-orange);
--accent-2: var(--u-orange-2);
--accent-soft: rgba(233,84,32,0.15);
--good: #26a269;
--danger: #c01c28;
--warning: #e5a50a;
--shadow: 0 10px 34px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.12);
--tray-bg: rgba(28,28,28,0.92);
--tray-blur: saturate(1.2) blur(16px);
--shelf-bg: rgba(28,28,28,0.82);
--easing: cubic-bezier(.2,.8,.2,1);
--sans: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--mono: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
[data-theme="dark"] {
--bg: #242424; --text: #f6f5f4; --text-dim: #c0bfbc; --text-faint: #8b8a88;
--line: rgba(255,255,255,0.12); --bg-elev: #303030; --bg-elev-2: #242424;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; }
body {
font-family: var(--sans);
color: var(--text);
background: var(--u-aubergine);
-webkit-font-smoothing: antialiased;
user-select: none;
}
/* ===== Desktop wallpaper — the Ubuntu aubergine/purple ===== */
#wallpaper {
position: fixed; inset: 0; z-index: 0;
background:
radial-gradient(ellipse at 70% 18%, rgba(233,84,32,0.30) 0%, transparent 45%),
radial-gradient(ellipse at 22% 82%, rgba(119,33,111,0.55) 0%, transparent 55%),
linear-gradient(135deg, #2C001E 0%, #4A0F33 45%, #77216F 100%);
background-size: cover;
transition: filter .8s var(--easing);
}
[data-theme="dark"] #wallpaper { filter: brightness(0.82); }
#wallpaper.wallpaper-custom { background-image: var(--wp-url); }
/* ===== GNOME top bar ===== */
.topbar {
position: fixed; top: 0; left: 0; right: 0; z-index: 30;
height: 28px;
display: flex; align-items: center; gap: 6px;
padding: 0 8px;
background: var(--tray-bg);
backdrop-filter: var(--tray-blur); -webkit-backdrop-filter: var(--tray-blur);
color: #fff;
font: 500 13px var(--sans);
}
.topbar .activities {
display: inline-flex; align-items: center; gap: 7px;
height: 22px; padding: 0 10px;
background: transparent; border: none; border-radius: 6px;
color: #fff; font: 700 13px var(--sans); cursor: pointer;
}
.topbar .activities:hover { background: rgba(255,255,255,0.14); }
.topbar .activities .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--u-orange); box-shadow: 9px 0 0 #fff, 18px 0 0 rgba(255,255,255,.5); }
.tray-spacer { flex: 1; }
.tray-clock { font: 500 13px var(--sans); color: #fff; padding: 0 10px; position: absolute; left: 50%; transform: translateX(-50%); }
.tray-desks { display: inline-flex; align-items: center; gap: 4px; }
.tray-desk { width: 18px; height: 7px; background: rgba(255,255,255,0.35); border: none; border-radius: 4px; cursor: pointer; padding: 0; transition: background .12s, width .15s; }
.tray-desk:hover { background: rgba(255,255,255,0.6); }
.tray-desk.active { background: var(--u-orange); width: 24px; }
.tray-desk-add { width: 16px; height: 16px; background: transparent; color: rgba(255,255,255,0.6); border: 1px dashed rgba(255,255,255,0.4); border-radius: 5px; cursor: pointer; padding: 0; font: 600 12px var(--sans); line-height: 1; }
.tray-desk-add:hover { color: #fff; border-color: #fff; }
.tray-pill {
display: inline-flex; align-items: center; gap: 6px;
height: 22px; padding: 0 10px;
background: transparent; border: 1px solid transparent; border-radius: 6px;
color: #fff; font: 500 13px var(--sans); cursor: pointer;
transition: background .12s;
}
.tray-pill:hover { background: rgba(255,255,255,0.14); }
.tray-pill svg { display: block; }
.tray-auth-on { background: rgba(233,84,32,0.22); }
.tray-auth-on:hover { background: rgba(233,84,32,0.32); }
/* ===== Windows area (beside dock, below top bar) ===== */
.windows { position: fixed; inset: 28px 0 0 72px; z-index: 10; pointer-events: none; }
.windows > .window { pointer-events: auto; }
/* ===== Desktop icons (below top bar, right of dock) ===== */
.desktop-icons { position: fixed; inset: 28px 0 0 72px; z-index: 1; pointer-events: none; }
.desk-icon {
position: absolute; width: 80px; pointer-events: auto;
display: flex; flex-direction: column; align-items: center; gap: 4px;
padding: 7px 4px; background: transparent; border: 1px solid transparent; border-radius: 10px;
cursor: pointer; font: inherit; color: #fff; transition: background .1s;
}
.desk-icon:hover { background: rgba(255,255,255,0.16); }
.desk-icon:active { background: rgba(255,255,255,0.24); }
.desk-icon-glyph { font-size: 32px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
.desk-icon-label { font: 500 12px var(--sans); text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.75); max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== Left Ubuntu dock (the chrome "shelf", repositioned) ===== */
.dock {
position: fixed; left: 0; top: 28px; bottom: 0; z-index: 30;
width: 72px;
display: flex; flex-direction: column; align-items: center;
gap: 6px; padding: 8px 0;
background: var(--shelf-bg);
backdrop-filter: var(--tray-blur); -webkit-backdrop-filter: var(--tray-blur);
border-right: 1px solid rgba(0,0,0,0.4);
}
.shelf-running { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; overflow-y: auto; overflow-x: hidden; width: 100%; }
.shelf-running::-webkit-scrollbar { width: 0; }
.shelf-empty { display: none; } /* dock stays clean when empty */
.shelf-app {
position: relative;
display: grid; place-items: center;
width: 48px; height: 48px; flex-shrink: 0; padding: 0;
background: rgba(255,255,255,0.10);
border: none; border-radius: 12px;
color: #fff; cursor: pointer;
transition: background .12s, transform .08s;
}
.shelf-app:hover { background: rgba(255,255,255,0.20); transform: scale(1.04); }
.shelf-app.active, .shelf-app.minimized { background: rgba(255,255,255,0.16); }
/* the Yaru running indicator — an orange pip on the left edge */
.shelf-app.active::before, .shelf-app.minimized::before {
content: ""; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
width: 4px; height: 18px; border-radius: 2px; background: var(--u-orange);
}
.shelf-app.minimized::before { height: 8px; opacity: 0.7; }
.shelf-app.builtin { background: rgba(233,84,32,0.22); }
.shelf-app.launching { opacity: 0.6; }
.shelf-app-icon { font-size: 24px; line-height: 1; }
.shelf-app-name { display: none; } /* dock shows icons only; title via tooltip */
.shelf-sep { width: 36px; height: 1px; background: rgba(255,255,255,0.2); margin: 2px 0; flex-shrink: 0; }
/* "Show Applications" grid button pinned to the bottom of the dock */
.show-apps {
width: 48px; height: 48px; flex-shrink: 0; margin-top: 4px;
display: grid; place-items: center;
background: rgba(255,255,255,0.10); border: none; border-radius: 12px;
color: #fff; cursor: pointer; transition: background .12s;
}
.show-apps:hover { background: var(--u-orange); }
/* ===== Windows — rounded Adwaita ===== */
.window {
background: var(--bg-elev);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: var(--shadow);
display: flex; flex-direction: column;
overflow: hidden;
transition: box-shadow .15s var(--easing);
}
.window.win-active { box-shadow: 0 20px 48px rgba(0,0,0,0.34), 0 6px 14px rgba(0,0,0,0.18); }
.window.win-maximized { border-radius: 0; border: none; }
.win-titlebar {
height: 38px;
display: flex; align-items: center;
padding: 0 8px 0 14px;
background: var(--u-header);
border-bottom: 1px solid var(--line);
cursor: grab; user-select: none; flex-shrink: 0; touch-action: none;
}
[data-theme="dark"] .win-titlebar { background: #303030; }
.win-titlebar:active { cursor: grabbing; }
.win-title { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.win-icon { font-size: 15px; flex-shrink: 0; }
.win-title-text { font: 700 13px var(--sans); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-actions { display: flex; align-items: center; gap: 8px; }
.win-act {
width: 24px; height: 24px;
display: grid; place-items: center;
background: rgba(0,0,0,0.10); border: none; border-radius: 50%;
color: var(--text-dim); font: 600 13px var(--sans); line-height: 1;
cursor: pointer; transition: background .1s, color .1s;
}
[data-theme="dark"] .win-act { background: rgba(255,255,255,0.12); }
.win-act:hover { background: rgba(0,0,0,0.18); color: var(--text); }
.win-close:hover { background: var(--danger); color: #fff; }
.win-content { flex: 1; overflow: auto; background: var(--bg-elev); }
.win-error { padding: 14px 18px; background: rgba(192,28,40,0.08); border-bottom: 1px solid var(--line); color: var(--danger); font: 13px var(--mono); }
/* Resize handles + snap preview */
.win-resize { position: absolute; touch-action: none; }
.win-n { top: -3px; left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.win-s { bottom: -3px; left: 8px; right: 8px; height: 6px; cursor: ns-resize; }
.win-e { top: 8px; bottom: 8px; right: -3px; width: 6px; cursor: ew-resize; }
.win-w { top: 8px; bottom: 8px; left: -3px; width: 6px; cursor: ew-resize; }
.win-ne { top: -4px; right: -4px; width: 12px; height: 12px; cursor: nesw-resize; }
.win-nw { top: -4px; left: -4px; width: 12px; height: 12px; cursor: nwse-resize; }
.win-se { bottom: -4px; right: -4px; width: 12px; height: 12px; cursor: nwse-resize; }
.win-sw { bottom: -4px; left: -4px; width: 12px; height: 12px; cursor: nwse-resize; }
.window.win-maximized .win-resize { display: none; }
.win-snap-preview {
position: fixed; z-index: 50;
background: rgba(233,84,32,0.18);
border: 2px dashed var(--u-orange);
border-radius: 12px; pointer-events: none; opacity: 0;
transition: opacity .12s var(--easing), left .12s var(--easing), top .12s var(--easing), width .12s var(--easing), height .12s var(--easing);
}
/* ===== Launcher overlay — GNOME "Show Applications" grid ===== */
.launcher-overlay {
position: fixed; inset: 0; z-index: 60;
display: grid; place-items: start center;
padding-top: 76px;
background: rgba(44,0,30,0.55);
backdrop-filter: saturate(1.2) blur(22px); -webkit-backdrop-filter: saturate(1.2) blur(22px);
animation: launcher-fade .15s var(--easing);
}
@keyframes launcher-fade { from { opacity: 0; } to { opacity: 1; } }
.launcher-card {
width: min(92vw, 900px); max-height: calc(100vh - 120px);
display: flex; flex-direction: column;
background: var(--bg-elev); border: 1px solid var(--line);
border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.4);
overflow: hidden; animation: launcher-pop .2s var(--easing);
}
@keyframes launcher-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.launcher-search { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.launcher-search-icon { width: 18px; height: 18px; color: var(--text-faint); flex-shrink: 0; }
.launcher-input { flex: 1; background: transparent; border: none; outline: none; font: 500 18px var(--sans); color: var(--text); }
.launcher-input::placeholder { color: var(--text-faint); }
.launcher-hint { font: 11px var(--mono); color: var(--text-faint); background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.launcher-grid { flex: 1; overflow-y: auto; padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; align-content: start; }
.launcher-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 14px; background: transparent; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font: inherit; color: var(--text); transition: background .12s, border-color .12s, transform .08s; position: relative; }
.launcher-app:hover, .launcher-app:focus { background: var(--bg-elev-2); border-color: var(--line); outline: none; }
.launcher-app:active { transform: scale(0.97); }
.launcher-app-icon { width: 56px; height: 56px; display: grid; place-items: center; font-size: 32px; background: var(--bg-elev-2); border-radius: 16px; }
.launcher-app:hover .launcher-app-icon { background: var(--accent-soft); }
.launcher-app-name { font: 500 13px var(--sans); text-align: center; line-height: 1.3; }
.launcher-app-author { font: 11px var(--mono); color: var(--text-faint); }
.launcher-app.pinned .launcher-app-icon { box-shadow: 0 0 0 2px var(--accent); }
.launcher-pin { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; display: grid; place-items: center; background: transparent; border: none; border-radius: 50%; color: var(--text-faint); font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s, color .12s, background .12s; }
.launcher-app:hover .launcher-pin, .launcher-pin.on { opacity: 1; }
.launcher-pin:hover { background: var(--bg-elev-2); color: var(--accent); }
.launcher-pin.on { color: var(--accent); }
.launcher-status { grid-column: 1 / -1; text-align: center; padding: 32px 16px; color: var(--text-faint); font: 13px var(--sans); }
.launcher-status.err { color: var(--danger); font-family: var(--mono); }
.launcher-foot { padding: 10px 18px; border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--text-faint); }
/* ===== Quick settings popover ===== */
.quick-settings { position: fixed; z-index: 70; width: 320px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.22); padding: 12px; display: flex; flex-direction: column; gap: 10px; animation: qs-pop .12s var(--easing); }
@keyframes qs-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; } }
.qs-row { display: flex; align-items: center; gap: 10px; }
.qs-row.qs-stack { flex-direction: column; align-items: stretch; gap: 6px; }
.qs-label { flex: 0 0 80px; font: 500 13px var(--sans); color: var(--text-dim); }
.qs-row.qs-stack .qs-label { flex: 0 0 auto; } /* in a vertical stack, hug the text (don't become 80px tall) */
.qs-seg { display: inline-flex; gap: 0; }
.qs-seg button { background: var(--bg-elev-2); border: 1px solid var(--line); color: var(--text-dim); padding: 5px 14px; font: 13px var(--sans); cursor: pointer; }
.qs-seg button:first-child { border-radius: 7px 0 0 7px; }
.qs-seg button:last-child { border-radius: 0 7px 7px 0; border-left: none; }
.qs-seg button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.qs-input-row { display: flex; gap: 6px; }
.qs-input-row input { flex: 1; background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; font: 13px var(--mono); color: var(--text); outline: none; min-width: 0; }
.qs-input-row input:focus { border-color: var(--accent); }
.qs-btn { background: var(--accent); color: #fff; border: none; border-radius: 7px; padding: 6px 14px; font: 500 13px var(--sans); cursor: pointer; }
.qs-btn:hover { filter: brightness(1.05); }
.qs-btn.qs-ghost { background: var(--bg-elev-2); color: var(--text-dim); border: 1px solid var(--line); }
.qs-btn.qs-wide { width: 100%; padding: 8px; }
.qs-hint { font: 11px var(--mono); color: var(--text-faint); }
.qs-foot { padding-top: 8px; border-top: 1px solid var(--line); font: 11px var(--mono); color: var(--text-faint); }
.qs-foot code { word-break: break-all; }
/* ===== Lock screen ===== */
.lock-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(44,0,30,0.6); backdrop-filter: saturate(1.2) blur(28px); -webkit-backdrop-filter: saturate(1.2) blur(28px); color: #fff; cursor: pointer; user-select: none; animation: lock-fade-in .25s var(--easing); }
@keyframes lock-fade-in { from { opacity: 0; } to { opacity: 1; } }
.lock-overlay.lock-fading { opacity: 0; transition: opacity .25s var(--easing); }
.lock-clock { font: 300 96px/1 var(--sans); letter-spacing: -0.03em; }
.lock-date { font: 400 18px var(--sans); opacity: 0.85; margin-top: 8px; }
.lock-user { font: 13px var(--mono); opacity: 0.6; margin-top: 18px; }
.lock-hint { font: 12px var(--mono); opacity: 0.5; margin-top: 24px; }