Giter Site home page Giter Site logo

andreasgrafen / cascade Goto Github PK

View Code? Open in Web Editor NEW
1.3K 13.0 145.0 10.93 MB

A responsive One-Line CSS Theme for Firefox.

License: MIT License

CSS 100.00%
userchrome userchromecss userchrome-styles firefox-theme firefox-tweaks firefox maintainer-wanted

cascade's Introduction



maintainer

It hurts me to say this, but it's for the best. As some probably have noticed: This repo got quite stale. The reason for this is that I'm not really finding much time to work on this, iron out bugs and things that got broken due to Firefox updates. Furthermore I've recently switched to another browser which already offers quite a few of the ultimate features I wanted for Cascade by default and in a way that is a lot better than what I could have done with Firefox. I'm looking to move this repostory to an Org in order for potential new maintainers to have an easy transition into working on this. Again; I'm sorry, but y'all deserve better than my on-off relationship with this theme.

If you're up for it, feel free to reach out! <3



Cascade

A minimalistic and keyboard centered userChrome

Cascade aims to remove a lot of the subjective clutter default Firefox comes with. The theme is also highly inspired by the stylistic choices of SimpleFox 🦊 by Miguel Ávila.

InstallationCustomisationIntegrationsKeyboard Shortcuts


Cascade Preview


This theme was known previously as »ag.proton« — but let's be honest: That sounds hella boring. What you get is a really simple adaptive layout that works well with the new Proton UI. By default — on larger screen resolutions – Cascade will transition to a Oneline layout which displays the URL Bar and Tab Bar next to each other. Smaller resultions will stack both UI elements on top of each other for better readability.




Stargazers Issues Discord

If you really like my work you can buy me a coffee to fuel further development.
While appreciated it's ofc by no means necessary. ♡

Buy me a Coffee <3





Table of Contents


How to install Cascade

  1. Type about:config into your URL bar. Click on the I accept the risk button if you're shown a warning.
  2. Seach for toolkit.legacyUserProfileCustomizations.stylesheets and set it to true.
  3. Go to your profile folder:
  • Linux: $HOME/.mozilla/firefox/######.default-release/
  • MacOS: Users/[USERNAME]/Library/Application Support/Firefox/Profiles/######.default-release
  • Windows: C:\Users\[USERNAME]\AppData\Roaming\Mozilla\Firefox\Profiles\######.default-release
  1. Copy the chrome folder into your profile and restart1) Firefox.
  2. Customise everything to your liking. (optional)

1) If you're running into trouble with a restart seemingly not working you can navigate to about:profiles and click the »Restart Normally«-Button.


Note ⚠️ Attention Windows users.
It seems like flexbox (within the Firefox UI) is inheritly broken on Windows. In order to fix the One-Line layout on windows please substitute the responsive include with the version for windows. This will ensure that the layout doesn't break but since it can't use flexbox the UI reordering does not work.




Customise Cascade to your liking

Note If you're using Cascade I highly recommend to remove all clutter from the Navigation Bar area. To do so rightclick your bar and go into the customisation settings. You can move all the icons freely which allows you to place your Addons within the Personal Toolbar for example.


Colours

By default Cascade loads it's own colours which can be customised to fit your desired by simply changing the colours include. If you want to use Cascade with the Browsers default colours, or custom Firefox Themes like Firefox Color or even Addons like Adaptive Tab Bar Color simply remove the colours include from the userChrome.css file.

Note Are you having issues with the colours not applying?
A workaround fix for this issue is to remove the colour include from the main file and use Firefox Color to apply this custom theme to apply Cascades default colours.


Mouse Support

Cascade offers an alternative config file that reintroduces some of the UI elements that are necessary to use Firefox with a mouse. To use these settings simply substitue the regular config include with the one for mouse support.

This config brings back:

  • Navigation Buttons
  • the URL Bar Bookmark Button
  • the Hamburger Menu
  • Tab Close Buttons (on hover)

If the buttons inside the URL Bar are off you may need to change the --uc-page-action-margin variable in the config as the necessary margin seems to differ depending on ones setup.


Sort the UI like you want it

In the Cascade config you can set different ways of how the UI elements are layed out. The URL Bar, Tab Bar and Personal Toolbar can be arranged in different stacks; do you want the Toolbar to be on top or the URL and Tab Bar? Tabs on the left with the URL Bar to the right? No problem!

/*  Position of the Personal Toolbar
 *  possible values:
 *  0 – toolbar on top
 *  4 – toolbar on bottom
 */ --uc-toolbar-position: 0;
