1
1
Fork 0

firefox: move css into separate file

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-02-16 20:53:12 -06:00
parent cc35f93979
commit e325b0984c
Signed by: Myned
GPG key ID: C7224454F7881A34
5 changed files with 40 additions and 34 deletions

View file

@ -52,6 +52,8 @@ with lib; {
# TODO: Consider other themes # TODO: Consider other themes
# https://github.com/soulhotel/FF-ULTIMA # https://github.com/soulhotel/FF-ULTIMA
# BUG: Tab groups not yet supported
# https://github.com/rafaelmardojai/firefox-gnome-theme/issues/901
# Import CSS theme with solarized overrides # Import CSS theme with solarized overrides
# https://github.com/rafaelmardojai/firefox-gnome-theme # https://github.com/rafaelmardojai/firefox-gnome-theme
# https://github.com/rafaelmardojai/firefox-gnome-theme/blob/master/theme/colors/dark.css # https://github.com/rafaelmardojai/firefox-gnome-theme/blob/master/theme/colors/dark.css
@ -61,37 +63,7 @@ with lib; {
userChrome = mkIf theme '' userChrome = mkIf theme ''
@import "${inputs.firefox-gnome-theme}/userChrome.css"; @import "${inputs.firefox-gnome-theme}/userChrome.css";
${builtins.readFile ./userChrome.css}
:root {
--gnome-accent: #d33682;
--gnome-window-background: #002b36;
--gnome-window-color: #93a1a1;
--gnome-view-background: #073642;
--gnome-sidebar-background: #002b36;
--gnome-secondary-sidebar-background: #002b36;
--gnome-menu-background: #073642;
--gnome-headerbar-background: #002b36;
--gnome-toolbar-icon-fill: #93a1a1;
--gnome-tabbar-tab-hover-background: #073642;
--gnome-tabbar-tab-active-background: #073642;
--gnome-tabbar-tab-active-hover-background: #073642;
}
:root:-moz-window-inactive {
--gnome-inactive-entry-color: #586e75;
--gnome-tabbar-tab-hover-background: #073642;
--gnome-tabbar-tab-active-background: #073642;
}
/* Center bookmarks */
#PlacesToolbarItems {
justify-content: center;
}
/* Disable bookmark folder icons */
.bookmark-item[container] > .toolbarbutton-icon {
display: none;
}
''; '';
containersForce = true; containersForce = true;

View file

@ -0,0 +1,34 @@
/***
https://github.com/rafaelmardojai/firefox-gnome-theme
***/
:root {
--gnome-accent: #d33682;
--gnome-window-background: #002b36;
--gnome-window-color: #93a1a1;
--gnome-view-background: #073642;
--gnome-sidebar-background: #002b36;
--gnome-secondary-sidebar-background: #002b36;
--gnome-menu-background: #073642;
--gnome-headerbar-background: #002b36;
--gnome-toolbar-icon-fill: #93a1a1;
--gnome-tabbar-tab-hover-background: #073642;
--gnome-tabbar-tab-active-background: #073642;
--gnome-tabbar-tab-active-hover-background: #073642;
}
:root:-moz-window-inactive {
--gnome-inactive-entry-color: #586e75;
--gnome-tabbar-tab-hover-background: #073642;
--gnome-tabbar-tab-active-background: #073642;
}
/* Center bookmarks */
#PlacesToolbarItems {
justify-content: center;
}
/* Disable bookmark folder icons */
.bookmark-item[container] > .toolbarbutton-icon {
display: none;
}

View file

@ -17,7 +17,7 @@ in {
{ {
# https://www.mozilla.org/en-US/firefox/developer # https://www.mozilla.org/en-US/firefox/developer
programs.firefox = mkMerge [ programs.firefox = mkMerge [
(import "${inputs.self}/modules/firefox.nix" {inherit config inputs lib pkgs;}) (import "${inputs.self}/modules/firefox/default.nix" {inherit config inputs lib pkgs;})
{ {
enable = true; enable = true;

View file

@ -18,7 +18,7 @@ in {
# https://librewolf.net/ # https://librewolf.net/
# https://codeberg.org/librewolf # https://codeberg.org/librewolf
programs.librewolf = mkMerge [ programs.librewolf = mkMerge [
(import "${inputs.self}/modules/firefox.nix" {inherit config inputs lib pkgs;}) (import "${inputs.self}/modules/firefox/default.nix" {inherit config inputs lib pkgs;})
{ {
enable = true; enable = true;

View file

@ -18,7 +18,7 @@ in {
# https://zen-browser.app/ # https://zen-browser.app/
# https://github.com/youwen5/zen-browser-flake # https://github.com/youwen5/zen-browser-flake
programs.zen-browser = mkMerge [ programs.zen-browser = mkMerge [
(import "${inputs.self}/modules/firefox.nix" { (import "${inputs.self}/modules/firefox/default.nix" {
inherit config inputs lib pkgs; inherit config inputs lib pkgs;
# TODO: Revisit Zen themes # TODO: Revisit Zen themes