-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always show TransitAlertDetailViewController when tapping on a transi…
…t alert Fixes #700 We now show the full content of the transit alert's body in a popup view controller, and optionally include a "Learn More" button at the bottom of it if the transit alert includes a URL.
- Loading branch information
1 parent
465e419
commit 44abd67
Showing
5 changed files
with
258 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
|
||
<head> | ||
<meta content='initial-scale=1.0, user-scalable=no' name='viewport'> | ||
<style type='text/css'> | ||
:root { | ||
color-scheme: light dark; | ||
} | ||
|
||
html { | ||
overflow-x: hidden; | ||
} | ||
|
||
body { | ||
-webkit-text-size-adjust: none; | ||
font-family: system, -apple-system, "Helvetica Neue", Helvetica, sans-serif; | ||
padding: 8px; | ||
overflow-x: hidden; | ||
} | ||
|
||
@media screen and (prefers-color-scheme:light) { | ||
body { | ||
background-color: #fff; | ||
color: #000; | ||
} | ||
} | ||
|
||
@media screen and (prefers-color-scheme:dark) { | ||
body { | ||
background-color: #000; | ||
color: #fff; | ||
} | ||
} | ||
|
||
code, | ||
pre { | ||
max-width: 300px; | ||
overflow-x: hidden; | ||
} | ||
|
||
code h1 { | ||
font-size: 0.85rem; | ||
} | ||
|
||
h1 { | ||
font-size: 1.25em; | ||
line-height: 1.25; | ||
} | ||
|
||
h2 { | ||
font-size: 0.85rem; | ||
} | ||
|
||
.page-content { | ||
line-height: 1.5; | ||
} | ||
|
||
.actions { | ||
margin-top: 8px; | ||
} | ||
|
||
.actions__button-container { | ||
margin: 0 auto; | ||
} | ||
|
||
.actions__button-container__button { | ||
background: {{{accent_color}}}; | ||
color: {{{accent_foreground_color}}}; | ||
display: block; | ||
margin-bottom: 0.5rem; | ||
border-radius: 8px; | ||
font-size: 1.25rem; | ||
width: 100%; | ||
font-weight: 500; | ||
padding: 0.75rem 0; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class='page-content'> | ||
{{{oba_page_content}}} | ||
</div> | ||
<div class='actions'> | ||
{{{oba_page_actions}}} | ||
</div> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.