/*  Position of the URL Bar
 *  possible values:
 *  1 – tabs on the right
 *  3 – tabs on the left
 */ --uc-urlbar-position: 1;
Previews

Toolbar on top Toolbar an the bottom URL Bar on the right


URL Bar Customisation

You can freely set your desired URL Bar width from within the config where the min-width setting is the default URL Bar width and max-width is the width of the focused URL Bar. Those can be different in order to make more room for the URL Bar when you actually want to use it.

/*  Width of the URL Bar for the Oneline layout
 *  If enabled the max-width is applied on focus
 *  otherwise the URL Bar will always be it's min-width
 */ --uc-urlbar-min-width: 30vw;
    --uc-urlbar-max-width: 45vw;

If you set the min-width to 0vw and the max-width to 100vw you can also completely hide the URL Bar as long as it's not focused.

Fully hidden URL Bar if unfocused


Oneline Breakpoint

If you'd like to have Cascade transition into it's Oneline layout on either smaller or larger sizes you can simply do so by changing the breakpoint value in the responsive include file. If you don't want Cascade to break to the Oneline layout at all remove it from the userChrome.css file

@media (min-width: 1000px) {

  […]

}




Integrations

Catppuccin

Cascade Catppuccin Preview

This simply offers premade colour configs for Catppuccin. There are variants for each dark mode flavour — Mocha, Macchiato and Frappé — all of them come with Latte as their light mode.

Individual Previews

Catppuccin Mocha Catppuccin Macchiato Catppuccin Frappé Catppuccin Latte


Rosé Pine

Cascade Rosé Pine Preview

Similar to Catppuccin these are premade colour configs for Rosé Pine. Featuring the Default Palette as well as Moon with Dawn as light mode for both.


How to set it up

  1. Copy your desired colour config from integrations/catppuccin or integrations/rose-pine into the includes folder
  2. Replace the colour include in the userChrome.css with your desired flavour file

Alternatively you can also just copy the contents of your desired flavour config into the colour config file.


Tab Center Reborn — Vertical Tabs

Tab Center Reborn Vertical Tabs Preview

How to set it up

  1. Download the Tab Center Reborn Addon
  2. Copy the contents of integrations/tabcenter-reborn/tabcenter-reborn.css into the Addons settings
  3. Import the integrations/tabcenter-reborn/cascade-tcr.css into the userChrome.css

Side View

Mozilla's Side View is an Addon that allows you to open a second Website within the Sidebar of your Browser. Cascades integration gets rid of the header, moves the »Close«-Button to the bottom, and allows the sidebar to be up to 50% of your browsers width.

How to set it up

  1. Download the Side View Addon
  2. Import the integrations/side-view/cascade-sideview.css into the userChrome.css




Keyboard Shortcuts

This userstyle was made for a keyboard centered usage, like Tilling Window Manager users or just cool people that loves them! These are some of the shortcuts that are available:

Windows / Linux MacOS Description
Ctrl + L Command + L focuses the URL bar
Ctrl + B Command + B toggles the bookmark sidebar
Ctrl + Shift + B Command + Shift + B toggles the personal toolbar
Alt + Left Arrow Command + Left Arrow navigates backwards in your history
Alt + Right Arrow Command + Right Arrow navigates forwards in your history
Ctrl + T Command + T opens a new tab
Ctrl + Shift + T Command + Shift + T reopens the last closed tab
Ctrl + W Command + W closes the current tab
Ctrl + Page Up
or Ctrl + Shift + Tab
Command + Option + Left Arrow navigates to the previous tab
Ctrl + Page Down
or Ctrl + Tab
Command + Option + Right Arrow navigates to the next tab

For the full list of shortcuts visit the official Firefox website.



cascade's People

Contributors

apprehensions avatar benyaminl avatar cowboylaserkittenjetshark avatar fatcheetah avatar fuzc4t4 avatar heiwiper avatar j4ger avatar julow avatar karamanliev avatar mochaap avatar mr1cecream avatar slotthe avatar tunjan avatar unseen-ninja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cascade's Issues

TCR integration with FF 107 not working

Describe the bug
After updating to Firefox 107, the tab center reborn integration does not work as it should.

Expected behavior
I was expecting the right sidebar to minimize like the one shown in README file.

Screenshots (optional)
image

search text & icons colours

image

currently, i expect those white icons and white text to follow --inverted-colour and the grayed out text --secondary-colour

Is there possible to restore the menu button and make it on the far right

