-
Notifications
You must be signed in to change notification settings - Fork 28
/
sidebery-css-style
250 lines (214 loc) · 11.5 KB
/
sidebery-css-style
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
#root.root {
--tabs-height: 33px;
--tabs-pinned-height: 44px;
--tabs-margin: 8px;
--tabs-indent: 18px;
--tabs-close-btn-margin: 5px;
--tabs-inner-gap: 10px;
--general-border-radius: 6px;
--tabs-color-layer-opacity: 0.25;
--tabs-activated-bg: rgba(255, 255, 255, 0.12);
}
#root .popup-container {
background-color: transparent;
}
#root .hidden-panels-popup-layer:before {
background-color: transparent;
}
/* PINNED TABS */
.Tab[data-pin="true"] .body {
box-shadow: 0px 2px 1px #00000000;
background: #f2f2f220;
color: #ffffff60;
}
.Tab[data-pin="true"][data-active="true"] {
background-color: #ffffff40;
border-radius: calc(var(--general-border-radius) + 2px);
}
.Tab[data-discarded="true"] > .body > .fav {
opacity: 1;
}
#root .TabsPanel .PinnedTabsBar {
display: flex;
flex-wrap: wrap;
margin: 0;
padding: 0;
}
.PinnedTabsBar .tab-wrapper {
flex-grow: 1;
min-width: 55px;
--tabs-pinned-width: auto;
}
/* GENERAL */
.AnimatedTabList .Tab {
width: 100%;
}
.AnimatedTabList .Tab .title,
.TabsPanel .AnimatedTabList .new-tab-btn:after {
font-size: 0.85rem;
}
body {
height: 100vh;
overflow: hidden;
}
.AnimatedTabList .bottom-space {
display: none;
}
/* SEPARATOR */
#root .top-shadow,
#root .bottom-shadow {
border: #f2f2f220 1px solid;
box-shadow: none;
height: 1px;
border-radius: var(--general-border-radius);
}
#root .top-shadow {
top: 0;
}
#root .bottom-shadow {
bottom: 0;
}
.Tab .close-icon {
height: 24px;
width: 24px;
top: calc(50% - 12px);
left: calc(50% - 12px);
}
/* Smoothen masking for overflowed tab title. */
.Tab .title {
background: linear-gradient(90deg, var(--tabs-normal-fg) 80%, #f1f1f100 99%);
background-clip: text;
color: transparent;
}
.TabsPanel .Tab {
margin: 0;
}
.TabsPanel {
display: flex;
gap: 12px;
}
/* Uncomment this to apply Segoe UI Variable font - Make sure to install the font first */
#root.root {
--tabs-font: 0.9375rem Segoe UI Variable Small, Segoe UI;
}
/* NEW TAB BUTTON*/
.TabsPanel .new-tab-btns {
position: relative;
}
.TabsPanel .new-tab-btn {
margin: calc(var(--tabs-margin) * 0.5) 0;
--ntb-btn-height: 37px;
}
.TabsPanel .new-tab-btn:first-of-type {
justify-content: left;
padding-left: calc(var(--tabs-inner-gap));
margin: calc(var(--tabs-margin) * 0.5) 0;
--ntb-btn-height: 37px;
}
.TabsPanel .new-tab-btn:first-of-type >svg,
.TabsPanel .new-tab-btn:first-of-type >img {
fill: transparent;
background-color: var(--nav-btn-fg);
opacity: 40%;
width: 17px;
height: 17px;
scale: 0.9;
mask: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIiB3aWR0aD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwIDIuNUMxMCAyLjIyMzg2IDkuNzc2MTQgMiA5LjUgMkM5LjIyMzg2IDIgOSAyLjIyMzg2IDkgMi41VjlIMi41QzIuMjIzODYgOSAyIDkuMjIzODYgMiA5LjVDMiA5Ljc3NjE0IDIuMjIzODYgMTAgMi41IDEwSDlWMTYuNUM5IDE2Ljc3NjEgOS4yMjM4NiAxNyA5LjUgMTdDOS43NzYxNCAxNyAxMCAxNi43NzYxIDEwIDE2LjVWMTBIMTYuNUMxNi43NzYxIDEwIDE3IDkuNzc2MTQgMTcgOS41QzE3IDkuMjIzODYgMTYuNzc2MSA5IDE2LjUgOUgxMFYyLjVaIiBmaWxsPSIjMjEyMTIxIi8+PC9zdmc+");
}
.TabsPanel .new-tab-btn:first-of-type > svg.-badge,
.TabsPanel .new-tab-btn:first-of-type > img.-badge {
width: 0;
height: 0;
}
.TabsPanel .new-tab-btn:first-of-type:after {
justify-content: left;
content: "New Tab";
font: var(--tabs-font);
padding-left: calc(var(--tabs-inner-gap) + var(--tabs-margin) + 12px);
color: var(--nav-btn-fg);
opacity: 40%;
}
/* NAVBAR */
#root.root {
--nav-btn-width: 25px;
}
#root.root {
--nav-btn-height: 25px;
}
#root.root {
--nav-btn-margin: 2px;
}
#root.root {
--toolbar-bg: transparent;
}
/* Moving Sidebery navigation bar to bottom, to mimic how Space works on Arc Browser. Make sure to choose Horizontal when activating the navigation bar. */
.NavigationBar {
box-shadow: none;
}
.top-horizontal-box {
display: flex;
order: 1;
margin-left: 5px;
margin-right: 5px;
}
/* Remove background color, border and shadow for active tab panel. */
.NavigationBar .nav-item[data-active="true"] {
background-color: transparent;
box-shadow: none;
}
/* Making non-active tabs (including bookmark panels) grayscale. */
.NavigationBar .nav-item[data-type="tabs"][data-active="false"] .icon {
fill: var(--nav-btn-fg);
opacity: 40%;
scale: 0.75;
}
.NavigationBar .nav-item[data-type="bookmarks"][data-active="false"] .icon {
fill: var(--nav-btn-fg);
opacity: 40%;
scale: 0.75;
}
/* Settings related to Hidden Panels icon and popup layer, adapting to the flipped navbar orientation. */
#hidden_panels_btn.nav-item .icon {
transform: scaleY(-1);
opacity: 40%;
scale: 0.9;
}
.hidden-panels-popup-layer {
transform: scaleY(-1);
margin-top: -15%;
--toolbar-bg: var(--frame-bg);
}
.NavigationBar .hidden-panels-popup-content {
transform: scaleY(-1);
}
/* Adjust 'add tabs panel' size & position. */
#root .PanelConfigPopup .popup {
width: 80vw;
margin-top: 25vh;
}
/* Replacing 'add tabs panel' button with Fluent plus icon to mimic Arc's 'new space' button. */
.NavigationBar #add_tp.nav-item .icon {
fill: transparent;
background-color: var(--nav-btn-fg);
width: 80%;
height: 80%;
mask: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIiB3aWR0aD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwIDIuNUMxMCAyLjIyMzg2IDkuNzc2MTQgMiA5LjUgMkM5LjIyMzg2IDIgOSAyLjIyMzg2IDkgMi41VjlIMi41QzIuMjIzODYgOSAyIDkuMjIzODYgMiA5LjVDMiA5Ljc3NjE0IDIuMjIzODYgMTAgMi41IDEwSDlWMTYuNUM5IDE2Ljc3NjEgOS4yMjM4NiAxNyA5LjUgMTdDOS43NzYxNCAxNyAxMCAxNi43NzYxIDEwIDE2LjVWMTBIMTYuNUMxNi43NzYxIDEwIDE3IDkuNzc2MTQgMTcgOS41QzE3IDkuMjIzODYgMTYuNzc2MSA5IDE2LjUgOUgxMFYyLjVaIiBmaWxsPSIjMjEyMTIxIi8+PC9zdmc+");
}
/* Replacing 'history' panel with Fluent archive icon to mimic Arc's 'recently closed' button. */
.NavigationBar #navhistory.nav-item .icon {
fill: transparent;
background-color: var(--nav-btn-fg);
display: flex;
padding: auto;
width: 80%;
height: 80%;
mask: url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fluent settings icon to blend with Arc (Windows) aesthetic. */
.NavigationBar #settings.nav-item .icon {
fill: transparent;
background-color: var(--nav-btn-fg);
width: 75%;
height: 75%;
mask: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjxzdmcgZmlsbD0ibm9uZSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIiB3aWR0aD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuOTEwNzUgNy4zODI2NkMyLjI4MDA0IDYuMjQwNTMgMi44ODgzOSA1LjE5MjEzIDMuNjkxMDkgNC4zMDM2NEMzLjgyNjgzIDQuMTUzMzkgNC4wMzk3OCA0LjA5OTg0IDQuMjMwNDQgNC4xNjgwMkw2LjE0ODczIDQuODUzOTJDNi42Njg4IDUuMDM5NzcgNy4yNDEwNyA0Ljc2ODgzIDcuNDI2OTIgNC4yNDg3NUM3LjQ0NTIgNC4xOTc2MiA3LjQ1OTI3IDQuMTQ1MDcgNy40NjkgNC4wOTE3M0w3LjgzNDQ2IDIuMDg1NzNDNy44NzA4IDEuODg2MjcgOC4wMjM5OCAxLjcyODUgOC4yMjIyNyAxLjY4NjNDOC44MDI0NiAxLjU2MjggOS4zOTczNCAxLjUgMTAgMS41QzEwLjYwMjMgMS41IDExLjE5NjggMS41NjI3MyAxMS43NzY3IDEuNjg2MDdDMTEuOTc0OSAxLjcyODI0IDEyLjEyODEgMS44ODU5MSAxMi4xNjQ1IDIuMDg1MjlMMTIuNTMxIDQuMDkxNjVDMTIuNjMwMSA0LjYzNDk3IDEzLjE1MDkgNC45OTUxIDEzLjY5NDIgNC44OTYwMUMxMy43NDc2IDQuODg2MjcgMTMuODAwMiA0Ljg3MjE5IDEzLjg1MTIgNC44NTM5NUwxNS43Njk2IDQuMTY4MDJDMTUuOTYwMiA0LjA5OTg0IDE2LjE3MzIgNC4xNTMzOSAxNi4zMDg5IDQuMzAzNjRDM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