diff --git a/css/leptonChrome.css b/css/leptonChrome.css index f5d91f1..9c21a91 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -7237,6 +7237,26 @@ } } } +@supports -moz-bool-pref("userChrome.hidden.selected_tab") { + .tabbrowser-tab[selected="true"] { + -moz-box-flex: 0 !important; + min-width: 0 !important; + max-width: 0 !important; + } +} +@supports -moz-bool-pref("userChrome.hidden.disabled_menu") { + menu[disabled="true"], + menuitem:not(#context-back, #context-forward)[disabled="true"] { + display: none !important; + } + + @supports -moz-bool-pref("widget.macos.native-context-menus") or -moz-bool-pref("widget.gtk.native-context-menus") { + #context-back[disabled="true"], + #context-forward[disabled="true"] { + display: none !important; + } + } +} /** Library - Icons Replace ***************************************************/ @supports -moz-bool-pref("userChrome.icon.library") { /*= Standard Folder - More Visible ===========================================*/ diff --git a/src/hidden/_index.scss b/src/hidden/_index.scss index 68e405b..07cb5fa 100644 --- a/src/hidden/_index.scss +++ b/src/hidden/_index.scss @@ -11,3 +11,29 @@ } } } + +@include Option("userChrome.hidden.selected_tab") { + .tabbrowser-tab[selected="true"] { + -moz-box-flex: 0 !important; + min-width: 0 !important; + max-width: 0 !important; + } +} + +@include Option("userChrome.hidden.disabled_menu") { + menu, + menuitem:not(#context-back, #context-forward) { + &[disabled="true"] { + display: none !important; + } + } + + @include NativeMenu { + #context-back, + #context-forward { + &[disabled="true"] { + display: none !important; + } + } + } +} diff --git a/user.js b/user.js index ec7cd16..7476ef8 100644 --- a/user.js +++ b/user.js @@ -87,6 +87,8 @@ user_pref("userChrome.rounding.square_tab", false); // user_pref("userChrome.hidden.tabbar", true); // user_pref("userChrome.hidden.navbar", true); +// user_pref("userChrome.hidden.selected_tab", true); +// user_pref("userChrome.hidden.disabled_menu", true); // user_pref("userChrome.rounding.square_button", true); // user_pref("userChrome.rounding.square_panel", true);