Giter Club home page Giter Club logo

Comments (8)

MrOtherGuy avatar MrOtherGuy commented on June 9, 2024

If you mean autohide_toolbox.css, then you can simply make the --uc-toolbox-rotation variable smaller. Line 11 controls normal windows, and line 15 is for maximized ones.

from firefox-csshacks.

musjj avatar musjj commented on June 9, 2024

How about autohide_bookmarks_and_main_toolbars.css?

from firefox-csshacks.

MrOtherGuy avatar MrOtherGuy commented on June 9, 2024

That style should show the main toolbar and bookmarks toolbar whenever your cursor is hovering tabs toolbar or menubar. Is your intention that you would want toolbars to also show up if the cursor is somewhere nearby tabs toolbar or what? Doing that should be possible, but it would prevent you from interacting with top portion of web pages.

from firefox-csshacks.

musjj avatar musjj commented on June 9, 2024

you would want toolbars to also show up if the cursor is somewhere nearby tabs toolbar

Yeah, this is kind of what I want. I don't think it'd too intrusive if it's only a few pixels tall, tbh. Most website controls aren't that up high after all.

from firefox-csshacks.

MrOtherGuy avatar MrOtherGuy commented on June 9, 2024

For that you'll need something more complicated to have it look okay.
This should work if you add it to the end of the style:

:root[sessionrestored] #navigator-toolbox > .browser-toolbar{
  opacity: 0;
  transform: rotateX(70deg);
  transition-property: transform, opacity !important;
}
#mainPopupSet:has(> #appMenu-popup:hover) ~ #navigator-toolbox > .browser-toolbar,
:root[sessionrestored] #navigator-toolbox:is(:focus-within,:hover) > .browser-toolbar{
 opacity: 1; 
 transform: rotateX(0deg);
}

from firefox-csshacks.

musjj avatar musjj commented on June 9, 2024

Thank you, this works great! This also means that I can reduce the padding of the tab bar, to save even more space:

#navigator-toolbox {
  --uc-navbar-height: -48px !important;
}

Btw, what value should I tweak to control the size of the hover area?

from firefox-csshacks.

MrOtherGuy avatar MrOtherGuy commented on June 9, 2024

Make the rotation parameter (70deg) smaller to increase the size of the trigger area. By defaults this style uses 90deg which effectively rotates the toolbars so much that it isn't visible. Rotation of 0deg on the other hand is effectively as if no transformation was done at all, thus the trigger area is as tall as the toolbars would normally be.

from firefox-csshacks.

musjj avatar musjj commented on June 9, 2024

Thank you, that works perfectly!

from firefox-csshacks.

Related Issues (20)

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.