Browse Source

cleanup

main
Michael Pappe 6 months ago
parent
commit
85df803a03
  1. 70
      .local/share/chrome/colors/colors.css
  2. 15
      .local/share/chrome/colorschemes/afterglow.css
  3. 15
      .local/share/chrome/colorschemes/gruvbox-dp.css
  4. 15
      .local/share/chrome/colorschemes/gruvbox.css
  5. 15
      .local/share/chrome/colorschemes/onedark.css
  6. 6
      .local/share/chrome/fonts/Comfortaa.css
  7. 6
      .local/share/chrome/fonts/JetBrainsMono.css
  8. 6
      .local/share/chrome/fonts/RobotoMono.css
  9. 6
      .local/share/chrome/fonts/SFMono.css
  10. 31
      .local/share/chrome/navbar/debloat_navbar.css
  11. 4
      .local/share/chrome/navbar/navbar_layout.css
  12. 30
      .local/share/chrome/navbar/navbar_on_focus.css
  13. 3
      .local/share/chrome/sidebar/debloat_sidebar.css
  14. 3
      .local/share/chrome/sidebar/sidebar_layout.css
  15. 23
      .local/share/chrome/tab_bar/debloat_tab_bar.css
  16. 41
      .local/share/chrome/tab_bar/hide_tabs_with_one_tab.css
  17. 7
      .local/share/chrome/tab_bar/numbered_tabs.css
  18. 10
      .local/share/chrome/tab_bar/tab_close_button_always_on_hover.css
  19. 5
      .local/share/chrome/tab_bar/tabs_fill_available_width.css
  20. 25
      .local/share/chrome/tab_bar/tabs_layout.css
  21. 19
      .local/share/chrome/urlbar/debloat_urlbar.css
  22. 22
      .local/share/chrome/urlbar/remove_megabar.css
  23. 45
      .local/share/chrome/urlbar/urlbar_layout.css
  24. 8
      .local/share/chrome/userChrome.css

70
.local/share/chrome/colors/colors.css

@ -1,70 +0,0 @@
/* Focused tabs */
.tab-content[selected="true"] {
color: var(--color-focused-tabs-fg);
background-color: var(--color-focused-tabs-bg);
}
/* Unfocused tabs */
.tab-content {
color: var(--color-unfocused-tabs-fg);
background-color: var(--color-unfocused-tabs-bg);
}
/* Tab dividers */
/* https://www.reddit.com/r/firefox/comments/fjr94k/css_to_change_the_colors_of_the_tab_dividers/ */
:root {
--lwt-accent-color: var(--color-focused-tabs-bg) !important;
}
.tabbrowser-tab::after {
visibility: hidden;
}
/* Urlbar */
#urlbar {
color: var(--color-urlbar-fg) !important;
}
#urlbar-background {
background-color: var(--color-urlbar-bg) !important;
}
/* Urlbar separator */
.urlbarView-body-inner {
border-top: 2px solid var(--color-urlbar-separator) !important;
}
/* Urlbar search result url */
.urlbarView-action,
.urlbarView-url {
color: var(--color-urlbar-popup-url) !important;
}
/* Urlbar selected search result */
.urlbarView-row:not([type="tip"]):not([type="dynamic"])[selected] >
.urlbarView-row-inner {
color: var(--color-urlbar-selected-fg) !important;
background-color: var(--color-urlbar-selected-bg) !important;
}
/* Urlbar selected search result url */
.urlbarView-row[selected] >
.urlbarView-row-inner >
.urlbarView-no-wrap > .urlbarView-action,
.urlbarView-row[selected] > .urlbarView-row-inner > .urlbarView-url {
color: var(--color-urlbar-selected-popup-url) !important;
}
/* Sidebar */
.sidebar-placesTreechildren {
color: var(--color-sidebar-fg) !important;
background-color: var(--color-sidebar-bg) !important;
}

15
.local/share/chrome/colorschemes/afterglow.css