Hi there. I found this great firefox theme and it's visually amazing. But I really need the menu button that come with the original Firefox theme. I commented out a few related lines in the theme file https://github.com/andreasgrafen/cascade/blob/98d50efef103b06fd61a3cc80fe9fabfb921c391/userChrome.css#L116-L128, but that didn't work as I expected.

Screenshot_20220210_101156

I would like to ask if it is possible to restore the display of the menu button and have it on the far right side of the title bar? Thanks.

Using addons?

Hey there,
thanks for making that theme. It looks awesome and works perfectly together with i3wm because of it's minimalistic deign.

With this theme the addon-icons are hidden. Is there some way where I still can use addons?

How to move overflow menu

It seems that by default, the overflow menu stays on the right side of the search bar, and left to the tabs, but I want to move it all the way to the right. How can I do this? Firefox doesn't let me grab it as if it was another toolbar item...

Sorry if this has been answered before and I haven't seen it yet.

Firefox 106.0
MacOS 12.6

Thank you in advance!

Screen Shot 2022-10-19 at 9 51 52 p m

Layout and color bugs on Windows

Describe the bug

I'm using Firefox 105.0.3 on Windows 10, and cascade has layout and color bugs as shown in the screenshot:

  1. As #47 mentioned, the tabs are squeezed and overlapped, as shown on the right side of the URL bar
  2. The cascade color does not work, everything is just plain color, not as show in the README

    The previous cascade's color also doesn't work on Windows Firefox

  3. The responsive oneliner style doesn't work, no matter how I change the Firfox window width, it's always oneliner with the above bugs Update: not an issue on Windows, I didn't narrow the window enough to trigger the two line style.

This screenshot is taken after a clean install of Firefox, without any add-on or config.

Expected behavior

The tabs should be displayed as show in the README, not squeezed into a tiny region, and colors should work.

Additional info

I found commenting the following line will make the URL bar under the tab bar and that works fine. But I want the oneliner style

https://github.com/andreasgrafen/cascade/blob/504215d1e245cbd135e866e0cb12e0c8e06a0805/chrome/includes/cascade-responsive.css#L4

Screenshots (optional)

image

Is it possible to set text and icons color from within userChrome.css ?

Currently, choosing white colors for --window-colour and --secondary-colour makes the text and icons invisible when the Firefox theme is dark.
Normally this isn't an issue since white theme users would probably apply the userChrome.css on a white Firefox theme but in my case I want to have a script to change between light and dark theme based on day time and your CSS file makes it really easy to just set the two colors, I would love if I also had the possibility to set the icons and text color.

Side view doesn't close when I click the "X" button

Describe the bug
When I click in the "X" button in the Side view panel, it will freeze the resizing functionality and the view doesn't actually close.

edit: i forgot to mention that this behavior doesn't happen when I remove the @import 'integrations/side-view/cascade-sideview.css'; line.

Expected behavior
When I click in the button, the side view gets closed

firefox color not working

when i comment out the default color for the theme to use the firefox color. It is not working at all.

Another white page (SSL/TLS detail)

Describe the bug
The SSL/TLS certificate detail is white.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots (optional)
CleanShot 2022-10-21 at 15 23 01
CleanShot 2022-10-21 at 15 22 19

How to change the tab text color?

I changed the colour of the tabs to a lighter shade and I wish to change the colour of tab text (not just the selected tab but all the tabs since the background of all tabs is a bluish colour) to a darker shade but so far I have been unsuccessful. I couldn't find anything about changing tab text on google and I am lost right now.
Can you point me on how to accomplish this?
Thanks!

White download prompt on MacOS

First of all, thanks for the simple but amazing theme.

Describe the bug

The download prompt is completely white for me (screenshot attached).

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots (optional)
If applicable, add screenshots to help explain your problem.
CleanShot 2022-10-15 at 09 43 17@2x

Multiple bugs with new update

Describe the bug
I made a fresh profile to test the new updates, installed it as instructed and am coming across several issues. The only setting I changed was --uc-urlbar-min-width: 0vw.

Currently icons are in the wrong place and overlap, the tab bar isn't visible, sometimes the oneline breaks and the tab bar shows separately.

My guess is that the default settings are messing things up?

The video below will showcase the bugs I'm experiencing.

Expected behaviour
Taken from my current setup, when not focused the url bar shrinks so the top bar can be entirely filled with tabs.
image

Video

video.mp4

'More tools' button partly hidden by tabs when 'back' is re-enable

Hey,
as the title states I can't live without the back button and re-enabled it. This causes the more tools button to be partly hidden like in the following picture:

