Skip to content

Commit

Permalink
add sidebery-styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanvir1337x committed Jul 16, 2024
1 parent 0a3f969 commit 2e0a5a5
Showing 1 changed file with 222 additions and 0 deletions.
222 changes: 222 additions & 0 deletions addons/sidebery-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
#root.root {
--general-border-radius: 5px;
}
#root.root {
--accent: #c38f8f;
}
#root.root {
--nav-btn-fg: #faf8f7;
}
#root.root {
--toolbar-fg: #faf8f7;
}
#root.root {
--toolbar-el-overlay-active-bg: rgba(255, 255, 255, 0.141);
}
#root.root {
--general-margin: 2px;
}
#root.root {
--border: #202020;
}
#root.root {
--status-ok: #64df64;
}
#root.root {
--status-err: #df6464;
}
#root.root {
--status-active: #47cfff;
}
#root.root {
--status-notice: #00e9fb;
}
#root.root {
--scroll-progress-bg: #c38f8f;
}
#root.root {
--notification-fg: #faf8f7;
}
#root.root {
--notification-bg: #202020;
}
#root.root {
--nav-btn-active-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.071),
0 1px 3px 0 rgba(0, 0, 0, 0.212);
}
#root.root {
--nav-btn-accent: #c38f8f;
}
#root.root {
--frame-scrollbar-color: #8db8cd;
}
#root.root {
--toolbar-scrollbar-color: #8db8cd;
}

#root.root {
--frame-fg: #faf8f7;
}
#root.root {
--frame-bg: #202020;
}
#root.root {
--toolbar-bg: #202020;
}

/* Based on: https://raw.githubusercontent.com/mgastonportillo/gale-for-ff/main/sidebery.css */
#root {
--tabs-height: 34px;
--tabs-pinned-height: var(--tabs-height);
/* Dark Theme base settings */
--bg: #1c1b22 !important;
--tabs-fg: #d4d4d4 !important;
--tabs-bg-hover: #3b3948 !important;
--tabs-activated-bg: #5b5b66 !important;
--nav-btn-activated-bg: #1f222f !important;
}

#root .Tab {
--tabs-indent: 10px;
}

/* TABS */
.Tab .lvl-wrapper:after {
display: none;
}

.Tab {
margin: auto;
width: 95%;
border-radius: 5px;
}

.Tab .close > svg:hover {
/* Tab close button */
border-radius: 5px;
background: #df6464 !important;
opacity: 100%;
}

.Tab .title {
overflow: hidden !important;
}

/* PINNED TABS */
.PinnedDock {
background-color: var(--bg) !important;
}

.PinnedTab {
margin: 5px 0px 4px 6px;
border-radius: 5px;
}

/* NAV BAR */
.NavigationBar {
height: 40px !important;
padding: 4.5px 0px 0px 4.5px !important;
background-color: #2b2a33 !important;
margin-bottom: 5px;
}

.NavigationBar .panel-btn:hover {
border-radius: 5px !important;
background-color: var(--tabs-bg-hover) !important;
}

.NavigationBar .panel-btn[data-active="true"] {
border-radius: 5px !important;
background-color: var(--bg) !important;
}

.NavigationBar .panel-btn[data-active="true"]:hover {
border-radius: 5px !important;
background-color: var(--tabs-bg-hover) !important;
}

.NavigationBar .panel-btn > svg,
.NavigationBar .panel-btn > img {
fill: #f2f2f2 !important;
}

/* SIDEBAR HACK PATCHES */
@media (max-width: 50px) {
/* Fix to tab tree identation when minimised */
#root:not(:hover) .Tab {
--tabs-indent: 0px;
}

.Tab[data-lvl] > div.lvl-wrapper {
right: -2px;
}

.Tab {
max-width: 34px;
}

.Tab .fav {
z-index: 1;
}

.Tab .audio {
z-index: 1;
margin-left: -12px;
height: 26px;
}

.Tab .title {
display: none;
}

.PinnedTab {
margin-left: 5px;
}

.NavigationBar .settings-btn {
display: none;
}
}

/* Disable these two snippets below to make pinned tabs wrap when minimised */
.PinnedDock {
flex-wrap: nowrap !important;
}

.PinnedTab {
overflow: hidden !important;
min-width: var(--tabs-pinned-width) !important;
}

/* Better tab notifications on pinned tabs */
.PinnedTab[data-audible] .fav > img,
.PinnedTab[data-muted] .fav > img,
.PinnedTab[data-loading] .fav > img {
mask: none;
}

.PinnedTab .fav > img {
mask: none;
}

.PinnedTab[data-updated="true"] .fav > img {
mask: radial-gradient(
circle at calc(100% - 2px) calc(100% - 2px),
rgba(0, 0, 0, 0.141),
rgba(0, 0, 0, 0.141) 4px,
#000 5px,
#000
);
}

.PinnedTab .audio-badge {
top: 5px;
}

.PinnedTab .update-badge {
opacity: 0;
}

.PinnedTab[data-updated="true"] .update-badge {
opacity: 100;
}

0 comments on commit 2e0a5a5

Please sign in to comment.