@ -1,15 +0,0 @@
:root {
--color-unfocused-tabs-bg: #393939;
--color-unfocused-tabs-fg: #d6d6d6;
--color-focused-tabs-bg: #797979;
--color-focused-tabs-fg: #d6d6d6;
--color-urlbar-separator: #797979;
--color-urlbar-bg: #5a647e;
--color-urlbar-fg: #d6d6d6;
--color-urlbar-popup-url: #6c99bb;
--color-urlbar-selected-bg: #d6d6d6;
--color-urlbar-selected-fg: #5a647e;
--color-urlbar-selected-popup-url: #6c99bb;
--color-sidebar-bg: #4d5057;
--color-sidebar-fg: #d6d6d6;
}

15
.local/share/chrome/colorschemes/gruvbox-dp.css

@ -1,15 +0,0 @@
:root {
--color-unfocused-tabs-bg: #3a3a3a;
--color-unfocused-tabs-fg: #9a9a9a;
--color-focused-tabs-bg: #9a9a9a;
--color-focused-tabs-fg: #282828;
--color-urlbar-separator: #9a9a9a;
--color-urlbar-bg: #3a3a3a;
--color-urlbar-fg: #dab997;
--color-urlbar-popup-url: #83adad;
--color-urlbar-selected-bg: #83adad;
--color-urlbar-selected-fg: #3a3a3a;
--color-urlbar-selected-popup-url: #dab997;
--color-sidebar-bg: #3a3a3a;
--color-sidebar-fg: #dab997;
}

15
.local/share/chrome/colorschemes/gruvbox.css

@ -1,15 +0,0 @@
:root {
--color-unfocused-tabs-bg: #3c3836;
--color-unfocused-tabs-fg: #a89984;
--color-focused-tabs-bg: #a89984;
--color-focused-tabs-fg: #282828;
--color-urlbar-separator: #a89984;
--color-urlbar-bg: #3c3836;
--color-urlbar-fg: #ebdbb2;
--color-urlbar-popup-url: #83a598;
--color-urlbar-selected-bg: #83a598;
--color-urlbar-selected-fg: #3c3836;
--color-urlbar-selected-popup-url: #ebdbb2;
--color-sidebar-bg: #3c3836;
--color-sidebar-fg: #ebdbb2;
}

15
.local/share/chrome/colorschemes/onedark.css

@ -1,15 +0,0 @@
:root {
--color-unfocused-tabs-bg: #3e4452;
--color-unfocused-tabs-fg: #abb2bf;
--color-focused-tabs-bg: #abb2bf;
--color-focused-tabs-fg: #282c34;
--color-urlbar-separator: #5c6073;
--color-urlbar-bg: #3e4452;
--color-urlbar-fg: #abb2bf;
--color-urlbar-popup-url: #6aafef;
--color-urlbar-selected-bg: #6aafef;
--color-urlbar-selected-fg: #282c34;
--color-urlbar-selected-popup-url: #282c34;
--color-sidebar-bg: #282c34;
--color-sidebar-fg: #abb2bf;
}

6
.local/share/chrome/fonts/Comfortaa.css

@ -1,6 +0,0 @@
* {
font-family: "Comfortaa";
/* 2560x1440 */
font-size: 12px !important;
}

6
.local/share/chrome/fonts/JetBrainsMono.css

@ -1,6 +0,0 @@
* {
font-family: "JetBrainsMono Nerd Font";
/* 2560x1440 */
font-size: 14px !important;
}

6
.local/share/chrome/fonts/RobotoMono.css

@ -1,6 +0,0 @@
* {
font-family: "RobotoMono Nerd Font";
/* 2560x1440 */
font-size: 14px !important;
}

6
.local/share/chrome/fonts/SFMono.css

@ -1,6 +0,0 @@
* {
font-family: "SFMono Nerd Font";
/* 2560x1440 */
font-size: 14px !important;
}

31
.local/share/chrome/navbar/debloat_navbar.css

@ -1,31 +0,0 @@
#back-button { display: none; }
#forward-button { display: none; }
#reload-button { display: none; }
#stop-button { display: none; }
#home-button { display: none; }
#downloads-button { display: none; }
#library-button { display: none; }
#sidebar-button { display: none; }
/* Firefox account button */
#fxa-toolbar-menu-button { display: none; }
#nav-bar-overflow-button { display: none !important; }
/* General Firefox menu button */
#PanelUI-button { display: none; }
/* Empty space before and after the url bar */
#customizableui-special-spring1,
#customizableui-special-spring2 { display: none; }
/*
Addon icons
.webextension-browser-action { display: none !important; }
*/

