This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve native look and feel for windows platform
* Add support for hardware "Back" button * Add native-like AppBar with cancel button
- Loading branch information
1 parent
4606ac6
commit 23b4343
Showing
3 changed files
with
115 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
.barcode-scanner-wrap { | ||
margin: 0; | ||
padding: 0; | ||
outline: 0; | ||
font-size: 100%; | ||
vertical-align: baseline; | ||
background: 0 0 black; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
z-index: 9999999; | ||
} | ||
|
||
.barcode-scanner-preview { | ||
width: 100%; | ||
height: calc(100% - 70px); | ||
} | ||
|
||
.barcode-scanner-mark { | ||
position: absolute; | ||
left: 0; | ||
top: 50%; | ||
width: 100%; | ||
height: 3px; | ||
background: red | ||
} | ||
|
||
.barcode-scanner-app-bar { | ||
height: 70px; | ||
width: 100%; | ||
padding-top: 10px; | ||
z-index: 9999999; | ||
text-align: center; | ||
user-select: none; | ||
} | ||
|
||
.app-bar-action { | ||
width: 40px; | ||
height: 40px; | ||
margin: 0 auto; | ||
font-family: "Segoe UI Symbol"; | ||
color: white; | ||
font-size: 12px; | ||
text-transform: lowercase; | ||
text-align: center; | ||
cursor: default; | ||
} | ||
|
||
@media all and (orientation: landscape) { | ||
.app-bar-action { | ||
float: right; | ||
margin-right: 20px; | ||
} | ||
} | ||
|
||
.app-bar-action::before { | ||
font-size: 28px; | ||
display: block; | ||
height: 36px; | ||
} | ||
|
||
.action-close::before { | ||
content: "\E0C7"; | ||
/* close icon is larger so we re-size it to fit other icons */ | ||
font-size: 20px; | ||
line-height: 40px; | ||
} | ||
|
||
.action-close:hover::before { | ||
content: "\E0CA"; | ||
} |
23b4343
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! 👍 Thanks for your work! I will try it in January, when I'm back at office. :)