summary refs log tree commit diff
path: root/.mozilla/firefox/hibiki.default/chrome/userChrome.css
blob: 1f0cb3de3a2095063d6ea01f5b510d3ecdc44415 (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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/* vim: foldmethod=marker
 */

@import url(lepton.userChrome.css);

@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
@namespace html "http://www.w3.org/1999/xhtml";

@media (-moz-toolbar-prefers-color-scheme: dark),
(prefers-color-scheme: dark) {
    :root {
        --toolbar-non-lwt-bgcolor: #040405 !important;
        --toolbar-bgcolor: #040405 !important;
        --toolbar-color: #fffffb !important;
    }
}

:root {
    --urlbar-box-bgcolor: var(--toolbar-bgcolor) !important;
    --urlbar-icon-fill-opacity: 0.8 !important;
    --arrowpanel-background: var(--toolbar-bgcolor) !important;

    --chrome-content-separator-color: #70649ab0 !important;
}

* {
    font-family: Iosevka Aile, monospace !important;
}

/* prevent pre-load flash bang */
.browserContainer {
    background-color: var(--toolbar-bgcolor) !important;
}

.tabbrowser tabpanels {
    background-color: var(--toolbar-bgcolor) !important;
}

#titlebar {
    display: none !important;
}

/* Makes urlbar and many other things sharper on the edges */
:root {
    --any-border-radius: 0;
    --toolbarbutton-border-radius: var(--any-border-radius) !important;
    --urlbar-icon-border-radius: var(--any-border-radius) !important;
    --arrowpanel-menuitem-border-radius: var(--any-border-radius) !important;
    --arrowpanel-border-radius: var(--any-border-radius) !important;
}

menupopup,
panel {
    --panel-padding: 0 !important;
    --panel-border-radius: var(--any-border-radius) !important;
}

.dialogBox {
    border-radius: var(--any-border-radius) !important;
}

/* Hide the back and forward buttons */
#main-window :-moz-any(#back-button, #forward-button) {
    display: none !important;
}

/* Disable statuspanel completely, remove this if you want to keep the statuspanel */
statuspanel {
    display: none !important;
}

/* = URLBAR STUFF =========================================================== */

#urlbar-container {
    --urlbar-container-height: 29px !important;
    --urlbar-container-padding: 0px !important;
    /* --lwt-toolbar-field-background-color: transparent !important; */
}

#urlbar {
    --urlbar-height: var(--urlbar-container-height) !important;
    --urlbar-toolbar-height: var(--urlbar-container-height) !important;
}

#urlbar-background {
    border: none !important;
}

#urlbar:not([focused="true"])>#urlbar-background {
    background-color: transparent !important;
}

#urlbar-input-container {
    padding-right: 5px !important;
    border: none !important;
}

#urlbar-results,
.urlbarView-row {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.search-one-offs {
    padding-block: 0px !important;
}

.search-panel-one-offs {
    padding-left: 7px !important;
}

.searchbar-engine-one-off-item {
    margin: 0px !important;
}


/* hide the bookmark button */
#star-button-box,
#pageActionSeparator {
    display: none !important;
}

/* make sure the lock icon aligns with the collapsed sidebar */
#urlbar-container {
    padding-block: 0 !important;
    margin-left: 0 !important;
}

#tracking-protection-icon-container {
    padding: 0 6px !important;
}

#identity-box {
    margin-inline-start: var(--identity-box-margin-inline);
}

#tracking-protection-icon-container {
    padding-left: 8px !important;
}

/* = SIDEBAR STUFF ========================================================== */

/* sidebar that collapses when not hovered */
:root {
    --thin-tab-width: 31px;
    --wide-tab-width: 280px;
}

#sidebar-box:not([hidden]) {
    overflow-x: hidden !important;
    position: relative !important;
    transition: all 40ms !important;
    min-width: var(--thin-tab-width) !important;
    max-width: var(--thin-tab-width) !important;

    border-right: 1px solid var(--chrome-content-separator-color);

    /* fix collapsed sidebar background-color */
    background-color: var(--toolbar-bgcolor) !important;

    z-index: 1;
    opacity: 1.0 !important;
}

#sidebar-box:not([hidden]):hover,
#sidebar-box:not([hidden]):active,
#sidebar-box:not([hidden]):focus-within,
#sidebar-box:not([hidden]):-moz-drag-over {
    min-width: var(--wide-tab-width) !important;
    max-width: var(--wide-tab-width) !important;
    /* for right sidebar change 'margin-right' to 'margin-left' */
    margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width))*-1) !important;
}

/* make sure the contents of the sidebar are not squished */
#sidebar {
    min-width: var(--wide-tab-width) !important;
    max-width: var(--wide-tab-width) !important;
    margin-left: 0 !important;
}

/* hide sidebar header */
#sidebar-header {
    visibility: collapse;
}

/* hide sidebar shadow */
#sidebar-splitter {
    display: none !important;
}