4
.local/share/chrome/navbar/navbar_layout.css

@ -1,4 +0,0 @@
#nav-bar,
#navigator-toolbox {
border-width: 0 !important;
}

30
.local/share/chrome/navbar/navbar_on_focus.css

@ -1,30 +0,0 @@
/* https://www.reddit.com/r/FirefoxCSS/comments/hw3tbxs/howing_the_navbar_in_place_of_the_tabbar_when/ */
:root[sessionrestored] #nav-bar:not([customizing]) {
display: flex;
position: fixed !important;
top: 0;
width: 100vw;
z-index: -1;
opacity: 0;
pointer-events: none;
}
#nav-bar-customization-target { flex-grow: 1; }
#nav-bar:focus-within {
z-index: 2 !important;
opacity: 1 !important;
pointer-events: auto !important;
}
/*
css part of the prismatic night theme. visit https://github.com/dbuxy218/Prismatic-Night
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
#navigator-toolbox:not(:focus-within):not(:hover) {
margin-top: -27px;
}
#navigator-toolbox {
transition: 0.2s margin-top ease-out;
}
*/

3
.local/share/chrome/sidebar/debloat_sidebar.css

@ -1,3 +0,0 @@
#sidebar-header { display: none; }
#sidebar-search-container { display: none; }

3
.local/share/chrome/sidebar/sidebar_layout.css

@ -1,3 +0,0 @@
.sidebar-placesTreechildren {
padding-top: 0.3em;
}

23
.local/share/chrome/tab_bar/debloat_tab_bar.css

@ -1,23 +0,0 @@
/* Close, minizime and maximize window buttons */
.titlebar-buttonbox-container { display: none; }
/* Empty space before and after the tab bar */
.titlebar-spacer { display: none; }
/* New tab button */
#tabs-newtab-button { display: none; }
/* Scroll left button when the tabs overflow the tab bar */
#scrollbutton-up { display: none; }
/* Scroll right button when the tabs overflow the tab bar */
#scrollbutton-down { display: none; }
/* New tab button when the tabs overflow the tab bar */
#new-tab-button { display: none; }
/* List all tabs button when the tabs overflow the tab bar */
#alltabs-button { display: none !important; }
/* Private window icon at the end of the tab bar */
.private-browsing-indicator { display: none; }

41
.local/share/chrome/tab_bar/hide_tabs_with_one_tab.css

@ -1,41 +0,0 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_with_one_tab.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs */
/* Firefox 65+ only */
:root[sizemode="normal"] #nav-bar{ --uc-window-drag-space-width: 20px }
#titlebar{ -moz-appearance: none !important; }
#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox, #tabbrowser-arrowscrollbox{ min-height: 0 !important; }
:root:not([customizing]) #tabbrowser-tabs .tabs-newtab-button,
:root:not([customizing]) #tabs-newtab-button,
:root:not([customizing]) #TabsToolbar-customization-target > .toolbarbutton-1,
:root:not([customizing]) #TabsToolbar .titlebar-button{
-moz-appearance: none !important;
height: 0px;
padding-top: 0px !important;
padding-bottom: 0px !important;
-moz-box-align: stretch;
margin: 0 !important;
}
#tabbrowser-tabs .tabbrowser-tab{ height: var(--tab-min-height) }
#tabbrowser-tabs .tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{
visibility: collapse !important;
}
/* Fix window controls not being clickable */
:root[tabsintitlebar] #toolbar-menubar[autohide="true"][inactive]{
transition: height 0ms steps(1) 80ms;
}
#nav-bar{
border-inline: var(--uc-window-drag-space-width) solid var(--toolbar-bgcolor);
}
toolbar {
min-height: 0 !important;
}

7
.local/share/chrome/tab_bar/numbered_tabs.css

@ -1,7 +0,0 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/numbered_tabs.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Show a number before tab text*/
.tabbrowser-tab:first-child{ counter-reset: nth-tab 0 } /* Change to -1 for 0-indexing */
.tab-text::before{ content: counter(nth-tab) ": "; counter-increment: nth-tab }

10
.local/share/chrome/tab_bar/tab_close_button_always_on_hover.css

