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);
|
||||
|
||||
@@ -8,43 +8,6 @@
|
||||
gap: .4rem;
|
||||
}
|
||||
|
||||
.route-control-summary {
|
||||
display: grid;
|
||||
width: min(13rem, calc(100vw - (var(--icon-button-size) * 2) - 6rem));
|
||||
min-height: var(--icon-button-size);
|
||||
box-sizing: border-box;
|
||||
align-content: center;
|
||||
gap: .08rem;
|
||||
padding: .35rem .75rem;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255, 255, 255, .72);
|
||||
border-radius: .9rem;
|
||||
background: rgba(36, 70, 43, .94);
|
||||
color: #fff;
|
||||
box-shadow: 0 .15rem .55rem rgba(0, 0, 0, .22);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.route-control-summary strong,
|
||||
.route-control-summary small {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.route-control-summary strong {
|
||||
font-size: .9rem;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.route-control-summary small {
|
||||
color: rgba(255, 255, 255, .86);
|
||||
font-size: .68rem;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.route-control-button,
|
||||
.route-control-button.ui-button {
|
||||
display: grid;
|
||||
@@ -583,10 +546,6 @@
|
||||
right: calc(max(.5rem, env(safe-area-inset-right)) + var(--icon-button-size) + .35rem);
|
||||
}
|
||||
|
||||
.route-control-summary {
|
||||
width: min(10.5rem, calc(100vw - (var(--icon-button-size) * 2) - 5rem));
|
||||
}
|
||||
|
||||
.route-control-dropdown {
|
||||
position: fixed;
|
||||
top: calc(env(safe-area-inset-top) + var(--icon-button-size) + .9rem);
|
||||
|
||||
Reference in New Issue
Block a user