-
Notifications
You must be signed in to change notification settings - Fork 0
/
userChrome.css
executable file
·187 lines (152 loc) · 5.17 KB
/
userChrome.css
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
@-moz-document url(chrome://browser/content/browser.xhtml){
:root:not([inFullscreen]){
--uc-bottom-toolbar-height: calc(39px + var(--toolbarbutton-outer-padding) )
}
:root[uidensity="compact"]:not([inFullscreen]){
--uc-bottom-toolbar-height: calc(32px + var(--toolbarbutton-outer-padding) )
}
:root:not([customizing],[chromehidden~="menubar"]){
--uc-vertical-tabs-width: 28px;
--uc-navbar-height: 28px;
}
:root[uidensity="compact"]:not([customizing],[chromehidden~="menubar"]){
--uc-navbar-height: 34px;
}
#PersonalToolbar,
#tab-notification-deck,
.global-notificationbox,
#main-window:not([inDOMFullscreen]) > body > #browser{
margin-left: 0;
margin-right: var(--uc-vertical-tabs-width);
}
#tab-notification-deck,
.global-notificationbox{
width: auto !important;
}
.tabbrowser-tab {
/* padding-top: 2px; */
/* padding-bottom: 2px; */
min-width: 0.1px !important;
/* margin-inline: 0 !important; */ /* なんかこれあると unpinned tab が死にます */
overflow-x: clip;
width: var(--uc-vertical-tabs-width);
height: var(--uc-navbar-height);
label {
visibility: collapse;
}
}
.tabbrowser-tab[pinned] { /* Without this, it will look weird when pinning tabs */
flex: 100 100;
transition: min-width 100ms ease-out, max-width 100ms ease-out;
}
.tab-background {
width: 24px !important;
height: 24px !important;
min-height: 24px !important;
}
.tab-content {
width: 20px !important;
height: 20px !important;
}
.tab-label-container {
visibility: collapse;
}
:root:not([customizing]) #tabbrowser-tabs{
position: absolute !important;
height: 100vh;
left: unset;
right: 0;
width: var(--uc-vertical-tabs-width);
background-color: var(--toolbar-bgcolor);
contain: size;
}
:root[lwtheme]:not([customizing]) #tabbrowser-tabs{
background-color: var(--lwt-accent-color);
}
:root:not([customizing]) #toolbar-menubar[autohide="false"] + #TabsToolbar #tabbrowser-tabs{
height: calc(100vh - 28px);
}
:root:not([customizing]) #TabsToolbar #new-tab-button,
#alltabs-button{
display: none;
}
#tabbrowser-tabs[hasadjacentnewtabbutton] #tabs-newtab-button{
display: flex !important;
flex-grow: 1;
}
.tab-icon-stack {
position: absolute;
width: 16px;
height: 16px;
z-index: 1;
transform: translate(-25%, 40%);
}
.tab-icon-stack[pinned]{ /* When pin the tab, the favicon moves slightly to the right, so adjust it. */
transform: translate(-35%, 40%);
}
.tab-close-button {
position: absolute;
opacity: 0;
z-index: 10;
transform: translate(-30%, 30%);
width: 20px !important;
height: 20px !important;
&:hover {
opacity: 1;
background-color: #222222 !important;
}
}
#tabs-newtab-button > .toolbarbutton-icon{
background: none !important;
}
#tabs-newtab-button{
width: 28px;
border-radius: var(--tab-border-radius);
&:hover{
filter: brightness(1.2);
}
}
#TabsToolbar > .titlebar-buttonbox-container{
position: absolute;
right: 0;
}
:root:not([customizing]) #tabbrowser-arrowscrollbox{
--uc-scrollbox-box-model: -webkit-box;
--uc-scrollbox-height: 100vh;
--uc-scrollbutton-display: none;
--uc-scrollbox-overflow: auto;
}
#tabbrowser-arrowscrollbox {
overflow: -moz-hidden-unscrollable;
}
scrollbox[orient="horizontal"]{
display: var(--uc-scrollbox-box-model,flex);
-webkit-box-orient: vertical;
height: 100%;
overflow: var(--uc-scrollbox-overflow,initial);
}
#scrollbutton-up,
#scrollbutton-down{
display: var(--uc-scrollbutton-display,initial);
}
#browser,
#customization-container{ margin-bottom: var(--uc-bottom-toolbar-height,0px) }
#nav-bar{
position: fixed !important;
bottom: 0px;
/* For some reason -webkit-box behaves internally like -moz-box, but can be used with fixed position. display: flex would work too but it breaks extension menus. */
display: -webkit-box;
width: 100%;
z-index: 1;
}
#nav-bar-customization-target{ -webkit-box-flex: 1; }
/* Fix panels sizing */
.panel-viewstack{ max-height: unset !important; }
#urlbar[breakout][breakout-extend]{
display: flex !important;
flex-direction: column-reverse;
bottom: 0px !important; /* Change to 3-5 px if using compact_urlbar_megabar.css depending on toolbar density */
top: auto !important;
}
.urlbarView-body-inner{ border-top-style: none !important; }
}