From badf7aba844967c5d13e01079c12df758715167a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 27 Sep 2026 12:37:52 +0200 Subject: ... --- accounts/gkleen@skadhi/firefox/default.nix | 24 ++++++++++++ accounts/gkleen@skadhi/firefox/userChrome.css | 54 ++++++++++++++++++++++++++ accounts/gkleen@skadhi/firefox/userContent.css | 12 ++++++ 3 files changed, 90 insertions(+) create mode 100644 accounts/gkleen@skadhi/firefox/default.nix create mode 100644 accounts/gkleen@skadhi/firefox/userChrome.css create mode 100644 accounts/gkleen@skadhi/firefox/userContent.css (limited to 'accounts/gkleen@skadhi/firefox') diff --git a/accounts/gkleen@skadhi/firefox/default.nix b/accounts/gkleen@skadhi/firefox/default.nix new file mode 100644 index 00000000..9b3be324 --- /dev/null +++ b/accounts/gkleen@skadhi/firefox/default.nix @@ -0,0 +1,24 @@ +{ ... }: +{ + config = { + programs.firefox = { + enable = true; + profiles.default = { + settings = { + "browser.tabs.drawInTitlebar" = false; + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + "dom.security.https_only_mode" = true; + }; + }; + }; + + home.persistence."/persistent".directories = [ + ".mozilla/firefox" + ]; + + home.file = { + ".mozilla/firefox/default/chrome/userChrome.css".source = ./userChrome.css; + ".mozilla/firefox/default/chrome/userContent.css".source = ./userContent.css; + }; + }; +} diff --git a/accounts/gkleen@skadhi/firefox/userChrome.css b/accounts/gkleen@skadhi/firefox/userChrome.css new file mode 100644 index 00000000..726f1e4b --- /dev/null +++ b/accounts/gkleen@skadhi/firefox/userChrome.css @@ -0,0 +1,54 @@ +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +* { + font-size:12px; +} + +#sidebar-main:has([expanded]) { + min-width:20em !important; + max-width:20em !important; +} + +#sidebar, #sidebar-box { + min-width:35em !important; + max-width:35em !important; +} + +#sidebar-box { + margin-right: var(--space-small); +} + +/* +#sidebar { + min-width:20em !important; + max-width:20em !important; + border-right:1px solid rgba(30,30,30) !important; +} + +#sidebar-header:nth-last-child(2) > *:last-child { + visibility: collapse; +} + +#sidebar-splitter { + visibility: collapse; +} + +#toolbar-menubar[inactive="true"] + #TabsToolbar { + visibility: collapse !important; +} + +#sidebar-box[sidebarcommand="tabcenter-reborn_ariasuni-sidebar-action"] #sidebar-header { visibility: collapse !important; } +#sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] #sidebar-header { visibility: collapse !important; } +*/ + +.titlebar-buttonbox-container{ display: none; } +#vertical-spacer { display: none; } +#tabbrowser-tabs[orient="vertical"] .tab-background { + border-radius: var(--border-radius-small) !important; +} +hbox:has(> #tabs-newtab-button) { + display: none; +} +#sidebar-main .tools-and-extensions { + justify-content: space-around !important; +} diff --git a/accounts/gkleen@skadhi/firefox/userContent.css b/accounts/gkleen@skadhi/firefox/userContent.css new file mode 100644 index 00000000..3ac53a9d --- /dev/null +++ b/accounts/gkleen@skadhi/firefox/userContent.css @@ -0,0 +1,12 @@ +@-moz-document url("about:blank") { + html { + background-color: rgb(40,40,40); + } +} + +@-moz-document url(about:newtab) { + body, #newtab-customize-overlay { + background-color: rgb(40,40,40) !important; + color: rgb(166,166,166) !important; + } +} -- cgit v1.2.3