@instacks/peak 1.5.0 → 1.6.1

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/README.md CHANGED
@@ -275,6 +275,9 @@ All of these work without JavaScript.
275
275
  <!-- A toast in the corner; showing it after an action needs showPopover() -->
276
276
  <div class="peak-toast success" popover="manual" role="status" id="saved">Saved.</div>
277
277
 
278
+ <!-- An icon: any single-color SVG as a mask, drawn in the text color (.sm, .lg, .xl) -->
279
+ <span class="peak-icon" style="--peak-icon: url(/icons/mail.svg)" aria-hidden="true"></span>
280
+
278
281
  <!-- Stats, steps, avatars, pagination, sidebar navigation -->
279
282
  <dl class="peak-stats"><div><dt>Downloads</dt><dd>1,284</dd></div></dl>
280
283
  <ol class="peak-steps"><li>Download</li><li aria-current="step">Install</li><li>Activate</li></ol>
package/dist/peak.css CHANGED
@@ -4156,6 +4156,10 @@
4156
4156
  }
4157
4157
  }
4158
4158
 
4159
+ [data-peak-anchor] > [popovertarget] {
4160
+ margin-block-end: 0;
4161
+ }
4162
+
4159
4163
  :is([popover="hint"], [role="tooltip"][popover]) {
4160
4164
  border-radius: var(--pico-border-radius);
4161
4165
  background-color: var(--pico-tooltip-background-color);
@@ -5115,6 +5119,14 @@
5115
5119
  display: inline-flex;
5116
5120
  }
5117
5121
 
5122
+ div.peak-avatar-group {
5123
+ display: flex;
5124
+ }
5125
+
5126
+ :where(div.peak-avatar-group) {
5127
+ margin-block-end: var(--pico-typography-spacing-vertical);
5128
+ }
5129
+
5118
5130
  .peak-avatar-group > .peak-avatar {
5119
5131
  box-shadow: 0 0 0 calc(var(--pico-border-width) * 2) var(--peak-bg);
5120
5132
  }
@@ -5148,6 +5160,45 @@
5148
5160
  background-clip: text;
5149
5161
  }
5150
5162
 
5163
+ .peak-icon {
5164
+ inline-size: var(--peak-icon-size, 1.25em);
5165
+ block-size: var(--peak-icon-size, 1.25em);
5166
+ vertical-align: middle;
5167
+ mask: var(--peak-icon) center / contain no-repeat;
5168
+ forced-color-adjust: none;
5169
+ -webkit-print-color-adjust: exact;
5170
+ print-color-adjust: exact;
5171
+ background-color: currentColor;
5172
+ flex: none;
5173
+ display: inline-block;
5174
+ }
5175
+
5176
+ .peak-icon.sm {
5177
+ --peak-icon-size: 1em;
5178
+ }
5179
+
5180
+ .peak-icon.lg {
5181
+ --peak-icon-size: 1.75em;
5182
+ }
5183
+
5184
+ .peak-icon.xl {
5185
+ --peak-icon-size: 2.5em;
5186
+ }
5187
+
5188
+ :where(a:not([role="button"], aside li a, .dropdown li a, [popover] li a):has( > .peak-icon)) {
5189
+ align-items: baseline;
5190
+ gap: .25em;
5191
+ display: inline-flex;
5192
+ }
5193
+
5194
+ :where(a:not([role="button"], aside li a, .dropdown li a, [popover] li a)) > .peak-icon {
5195
+ line-height: var(--peak-icon-size, 1.25em);
5196
+ }
5197
+
5198
+ :where(a:not([role="button"], aside li a, .dropdown li a, [popover] li a)) > .peak-icon:before {
5199
+ content: "​" / "";
5200
+ }
5201
+
5151
5202
  .site-nav .site-menu, .site-nav .site-menu-popover[popover] {
5152
5203
  display: contents;
5153
5204
  }