about summary refs log tree commit diff
path: root/modules/firefox/userChrome.css
blob: aeb1c8f010082a3a76229a9815e230338b84e0c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@-moz-document url(chrome://browser/content/browser.xhtml)
{
  #urlbar {
    font-family: var(--sans-serif-font-family) !important;
    font-size: var(--sans-serif-font-size) !important;
  }

  /*
   * Not sure why is this shit even exists...
   */
  .titlebar-spacer {
    display: none !important;
  }

  /*
   * Disable the Firefox View button.
   */
  #firefox-view-button {
    display: none !important;
  }

  /*
   * Stretch tabs to the max by default.
   */
  .tabbrowser-tab[fadein]:not([pinned="true"]) {
    max-width: 100% !important;
  }

  /*
   * "C-t" exists.
   */
  #tabs-newtab-button,
  #TabsToolbar #new-tab-button {
    display: none !important;
  }

  /*
   * "C-w" exists.
   */
  .tab-close-button {
    display: none !important;
  }

  /*
   * Remove padding between URL bar and side elements.
   */
  #customizableui-special-spring1,
  #customizableui-special-spring2 {
    display: none !important;
  }

  /*
   * Call indicator that some "designer" decided to make floating and impossible
   * to hide.
   */
  #webrtcIndicator {
    display: none !important;
  }

  /*
   * Context menu. Both for tabs and page.
   */
  #context-bookmarklink,
  #context-inspect-a11y,
  #context-navigation,
  #context-pocket,
  #context-print-selection,
  #context-searchselect,
  #context-selectall,
  #context-sendimage,
  #context-sendlinktodevice,
  #context-sendpagetodevice,
  #context-viewsource,
  #context_bookmarkTab,
  #context_moveTabOptions,
  #context_selectAllTabs,
  #context_sendTabToDevice,
  menuseparator {
    display: none !important;
  }

  /*
   * Unify margins for tab browser.
   */
  #tabbrowser-tabs {
    margin-inline-start: 0 !important;
    border-inline-start: 0 !important;
    padding-inline-start: calc(
      var(--tab-overflow-pinned-tabs-width) + 2px
    ) !important;
    margin-inline-start: 0 !important;
  }
  #tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs])[orient="horizontal"]
    > #tabbrowser-arrowscrollbox
    > .tabbrowser-tab:nth-child(1 of :not([pinned], [hidden])) {
    margin-inline-start: 0 !important;
  }
}

Consider giving Nix/NixOS a try! <3