@yuneta/gobj-ui 7.26.49 → 7.26.50

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": "@yuneta/gobj-ui",
3
- "version": "7.26.49",
3
+ "version": "7.26.50",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
@@ -514,8 +514,6 @@
514
514
  white-space: nowrap;
515
515
  background-color: var(--bulma-danger, #f14668);
516
516
  color: var(--bulma-danger-invert, #fff);
517
- /* Separates the pill from the glyph when they overlap. */
518
- box-shadow: 0 0 0 0.12em var(--bulma-scheme-main, #fff);
519
517
  pointer-events: none;
520
518
  }
521
519
  .yui-badge[hidden] {
@@ -556,14 +554,24 @@
556
554
  top: -0.35em;
557
555
  right: -0.55em;
558
556
  font-size: 0.62em;
557
+ /* Separates the dot from the glyph it overlaps. */
558
+ box-shadow: 0 0 0 0.12em var(--bulma-scheme-main, #fff);
559
559
  }
560
560
 
561
- /* Menu item: after the label. Sized in rem, so it is the same
561
+ /* Menu item: after the label, a pill of the size of a Bulma tag
562
+ * (as gobj-ui v1 drew it), with no ring: nothing under it to keep
563
+ * apart, and on the colour of an active item a ring of the page's
564
+ * colour read as a dark circle that ate the tone -- red and yellow
565
+ * were hard to tell at that size. Sized in rem, so it is the same
562
566
  * pill in every layout whatever the item's own font size. */
563
567
  .yui-nav-badge {
564
568
  flex: 0 0 auto;
565
569
  margin-inline-start: 0.4rem;
566
570
  font-size: 0.75rem;
571
+ min-width: 2em;
572
+ height: 2em;
573
+ padding: 0 0.75em;
574
+ font-weight: 400;
567
575
  vertical-align: middle;
568
576
  }
569
577
  /* Where the item already spaces its children (a flex row or column
@@ -585,6 +593,12 @@
585
593
  inset-inline-end: -0.55em;
586
594
  margin: 0;
587
595
  font-size: 0.7rem;
596
+ min-width: 1.15em;
597
+ height: 1.15em;
598
+ padding: 0 0.3em;
599
+ font-weight: 700;
600
+ /* Separates the dot from the glyph it overlaps. */
601
+ box-shadow: 0 0 0 0.12em var(--bulma-scheme-main, #fff);
588
602
  }
589
603
 
590
604
  /*============================================================