Skip to content

Instantly share code, notes, and snippets.

@ashafer01
Created November 25, 2018 18:23
Show Gist options
  • Save ashafer01/e9e2c397685bff026dbbf300a6a1e4ab to your computer and use it in GitHub Desktop.
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
/* @-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