summaryrefslogtreecommitdiff
path: root/.config/firefox
diff options
context:
space:
mode:
authorKรฉvin Le Gouguec <kevin.legouguec@gmail.com>2021-11-14 17:03:43 +0100
committerKรฉvin Le Gouguec <kevin.legouguec@gmail.com>2021-11-14 17:03:43 +0100
commit4f871673166ff282b8ab6b7ed4437f36d2b091b8 (patch)
tree68524ff313c9ff0198e6aab91383fc94247834a7 /.config/firefox
parentf24b93f2a87e6ce080043014a525f9cf2ce9d544 (diff)
downloaddotfiles-4f871673166ff282b8ab6b7ed4437f36d2b091b8.tar.xz
Add user styles for Firefox
> That feels like too much power. > I like it. โ€” Daniel Floyd November 2, 2021
Diffstat (limited to '.config/firefox')
-rw-r--r--.config/firefox/userContent.css22
1 files changed, 22 insertions, 0 deletions
diff --git a/.config/firefox/userContent.css b/.config/firefox/userContent.css
new file mode 100644
index 0000000..ecece67
--- /dev/null
+++ b/.config/firefox/userContent.css
@@ -0,0 +1,22 @@
+/* To enable:
+ * - set toolkit.legacyUserProfileCustomizations.stylesheets
+ * - move this file to $profiledir/chrome
+ *
+ * References:
+ * https://web.archive.org/web/20211023121642/https://kb.mozillazine.org/UserContent.css
+ * https://developer.mozilla.org/en-US/docs/Web/CSS/@document
+ */
+
+@-moz-document domain(danluu.com) {
+ body {
+ max-width: 40em;
+ margin: auto;
+ }
+}
+
+@-moz-document domain(martinfowler.com) {
+ body {
+ max-width: fit-content;
+ margin: auto !important;
+ }
+}