@ -1,10 +0,0 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tab_close_button_always_on_hover.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Always show tab close button on hover and never otherwise */
.tabbrowser-tab .tab-close-button{
display:none;
}
.tabbrowser-tab:not([pinned]):hover .tab-close-button{
display:-moz-box !important;
}

5
.local/share/chrome/tab_bar/tabs_fill_available_width.css

@ -1,5 +0,0 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_fill_available_width.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Why 100vw? Tab closing requires width animation to end and "none" can't be animated */
.tabbrowser-tab[fadein]{ max-width: 100vw !important }

25
.local/share/chrome/tab_bar/tabs_layout.css

@ -1,25 +0,0 @@
:root {
--tab-min-height: 1.3em !important;
}
/* https://www.reddit.com/r/FirefoxCSS/comments/k3gnwz/is_it_possible_to_specify_the_text_color_of/ge5cr5p?utm_source=share&utm_medium=web2x&context=3 */
.tab-label-container {
height: var(--tab-min-height);
opacity: 1 !important;
}
.tab-label {
line-height: var(--tab-min-height) !important;
}
.tab-icon-image {
margin-top: 2px !important;
opacity: 1 !important;
}
.tab-icon-image,
.tab-icon-sound,
.tab-close-button {
height: 1em !important;
width: 1em !important;
}

19
.local/share/chrome/urlbar/debloat_urlbar.css

@ -1,19 +0,0 @@
#tracking-protection-icon-container { display: none; }
#identity-box { display: none; }
#reader-mode-button { display: none; }
#pageActionButton { display: none; }
#pocket-button { display: none; }
#star-button { display: none; }
#urlbar-zoom-button { display: none; }
/* Go to arrow button at the end of the urlbar when searching */
#urlbar-go-button { display: none; }
/* Bottom left page loading status or url preview */
#statuspanel { display: none !important; }

22
.local/share/chrome/urlbar/remove_megabar.css

@ -1,22 +0,0 @@
/* https://github.com/WesleyBranton/Remove-Firefox-Megabar/blob/master/remove_megabar.css */
/* REMOVE MEGABAR START
* VERSION 1.0.4
* CODE AT: http://userchrome.wesleybranton.com/megabar
* RELEASE NOTES: http://userchrome.wesleybranton.com/notes/megabar */
@-moz-document url(chrome://browser/content/browser.xhtml) {
/* DISABLE EXPANDING START */
#urlbar[breakout][breakout-extend] {
top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important;
left: 0 !important;
width: 100% !important;
}
#urlbar[breakout][breakout-extend] > #urlbar-input-container {
height: var(--urlbar-height) !important;
padding-block: 0 !important;
padding-inline: 0 !important;
}
/* DISABLE EXPANDING END */
}
/* REMOVE MEGABAR END */

45
.local/share/chrome/urlbar/urlbar_layout.css

@ -1,45 +0,0 @@
#urlbar-container {
--urlbar-container-height: var(--tab-min-height) !important;
margin-left: 0 !important;
margin-right: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
#urlbar {
--urlbar-height: var(--tab-min-height) !important;
--urlbar-toolbar-height: var(--tab-min-height) !important;
min-height: var(--tab-min-height) !important;
}
#urlbar-background {
border-width: 0 !important;
border-radius: 0 !important;
}
#urlbar-input-container {
border-width: 0 !important;
}
#urlbar-input {
margin-left: 0.4em !important;
margin-right: 0.4em !important;
}
.urlbarView-row {
padding-top: 0 !important;
padding-bottom: 0 !important;
line-height: var(--urlbar-height) !important;
}
.urlbarView-row-inner {
padding-top: 0.3em !important;
padding-bottom: 0.3em !important;
height: var(--urlbar-height) !important;
}
.urlbarView-favicon {
height: 1em !important;
width: 1em !important;
margin-bottom: 0.2em !important;
}

8
.local/share/chrome/userChrome.css

@ -12,10 +12,10 @@ The code is somewhat messy but I won't bother cleaning it as long as everything
/* Buttons, URL Status Panel */
#PanelUI-button {
display: block !important;
position: fixed !important;
right: 0px !important; /*close/max/min placement*/
padding-top: 2px !important;
display: block !important;
position: fixed !important;
right: 0px !important; /*close/max/min placement*/
padding-top: 2px !important;
}
#alltabs-button {
position: fixed !important;

Loading…
Cancel
Save