polished the UI a bit. next up: saving changes (and maybe a diff ui as confirmation dialog)

This commit is contained in:
Chris Kruining 2024-10-16 16:13:12 +02:00
parent 1a963a665e
commit 7db65413be
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
9 changed files with 323 additions and 117 deletions

View file

@ -0,0 +1,58 @@
.item {
padding: .5em 1em;
background-color: inherit;
color: var(--text-1);
border: none;
cursor: pointer;
text-align: start;
&:hover {
background-color: var(--surface-2);
}
}
.child {
position: fixed;
inset-inline-start: anchor(self-start);
inset-block-start: anchor(end);
grid-template-columns: auto auto;
place-content: start;
gap: .5em;
padding: .5em 0;
inline-size: max-content;
background-color: var(--surface-2);
border: 1px solid var(--surface-3);
border-block-start-width: 0;
margin: unset;
&:popover-open {
display: grid;
}
& > .item {
grid-column: span 2;
display: grid;
grid-template-columns: subgrid;
align-items: center;
background-color: var(--surface-2);
&:hover {
background-color: var(--surface-3);
}
& > sub {
color: var(--text-2);
text-align: end;
}
}
}
:popover-open + .item {
background-color: var(--surface-2);
}