InfoTren
diff --git a/base.css b/base.css index 63a6639..197f32e 100644 --- a/base.css +++ b/base.css @@ -72,10 +72,41 @@ footer .rsk { } header { + position: fixed; + left: env(titlebar-area-x, 0); + top: env(titlebar-area-y, 0); + width: env(titlebar-area-width, 100%); + height: env(titlebar-area-height, 36px); + -webkit-app-region: drag; + app-region: drag; + display: flex; align-items: center; } +.header-placeholder { + margin-top: env(titlebar-area-height, 36px); +} + +header.embedded { + background-color: #0000ff; + color: white; +} + +@media (display-mode: window-controls-overlay) { + header { + background-color: #0000ff; + color: white; + } + + header .back { + -webkit-app-region: no-drag; + app-region: no-drag; + + filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(83deg) brightness(104%) contrast(101%); + } +} + header .left, header .right { flex-grow: 1; flex-basis: 0; @@ -87,6 +118,13 @@ header .back { cursor: pointer; } +header.embedded .back { + -webkit-app-region: no-drag; + app-region: no-drag; + + filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(83deg) brightness(104%) contrast(101%); +} + h1 { font-size: 17px; font-weight: 400; diff --git a/index.html b/index.html index 5b87f32..3cbe8db 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,12 @@ -InfoTren
+InfoTren
+ +-
diff --git a/manifest.json b/manifest.json
index 8b998e1..eb0eea4 100644
--- a/manifest.json
+++ b/manifest.json
@@ -7,6 +7,7 @@
"background_color": "#ffffff",
"display": "standalone",
"display_override": [
+ "window-controls-overlay",
"standalone",
"minimal-ui"
],
diff --git a/route.html b/route.html
index f2e4a8b..9801a28 100644
--- a/route.html
+++ b/route.html
@@ -20,11 +20,12 @@
-
+
Find Route
-
+
Showcase
h1
diff --git a/station.html b/station.html index 0b6057c..7c2b858 100644 --- a/station.html +++ b/station.html @@ -18,11 +18,12 @@
-
+
Station Information
-
+
Train Information
-
+
View Station
diff --git a/view-train.html b/view-train.html
index a7f06a7..7311146 100644
--- a/view-train.html
+++ b/view-train.html
@@ -20,11 +20,13 @@
+
+
-
+