Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Add a version that works with Sidebery beta
Browse files Browse the repository at this point in the history
Might be unstable
  • Loading branch information
mgastonportillo committed Jun 25, 2023
1 parent 90dbd9a commit d6444a7
Show file tree
Hide file tree
Showing 6 changed files with 617 additions and 331 deletions.
42 changes: 21 additions & 21 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2022 gale

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License

Copyright (c) 2022 gale

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
60 changes: 30 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<p align="center"><img src="image/logo.png" width=100px height=100px></p>
<h1 align="center">gale for Firefox</h1>
<p align="center">My CSS files to use with Firefox and Sidebery</p>
<hr>
<p>My goal with these settings was to create a minimalistic yet functional setup with Sidebery tuned to match Firefox Default Dark Theme and optimise the workspace. If you find any odd behaviour feel free to send a pull request.</p>
<hr>
<p align="center"><img src="image/thumbnail.png"></p>
<hr>
<h3>How to install?</h3>
<ol>
<li> In Firefox, go to <code>about:config</code> and set <code>toolkit.legacyUserProfileCustomizations.stylesheets</code> to <code>True</code></li>
<li> Make sure you have <i>userChrome.css</i> file and folder path created <a href="https://www.userchrome.org/how-create-userchrome-css.html">properly</a></li>
<li> Get <a href="https://addons.mozilla.org/firefox/addon/sidebery">Sidebery</a> if you don't have it already installed</li>
<li> Copy the content in my <i>userChrome.css</i> to your file (I don't support this method) or replace/copy it in the corresponding folder path</li>
<li> Go to Sidebery settings and paste the content of my <i>sidebery.css</i> file into <i>Styles editor > Sidebar</i> </li>
<li> Enjoy your new setup!</li>
</ol>
<hr>
<h3>Known bugs</h3>
<ul>
<li><span style="text-decoration: line-through;">When moving a tab, the tab position indicator doesn't follow the <code>margin-top</code> CSS rule for tabs; if it bothers you a lot, identify <code>.Tab {margin-top: 5px;</code> and remove it.</span><b><i>&nbsp;&nbsp;Fixed!</i></b></li>
</ul>
<hr>
<h3>Credits</h3>
<ul>
<li>to <a href="https://github.com/MrOtherGuy">@MrOtherGuy</a> for his <a href="https://github.com/MrOtherGuy/firefox-csshacks">Firefox CSS Hacks</a></li>
<li>to <a href="https://www.reddit.com/user/captainkaba/">u/captainkaba</a> for his <a href="https://www.reddit.com/r/FirefoxCSS/comments/rqo5z6/some_people_asked_for_the_css_so_here_is_my_setup/">Denkfabrik</a> theme (which I used as a base for this project)</li>
<li>to Reddit user <a href="https://www.reddit.com/user/It_Was_The_Other_Guy/">u/It_Was_The_Other_Guy</a> for his <a href="https://www.reddit.com/r/FirefoxCSS/comments/vzcqzn/comment/ig8a8ba/">tip</a></li>
<li>to Reddit user <a href="https://www.reddit.com/user/GainghisKhan/">u/GainghisKhan</a> for <a href="https://www.reddit.com/r/FirefoxCSS/comments/wcc9fc/comment/j2aoa8r/">finding a bug and providing a solution idea for it</a></li>
</ul>
<p align="center"><img src="image/logo.png" width=100px height=100px></p>
<h1 align="center">gale for Firefox</h1>
<p align="center">My CSS files to use with Firefox and Sidebery</p>
<hr>
<p>My goal with these settings was to create a minimalistic yet functional setup with Sidebery tuned to match Firefox Default Dark Theme and optimise the workspace. If you find any odd behaviour feel free to send a pull request.</p>
<hr>
<p align="center"><img src="image/thumbnail.png"></p>
<hr>
<h3>How to install?</h3>
<ol>
<li> In Firefox, go to <code>about:config</code> and set <code>toolkit.legacyUserProfileCustomizations.stylesheets</code> to <code>True</code></li>
<li> Make sure you have <i>userChrome.css</i> file and folder path created <a href="https://www.userchrome.org/how-create-userchrome-css.html">properly</a></li>
<li> Get <a href="https://addons.mozilla.org/firefox/addon/sidebery">Sidebery</a> if you don't have it already installed</li>
<li> Copy the content in my <i>userChrome.css</i> to your file (I don't support this method) or replace/copy it in the corresponding folder path</li>
<li> Go to Sidebery settings and paste the content of my <i>sidebery.css</i> file into <i>Styles editor > Sidebar</i> </li>
<li> Enjoy your new setup!</li>
</ol>
<hr>
<h3>Known bugs</h3>
<ul>
<li><span style="text-decoration: line-through;">When moving a tab, the tab position indicator doesn't follow the <code>margin-top</code> CSS rule for tabs; if it bothers you a lot, identify <code>.Tab {margin-top: 5px;</code> and remove it.</span><b><i>&nbsp;&nbsp;Fixed!</i></b></li>
</ul>
<hr>
<h3>Credits</h3>
<ul>
<li>to <a href="https://github.com/MrOtherGuy">@MrOtherGuy</a> for his <a href="https://github.com/MrOtherGuy/firefox-csshacks">Firefox CSS Hacks</a></li>
<li>to <a href="https://www.reddit.com/user/captainkaba/">u/captainkaba</a> for his <a href="https://www.reddit.com/r/FirefoxCSS/comments/rqo5z6/some_people_asked_for_the_css_so_here_is_my_setup/">Denkfabrik</a> theme (which I used as a base for this project)</li>
<li>to Reddit user <a href="https://www.reddit.com/user/It_Was_The_Other_Guy/">u/It_Was_The_Other_Guy</a> for his <a href="https://www.reddit.com/r/FirefoxCSS/comments/vzcqzn/comment/ig8a8ba/">tip</a></li>
<li>to Reddit user <a href="https://www.reddit.com/user/GainghisKhan/">u/GainghisKhan</a> for <a href="https://www.reddit.com/r/FirefoxCSS/comments/wcc9fc/comment/j2aoa8r/">finding a bug and providing a solution idea for it</a></li>
</ul>
166 changes: 166 additions & 0 deletions sidebery-beta-5.0.0b33.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
/*
MAIN
*/

#root {
--tabs-height: 35px;
--tabs-width: 35px;
--tabs-pinned-height: var(--tabs-height);
--tabs-pinned-width: var(--tabs-width);
--bg: #1c1b22;
--tabs-fg: #d4d4d4;
--tabs-bg-hover: #3b3948;
--tabs-activated-bg: #5b5b66;
--nav-btn-activated-bg: #1f222f;
}

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

/*
TABS
*/

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

.Tab {
margin-bottom: 2px;
border-radius: 3px;
}

.Tab .close:hover {
background: none;
}

.Tab[data-active="true"] .close:hover {
background: #42414d;
}

.Tab .close > svg:hover {
/* Styling the tab close button */
border-radius: 3px;
background: rgba(255, 0, 0, 0.17);
opacity: 100%;
}

.Tab .title {
overflow: hidden;
}


/*
PINNED TABS
*/

.PinnedTabsBar {
background-color: var(--bg);
}


/*
NAVIGATION BAR
*/

.NavigationBar {
margin: 0 2px;
height: var(--tabs-height);
}

.NavigationBar .static-btns {
margin-right: 5px;
}

.NavigationBar .audio {
display: none;
}

/*
COLLAPSED TWEAKS
*/

@media (max-width: 50px) {
#root {
--tabs-pinned-height: var(--tabs-height);
--tabs-pinned-width: var(--tabs-width);
}

#root:not(:hover) .Tab {
--tabs-indent: 0px;
}

.NavigationBar .main-items .nav-item[data-index="-1"][data-active="true"] {
background: none;
z-index: 1;
opacity: inherit;
transform: scale(1,1);
}

.NavigationBar .static-btns {
display: none;
}

.Tab {
width: var(--tabs-width);
height: var(--tabs-height);
}

.t-box, .close {
display: none;
}

.ScrollBox .Tab .fav {
margin: auto;
z-index: 1;
}

.ScrollBox .Tab .audio {
z-index: 1;
margin: -7px;
}

.Tab .title {
display: none;
}

.PinnedTabsBar {
margin-left: 2px;
}

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

/*
CUSTOM TWEAKS
*/

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

.PinnedTabsBar .fav-icon {
mask: none;
}

.PinnedTabsBar[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);
}

.audio {
color: red;
}

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

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

0 comments on commit d6444a7

Please sign in to comment.