Last active
July 2, 2018 16:00
-
-
Save drunkensouljah/cdf4122dfa62b1752e16871cd96acf89 to your computer and use it in GitHub Desktop.
[Nativefier draggable header] --inject site.css #nativefier #customcss
This file contains hidden or 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
| /* site.css */ | |
| /* navbar is draggable... */ | |
| nav-bar { | |
| -webkit-app-region: drag; | |
| } | |
| /* but any buttons inside the header shouldn't be draggable */ | |
| nav-bar button { | |
| -webkit-app-region: no-drag; | |
| } | |
| /* perhaps move some items out of way for the traffic light */ | |
| nav-bar div:first-child { | |
| margin-left: 100px; | |
| margin-top: 25px; | |
| } |
This file contains hidden or 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
| /* site.css */ | |
| /* header is draggable... */ | |
| header { | |
| -webkit-app-region: drag; | |
| } | |
| /* but any buttons inside the header shouldn't be draggable */ | |
| header button { | |
| -webkit-app-region: no-drag; | |
| } | |
| /* perhaps move some items out of way for the traffic light */ | |
| header div:first-child { | |
| margin-left: 100px; | |
| margin-top: 25px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment