@webority/theme 0.9.20 → 0.9.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/theme",
3
- "version": "0.9.20",
3
+ "version": "0.9.21",
4
4
  "description": "Webority shared design system — Bootstrap 5.3 SCSS overrides, --wui-* tokens, and shared component CSS. The single source of brand chrome for React portals and Razor sites.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -309,11 +309,23 @@
309
309
  line-height: 0;
310
310
  margin-bottom: 22px;
311
311
  }
312
+ // A caller-supplied illustration occupies the SAME footprint as the built-in badge, whatever
313
+ // the source file measures — the box is the theme's, the artwork is the caller's. Without
314
+ // this a 1024px export blows the dialog open and a 48px one sits lost in the whitespace, so
315
+ // "use your own image" would in practice mean "first go and resize it to ours". `contain`
316
+ // keeps a non-square source whole rather than cropping it.
317
+ .wui-confirm-icon img {
318
+ display: block;
319
+ width: 80px;
320
+ height: 80px;
321
+ object-fit: contain;
322
+ }
312
323
  // Icon size tracks the copy: a title+message dialog keeps the full 80px badge (set on
313
324
  // the element), but a lone title (no message) is one line and gets a smaller badge.
314
325
  // `.wui-confirm-msg` is a real element rendered only when a message exists, so `:has()`
315
326
  // is reliable here; CSS width/height override the SVG's own width/height attributes.
316
- .wui-confirm-content:not(:has(.wui-confirm-msg)) .wui-confirm-icon svg {
327
+ .wui-confirm-content:not(:has(.wui-confirm-msg)) .wui-confirm-icon svg,
328
+ .wui-confirm-content:not(:has(.wui-confirm-msg)) .wui-confirm-icon img {
317
329
  width: 56px;
318
330
  height: 56px;
319
331
  }
@@ -599,16 +599,15 @@
599
599
  min-height: 72px;
600
600
  padding: 12px 28px;
601
601
  background: var(--color-surface);
602
- // Transparent rather than absent, so gaining the divider on scroll doesn't
603
- // shift the layout by a pixel.
602
+ // Reserved rather than absent, so a consumer colouring the divider on
603
+ // `.app-topbar.scrolled` doesn't shift the layout by a pixel. The library
604
+ // adds that class on scroll but deliberately paints nothing: how heavy the
605
+ // topbar reads once the page moves is a per-surface art-direction call.
604
606
  border-bottom: 1px solid transparent;
605
607
  transition:
606
608
  border-color 0.2s ease,
607
609
  box-shadow 0.2s ease;
608
610
  }
609
- .app-topbar.scrolled {
610
- border-bottom-color: var(--color-border);
611
- }
612
611
  // Two groups: the leading one shrinks and ellipsises a long page title, the
613
612
  // trailing one is pinned so actions are never pushed off-screen.
614
613
  .app-topbar-start {