@axium/client 0.9.5 → 0.9.6

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/assets/styles.css CHANGED
@@ -224,6 +224,22 @@ h6 {
224
224
  background-color: hsl(var(--hue) 15 calc(var(--bg-light) + (var(--light-step) * 2)));
225
225
  }
226
226
 
227
+ .mobile-float-left {
228
+ position: fixed;
229
+ bottom: 1em;
230
+ left: 1em;
231
+ z-index: 4;
232
+ font-size: 1.25em;
233
+ }
234
+
235
+ .mobile-float-right {
236
+ position: fixed;
237
+ bottom: 1em;
238
+ right: 1em;
239
+ z-index: 4;
240
+ font-size: 1.25em;
241
+ }
242
+
227
243
  .inline-button {
228
244
  width: 80%;
229
245
  align-self: center;
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">
2
2
  import Icon from './Icon.svelte';
3
- const { children, toggle }: { children(): any; toggle?(): any } = $props();
3
+ const { children, toggle, showToggle }: { children(): any; toggle?(): any; showToggle?: 'hover' | 'always' } = $props();
4
4
 
5
5
  let popover = $state<HTMLDivElement>();
6
6
 
@@ -17,7 +17,7 @@
17
17
  {#if toggle}
18
18
  {@render toggle()}
19
19
  {:else}
20
- <span class="popover-toggle">
20
+ <span class={['popover-toggle', showToggle == 'hover' && 'toggle-hover']}>
21
21
  <Icon i="ellipsis" />
22
22
  </span>
23
23
  {/if}
@@ -32,9 +32,21 @@
32
32
  cursor: pointer;
33
33
  }
34
34
 
35
+ @media (width > 700px) {
36
+ .toggle-hover {
37
+ visibility: hidden;
38
+ }
39
+
40
+ :global(:hover) > div > .toggle-hover {
41
+ visibility: visible;
42
+ }
43
+ }
44
+
35
45
  .popover-toggle + [popover] {
36
- position-area: bottom right;
37
- position-try: most-width flip-inline;
46
+ position-try: flip-inline;
47
+ position-visibility: always;
48
+ left: anchor(left);
49
+ top: anchor(bottom);
38
50
  }
39
51
 
40
52
  [popover] :global(.menu-item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axium/client",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "author": "James Prevett <jp@jamespre.dev>",
5
5
  "funding": {
6
6
  "type": "individual",