@the-portland-company/shell 0.14.3 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/chrome.css CHANGED
@@ -296,3 +296,56 @@
296
296
  --line: #333333;
297
297
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.5);
298
298
  }
299
+
300
+ /* ---------------------------------------------------------------------------
301
+ Top-bar widget slot — normalizes third-party launchers (e.g. DevNotes) to
302
+ the universal top-bar icon treatment (Global Rules: every icon the exact
303
+ same size, every badge the exact same style; no slot ships its own look).
304
+ Wrap the widget in `.topbar-widget-slot` (shell exports <TopBarWidgetSlot>).
305
+ --------------------------------------------------------------------------- */
306
+ .topbar-widget-slot > button,
307
+ .topbar-widget-slot > div > button:first-of-type,
308
+ .topbar-widget-slot > span > button:first-of-type {
309
+ width: var(--topbar-icon-button-size, 32px);
310
+ height: var(--topbar-icon-button-size, 32px);
311
+ display: inline-flex;
312
+ align-items: center;
313
+ justify-content: center;
314
+ border: 1px solid var(--line);
315
+ border-radius: 9999px;
316
+ background: transparent;
317
+ color: var(--topbar-icon-color, var(--muted));
318
+ opacity: 1;
319
+ position: relative;
320
+ transition: background-color 0.15s ease, color 0.15s ease;
321
+ }
322
+ .topbar-widget-slot > button:hover,
323
+ .topbar-widget-slot > div > button:first-of-type:hover,
324
+ .topbar-widget-slot > span > button:first-of-type:hover {
325
+ background: var(--topbar-icon-hover-bg, transparent);
326
+ color: var(--topbar-icon-hover-color, var(--foreground));
327
+ }
328
+ .topbar-widget-slot button svg {
329
+ width: var(--topbar-icon-size, 20px);
330
+ height: var(--topbar-icon-size, 20px);
331
+ opacity: 1;
332
+ }
333
+ /* Match <TopBarCountBadge>: same offset, size, fill and type as every count. */
334
+ .topbar-widget-slot button [class*="rounded-full"][class*="bg-"],
335
+ .topbar-widget-slot button .dn-badge {
336
+ position: absolute;
337
+ top: -4px;
338
+ right: -4px;
339
+ height: 1rem;
340
+ min-width: 1rem;
341
+ display: inline-flex;
342
+ align-items: center;
343
+ justify-content: center;
344
+ padding: 0 0.25rem;
345
+ border-radius: 9999px;
346
+ background: var(--color-race-red, #e63946);
347
+ color: #fff;
348
+ font-size: 10px;
349
+ font-weight: 400;
350
+ line-height: 1;
351
+ }