remove obsolete elements and cleanup gui
This commit is contained in:
+55
-1
@@ -546,11 +546,13 @@ button,
|
||||
transition-duration: .01ms !important;
|
||||
}
|
||||
}
|
||||
.info-button {
|
||||
.info-control {
|
||||
position: fixed;
|
||||
top: calc(env(safe-area-inset-top) + .45rem);
|
||||
right: max(.65rem, env(safe-area-inset-right));
|
||||
z-index: 10001;
|
||||
}
|
||||
.info-button {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: var(--icon-button-size);
|
||||
@@ -571,6 +573,58 @@ button,
|
||||
outline: .2rem solid #fff;
|
||||
outline-offset: .15rem;
|
||||
}
|
||||
.info-dropdown {
|
||||
position: absolute;
|
||||
top: calc(100% + .45rem);
|
||||
right: 0;
|
||||
display: grid;
|
||||
gap: .35rem;
|
||||
width: min(20rem, calc(100vw - 1.3rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
|
||||
max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--icon-button-size) - 1.8rem);
|
||||
box-sizing: border-box;
|
||||
padding: .65rem;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
border: 1px solid rgba(49, 93, 58, .28);
|
||||
border-radius: .8rem;
|
||||
background: #f8f5eb;
|
||||
color: #233326;
|
||||
box-shadow: 0 .8rem 2rem rgba(20, 32, 22, .28);
|
||||
transform-origin: top right;
|
||||
transform: scaleY(0);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: transform 180ms ease-out, opacity 180ms ease-out;
|
||||
touch-action: pan-y;
|
||||
}
|
||||
.info-dropdown[hidden] {
|
||||
display: none;
|
||||
}
|
||||
.info-dropdown.is-open {
|
||||
transform: scaleY(1);
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
.info-dropdown button {
|
||||
width: 100%;
|
||||
min-height: 2.75rem;
|
||||
padding: .65rem .8rem;
|
||||
border: 1px solid #c8d3ca;
|
||||
border-radius: .55rem;
|
||||
background: #fff;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
touch-action: manipulation;
|
||||
}
|
||||
.info-dropdown button:hover {
|
||||
background: #e6efdf;
|
||||
}
|
||||
.info-dropdown button:focus-visible {
|
||||
outline: .2rem solid var(--primary-dark);
|
||||
outline-offset: -.2rem;
|
||||
}
|
||||
|
||||
.app-page > header:not(.has-back-button) h1 {
|
||||
padding-right: calc(var(--icon-button-size) + 1rem);
|
||||
|
||||
Reference in New Issue
Block a user