diff --git a/www/assets/css/app.css b/www/assets/css/app.css index c2abfb7..f93e210 100644 --- a/www/assets/css/app.css +++ b/www/assets/css/app.css @@ -58,6 +58,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. background-color: var(--solid-translucent-color); } +.background-color-transparent { + background-color: transparent; +} + .page-content-fab-pad { padding-bottom: var(--f7-fab-size); } @@ -73,13 +77,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. -webkit-app-region: no-drag; } -.maplibregl-map .package-marker { - width: 32px; - height: 32px; - background-image: url(../images/package-icon.png); - background-size: contain; -} - /* * Material icons are too big and disrupt the flow of text */ @@ -95,12 +92,16 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. font-size: var(--f7-block-font-size); } -.card-header.no-hairlines:after { - display: none; +.searchbar-icon-button { + pointer-events: auto; +} + +.searchbar-icon-button:after { + color: var(--f7-navbar-link-color,var(--f7-bars-link-color,var(--f7-theme-color))); } -.homepage-card { - height: calc(100% - calc(var(--f7-card-margin-vertical) * 2)); +.card-header.no-hairlines:after { + display: none; } .no-animation * { @@ -131,59 +132,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. } } -.signature-wrapper { - background-color: white; - border-radius: 10px; - position: relative; - width: 400px; - max-width: 100%; - height: 200px; - margin: 0 auto; - border: 1px solid rgba(0,0,0,0.5); - /* fix bug on iOS where image sticks out right side and makes entire page scroll horiz. */ - overflow: hidden; -} - -.signature-wrapper img { - position: absolute; - bottom: 0; - left: 0; -} - -.signature-wrapper canvas { - position: absolute; - left: 0; - top: 0; - width: 400px; - max-width: 95vw; - height: 200px; -} - -.signature-wrapper #signatureClearBtn { - display: block; - position: absolute; - right: 0; - top: 0; - padding: 10px; -} - -.signature-wrapper #signatureUndoBtn { - display: block; - position: absolute; - right: 40px; - top: 0; - padding: 10px; -} - -#noticeslip-pay-popup { - background: var(--f7-page-bg-color); -} - -#noticeslip-pay-popup #noticeslip-stripe-elements { - background-color: white; - padding: 1em; - border-radius: 10px; -} .pointercursor { cursor: pointer; @@ -209,23 +157,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. padding-top: calc(var(--f7-navbar-height) * 1.5); } -.maplibregl-popup-content { - color: var(--f7-text-color); - background-color: var(--f7-page-bg-color); -} -.maplibregl-popup-anchor-top .maplibregl-popup-tip, .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { - border-bottom-color: var(--f7-page-bg-color); -} -.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { - border-top-color: var(--f7-page-bg-color); -} -.maplibregl-popup-anchor-left .maplibregl-popup-tip { - border-right-color: var(--f7-page-bg-color); -} -.maplibregl-popup-anchor-right .maplibregl-popup-tip { - border-left-color: var(--f7-page-bg-color); -} .list.basic-list li { padding-top: calc(var(--f7-list-item-min-height) / 4); @@ -253,35 +185,3 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/. transform-origin: 50% 100%; transform: scaleY(calc(1 / var(--f7-device-pixel-ratio))); } - -#trackMapContainer { - margin: 0; - min-height: 200px; - max-height: 500px; - height: 30vh; -} - -#receiptvieweriframe { - width: 100%; - height: calc(100% - var(--f7-navbar-height)); - border: 0; - padding: 0; - margin: 0; -} - -html.md #track-page-tabbar .tabbar-label { - margin-top: 0.2em; -} - -@media all and (min-width: 1024px) { - #trackMapContainer { - height: calc(calc(100vh - calc(var(--f7-list-margin-vertical) * 2)) - var(--f7-navbar-height)); - min-height: none; - max-height: none; - margin: var(--f7-list-margin-vertical) 0; - } - #trackResultContainer ul { - height: calc(calc(100vh - calc(var(--f7-list-margin-vertical) * 2)) - var(--f7-navbar-height)); - overflow-y: auto; - } -} \ No newline at end of file diff --git a/www/assets/css/customstyles.css b/www/assets/css/customstyles.css new file mode 100644 index 0000000..537641d --- /dev/null +++ b/www/assets/css/customstyles.css @@ -0,0 +1,151 @@ +/* +This Source Code Form is subject to the terms of the Mozilla Public +License, v. 2.0. If a copy of the MPL was not distributed with this +file, You can obtain one at http://mozilla.org/MPL/2.0/. +*/ + + +/* + + Homepage + +*/ +.homepage-card { + height: calc(100% - calc(var(--f7-card-margin-vertical) * 2)); +} + +/* + + Receipt viewer + +*/ + +#receiptvieweriframe { + width: 100%; + height: calc(100% - var(--f7-navbar-height)); + border: 0; + padding: 0; + margin: 0; +} + + +/* + + Tracking page + +*/ +html.md #track-page-tabbar .tabbar-label { + margin-top: 0.2em; +} + +#track-page-tabbar { + background-color: var(--translucent-color); +} + +#trackMapContainer { + margin: 0; + min-height: 200px; + max-height: 500px; + height: 30vh; +} + +@media all and (min-width: 1024px) { + #trackMapContainer { + height: calc(calc(100vh - calc(var(--f7-list-margin-vertical) * 2)) - var(--f7-navbar-height)); + min-height: none; + max-height: none; + margin: var(--f7-list-margin-vertical) 0; + } + #trackResultContainer ul { + height: calc(calc(100vh - calc(var(--f7-list-margin-vertical) * 2)) - var(--f7-navbar-height)); + overflow-y: auto; + } +} + +/* + + Map + +*/ +.maplibregl-popup-content { + color: var(--f7-text-color); + background-color: var(--f7-page-bg-color); +} + +.maplibregl-popup-anchor-top .maplibregl-popup-tip, .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { + border-bottom-color: var(--f7-page-bg-color); +} +.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { + border-top-color: var(--f7-page-bg-color); +} +.maplibregl-popup-anchor-left .maplibregl-popup-tip { + border-right-color: var(--f7-page-bg-color); +} +.maplibregl-popup-anchor-right .maplibregl-popup-tip { + border-left-color: var(--f7-page-bg-color); +} +.maplibregl-map .package-marker { + width: 32px; + height: 32px; + background-image: url(../images/package-icon.png); + background-size: contain; +} + +/* + + Signature box + +*/ +.signature-wrapper { + background-color: white; + border-radius: 10px; + position: relative; + width: 400px; + max-width: 100%; + height: 200px; + margin: 0 auto; + border: 1px solid rgba(0,0,0,0.5); + /* fix bug on iOS where image sticks out right side and makes entire page scroll horiz. */ + overflow: hidden; +} + +.signature-wrapper img { + position: absolute; + bottom: 0; + left: 0; +} + +.signature-wrapper canvas { + position: absolute; + left: 0; + top: 0; + width: 400px; + max-width: 95vw; + height: 200px; +} + +.signature-wrapper #signatureClearBtn { + display: block; + position: absolute; + right: 0; + top: 0; + padding: 10px; +} + +.signature-wrapper #signatureUndoBtn { + display: block; + position: absolute; + right: 40px; + top: 0; + padding: 10px; +} + +#noticeslip-pay-popup { + background: var(--f7-page-bg-color); +} + +#noticeslip-pay-popup #noticeslip-stripe-elements { + background-color: white; + padding: 1em; + border-radius: 10px; +} \ No newline at end of file diff --git a/www/index.html b/www/index.html index 3739cc0..4847dd8 100644 --- a/www/index.html +++ b/www/index.html @@ -20,6 +20,7 @@ + diff --git a/www/pages/account.html b/www/pages/account.html index eafa04c..f24e6e0 100644 --- a/www/pages/account.html +++ b/www/pages/account.html @@ -24,7 +24,7 @@
-
+


Loading... diff --git a/www/pages/track.html b/www/pages/track.html index 122317a..01768bc 100644 --- a/www/pages/track.html +++ b/www/pages/track.html @@ -25,7 +25,7 @@
- +
Cancel @@ -35,7 +35,7 @@
-