@axium/client 0.9.5 → 0.9.7
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 +16 -0
- package/lib/Popover.svelte +16 -4
- package/package.json +1 -1
- package/styles/account.css +27 -6
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;
|
package/lib/Popover.svelte
CHANGED
|
@@ -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=
|
|
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-
|
|
37
|
-
position-
|
|
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
package/styles/account.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.section {
|
|
2
2
|
width: 50%;
|
|
3
|
+
min-width: fit-content;
|
|
3
4
|
padding-top: 2em;
|
|
4
5
|
|
|
5
6
|
/* This is causing duplicate separators when removing sessions/passkeys
|
|
@@ -37,15 +38,28 @@
|
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
.passkey {
|
|
40
|
-
grid-template-columns:
|
|
41
|
+
grid-template-columns: 1fr 1fr 1em 1em;
|
|
42
|
+
|
|
43
|
+
p:first-child {
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-columns: 1em 1em 1fr;
|
|
46
|
+
align-items: center;
|
|
47
|
+
width: 100%;
|
|
48
|
+
gap: 1em;
|
|
49
|
+
text-wrap: nowrap;
|
|
50
|
+
}
|
|
41
51
|
|
|
42
52
|
dfn:not(.disabled) {
|
|
43
53
|
cursor: help;
|
|
44
54
|
}
|
|
55
|
+
|
|
56
|
+
> button {
|
|
57
|
+
display: contents;
|
|
58
|
+
}
|
|
45
59
|
}
|
|
46
60
|
|
|
47
61
|
.session {
|
|
48
|
-
grid-template-columns:
|
|
62
|
+
grid-template-columns: 10em 1fr 1fr 1em;
|
|
49
63
|
|
|
50
64
|
.current {
|
|
51
65
|
border-radius: 2em;
|
|
@@ -71,17 +85,25 @@
|
|
|
71
85
|
|
|
72
86
|
.section {
|
|
73
87
|
width: calc(100% - 2em);
|
|
88
|
+
min-width: unset;
|
|
74
89
|
}
|
|
75
90
|
|
|
76
|
-
.
|
|
77
|
-
|
|
78
|
-
|
|
91
|
+
.item:is(.passkey, .session) {
|
|
92
|
+
display: flex;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
align-items: flex-start;
|
|
79
95
|
padding-top: 1em;
|
|
80
96
|
|
|
81
97
|
p {
|
|
82
98
|
margin: 0;
|
|
83
99
|
}
|
|
84
100
|
|
|
101
|
+
> button {
|
|
102
|
+
display: flex;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.item.session {
|
|
85
107
|
.timestamp {
|
|
86
108
|
grid-column: 2;
|
|
87
109
|
text-align: right;
|
|
@@ -89,7 +111,6 @@
|
|
|
89
111
|
|
|
90
112
|
.logout {
|
|
91
113
|
margin-top: 0;
|
|
92
|
-
display: flex;
|
|
93
114
|
grid-row: 2;
|
|
94
115
|
grid-column: 1;
|
|
95
116
|
}
|