CleanShot 2022-10-13 at 19 24 45@2x

Is there an easy fix for this? I messed around with the CSS file but I don't seem to grasp it.

Thanks a lot for this great theme by the way (:!

P.S. I re-enabled the back button by just deleting line 145.

Hide the Go button

Screenshot 2022-01-09 at 10 19 17@2x

Trying to hide the Go button but the following code doesn't work for some reason:

urlbar-go-button { 
    display: none !important;
}

Please could you advise?

Ref. Answer

@andreasgrafen Anyway just wanna say thank you. This theme really make me love firefox again. it's really really compact that make me able to save space even with menu bar enabled! Thank you!

Originally posted by @benyaminl in #1 (comment)

--

Hey! I'm happy that you're now happy to use Firefox again. I didn't think it would have that much of an impact.. so I'm not really sure what to say but thank you. :D

Make url bar shorter

Ho can I make url bar shorter or sonething assign max-width to it. I can already do something like that but it also cover firefox menu. If not How can I move firefox menu to the front?

force colors

is it currently possible to force the cascade CSS colors? Firefox by default is light theme, so the cascade light colors apply as well.
a workaround is to have the same colors for dark and light themes.

Hide search bar when not used

Describe the solution you'd like
To be really minimalistic, is there an option to hide the upper search bar when it's not being used (typed in). Would be cool to have that!
Here is how it looks for me now with the tab center ext.
image

little lock indicator

Hi,

I really like your css and use it currently :) .... but there is one thing I'm missing and I don't know how to bring it back -- the lock indicator in the URL bar to see if I use HTTPS + reach the certificate information of the page when double-clicked.

could you give me a hint how to bring it back?

thx

[Bug] Addons Installation/Remove, and Firefox Update Notification Stuck

Hello, I'm facing addons installation notification stuck, can't be closed and sometimes blinked, is there any CSS rule to hide the notification permanently, and I need to restart the browser to make the notification disappear. This also applied to other notification that rely on hamburger menu. The hamburger menu already disappear but this problem still occur, I remember it's mentioned on the readme, but now seems it's not mentioned any-more after several update.

Any pointer is appreciated. Thank you.

Ability to hide url bar when unfocused

It would be a great option if there was a way to hide the url bar until a user focuses on it by hovering so tabs get maximum space.
I know this has been discussed here #20 already but with the theme below I think you could work something out.
This theme is sort of what I had in mind.
Could you perhaps copy over the relevant css code and tweak it to work with cascade (I have no idea how it works)?

Fix tabs,spaces,indentation

Hi, just a small comment. The userChrome.css is badly formatted.
There are lots of white spaces in between lines, and maybe the comments should have 1 white space each letter for readability? :)

Maybe format it with a tool such as prettier? Although I can't find CSS support for prettier at the moment, maybe another tool?
Anyways, thanks for your release. Tested it, looks pretty simple and solid
For example:

/* Config */
:root {
    --bar-bg: #303035;
    --tab-active-bg: #404045;
}

/* General */
window,
#main-window,
#toolbar-menubar,
#TabsToolbar,
#PersonalToolbar,
#navigator-toolbox,
#sidebar-box,
#nav-bar {
    background-color: var(--bar-bg) !important;
    -moz-appearance: none !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

.titlebar-buttonbox {
    display: none;
}

#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs])>#tabbrowser-arrowscrollbox>.tabbrowser-tab[first-visible-unpinned-tab] {
    margin-inline-start: 0 !important;
}

#TabsToolbar {
    margin-top: -1px !important;
    margin-bottom: 1px !important;
    margin-left: 25vw !important;
}

Light mode selections from the URL bar aren't discernable.

First of all, thanks for this great theme!

Describe the bug
When in light mode, when I hit cmd-l to focus the URL quick switch bar and then use the up and down arrow keys it's not clear which item I am selecting (to go to when I hit return), sometimes the color of the text changes on the selected item, but that's only in the firefox suggest area.

The only way I know which item I'm currently selected on is that text to the right appears "Search with Google" as shown in the screenshot.

The background should darken around the currently selected item in this dropdown.

Screenshots (optional)
image

I couldn't make the url bar smaller without messing things up

I want to make the url bar smaller and when I tried to set the 500 here to 400: --uc-urlbar-width: clamp(200px, 40vw, 500px);, the 2 arrow button with extensions disappears. And when I clicked on it, it reappeared but was above a tab and the search results/suggestions area was not the same width as the urlbar-width.
How can I make my urlbar width smaller but still maintain the amazing style of cascade?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.