Created
November 25, 2018 18:23
-
-
Save ashafer01/e9e2c397685bff026dbbf300a6a1e4ab to your computer and use it in GitHub Desktop.
Vertically and horizontally center the content on firefox about:home after customizing the content in preferences
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
/* @-moz-document (about:home) DOES NOT WORK :( | |
use this heuristic selector applied to all pages instead */ | |
html > body.activity-stream > div#root > div[data-reactroot] > div.outer-wrapper > main { | |
/* force-center the content based on computed values for | |
MacBook Retina 12" Early 2016 2304x1400 */ | |
position: absolute; | |
left: calc((100% - 1042px)/2); | |
top: calc((100% - 566px)/2); | |
} | |
/* Get your profile directory from about:support and put this file in chrome/ in there (creating dir if needed) */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment