Commit Graph

47 Commits

Author SHA1 Message Date
MrOtherGuy
f87fcdf68c Handle both [collapsed="true"] and [collpsed=""] attributes
Firefox 143 use collapsed attribute as regular boolean attribute, so we
need to handle both cases.
2025-09-16 05:59:34 +03:00
MrOtherGuy
14d2fa0d03 Add #notifications-toolbar as selector where notifications are styled 2025-07-27 07:08:51 +03:00
MrOtherGuy
2eaffa57ff autohiding styles: exclude more selectors from triggering auto-show
Fixes #535
2025-03-29 04:59:22 +02:00
MrOtherGuy
0bdc0db51f autohide bm and main toolbars: Add dpi dependent bottom margin for toolbox
On Windows 10 at least, the -1px static bottom margin we were using
causes a empty row of pixels to appear between tabs toolbar and nav-bar
when: 1. compact mode is used and 2. window scaling is at least 120% and
3. menubar is disabled.

This might be useful to be made to apply to Windows only, but that needs
testing. I suspect that this is also somewhat system dependent or
depends on more than just display scaling and density.
2025-03-01 09:09:20 +02:00
MrOtherGuy
2147612b2d autohide bookmarks and main toolbar: don't use .browser-toolbar
Since Tabs toolbar and menubar are direct children of toolbox
.browser-toolbar selector would apply to them as well causing certain
rendering issues such as slight movements in buttons when toolbox is
hovered
2025-03-01 08:29:56 +02:00
MrOtherGuy
6931382f92 Replace uses of -moz-bool-pref with -moz-pref
This new media query feature replaces the old -moz-bool-pref in Firefox
137. -moz-pref can be used to also query values of string and number
     prefs
2025-02-13 07:38:04 +02:00
MrOtherGuy
890a03f4ff autohiding toolbars: exclude tab-preview-panel from keeping toolbar open
Tab preview panel can sometimes cause what is possibly style
invalidation problem where the panel would jump around and even be
outside the window. This is especially likely to happen with
autohide_main_toolbar when tabs are overflowing.
2024-12-09 11:53:29 +02:00
MrOtherGuy
fec968c9de autohiding nav-bar: Replace :has(> [role="group"][panelopen])
Let's instead use :has(> [panelopen]:not(#ask-chat-shortcuts)) which
allows a lot more of the panels to keep nav-bar visible
2024-12-07 17:18:55 +02:00
MrOtherGuy
9eef8cd4bf autohide toolbars: remove weird --uc-urlbar-top hack
Beta 133 b4 seems to work okay without it and it breaks positioning on
nightly
2024-11-04 19:52:21 +02:00
MrOtherGuy
ec1aede46c show autohidden toolbar when a panel is open 2024-11-01 05:36:58 +02:00
MrOtherGuy
14b75c1b77 autohide bm and main toolbars: remove duplicate ruleset 2024-11-01 05:35:55 +02:00
MrOtherGuy
7c38557add autohide bm and main toolbars: use opacity+pointer-events to hide urlbar
visibility: hidden prevents urlbar from getting focus from hotkeys etc.
2024-10-31 17:46:08 +02:00
MrOtherGuy
56e83df95b autohide bookmarks and main toolbar: apply separate transform to urlbar
This makes popover urlbar sort of work - for now. Fixes #436
2024-10-29 21:24:29 +02:00
MrOtherGuy
1d7530e370 only rotate nav-bar by 89.9deg when hiding it
Rotating by full 90deg makes panels anchored to some node, such as
star-button panel, unable to open. Fixes #424
2024-10-10 04:56:22 +03:00
MrOtherGuy
69e53df519 Restore z-index: auto for toolbox and sidebar elements. Fixes #411
Revamped sidebar design sets non-auto z-index for toolbox and sidebar
items. We need to restore them to auto for correct (in our perspective)
layering.
2024-10-02 06:10:12 +03:00
MrOtherGuy
13b0fbd7a1 autohide bm and main toolbars: multirow compat rules use moz-bool-pref 2024-08-28 16:43:22 +03:00
MrOtherGuy
5b33d5b45d autohide bm and main toolbars: set a height for empty bm scrollbox
Fixes #400
2024-08-28 16:36:08 +03:00
MrOtherGuy
f42c760474 Don't modify #browser margins when chromehidden attr is set
chromehidden attribute to various values for windows where various
toolbar are disabled, such as popups etc.
2023-11-23 17:46:05 +02:00
MrOtherGuy
fd88af0e85 autohidden toolbars: Use :has() to show toolbar if menu popup is hovered 2023-11-23 17:27:28 +02:00
MrOtherGuy
4f3ac169e3 autohide bm and main toolbars: Fix margins in fullscreen mode
Previously if Firefox was in fullscreen mode and toolbars would autohide
(per Firefox normal setting) then this style would cause content area to
be pushed way too far up because of computed margin-top on
navigator-toolbox. This patch makes navigator toolbox use margin
computed from tabs toolbar height.
2023-11-23 17:02:57 +02:00
MrOtherGuy
73338583a0 Use :has selector to let toolbars show if appMenu popup is hovered
This requires :has selector support which should be in fx 120
2023-11-06 15:04:22 +02:00
MrOtherGuy
69078c0394 Apply bookmarks block padding to bookmarks by variable
This makes the variable do what it says and makes compact mode work as
it should
2023-10-29 12:34:45 +02:00
MrOtherGuy
daf7624553 Remove now-unnecessary rules from autohide-bookmarks_and_main_toolbars
These rules were once needed to make sure that invisible toolbox didn't
steal pointer events from sidebar. Not needed anymore, and this removal
also fixes #305
2023-09-26 19:43:51 +03:00
MrOtherGuy
a504b365c8 fix incorrect notification bar layout 2023-09-26 19:37:57 +03:00
MrOtherGuy
ed5a677a15 rework navigator-toolbox-background selectors 2023-09-07 20:09:55 +03:00
MrOtherGuy
5ea61e3d40 Add workarounds for bug 1705215 2023-07-18 19:16:42 +03:00
MrOtherGuy
0c0ba80f0b adjustments for bookmarks toolbar item sizing
This fixes an issue with Firefox 108 where an empty "placeholder" space
would appear below tabs toolbar.
2022-12-14 09:16:30 +02:00
MrOtherGuy
b958b75f2c Make multi-row_bookmarks.css compatibility rules work in Firefox 107
In 107 (but not in 108) you also need to set
layout.css.moz-box-flexbox-emulation.enabled to true for things to work
2022-10-19 11:21:27 +03:00
MrOtherGuy
ea17cb7f1f Show window global notificationbox in same order as tab modal 2022-03-27 15:31:59 +03:00
MrOtherGuy
1621ecc3f4 set visibility:hidden for items in bookmarks toolbar when collapsed 2022-02-06 09:36:12 +02:00
MrOtherGuy
d35ebf1943 hide .bookmark-item elements in fullscreen mode. Fixes #154
For some reason individual .bookmark items in the toolbar are being
rendered in Firefox 96, even though the toolbar itself is hidden. This
patch applies a simple visibility:hidden to all of them.
2021-11-18 09:51:59 +02:00
MrOtherGuy
946668e9a1 Handle different bookmarks item heights better
Bookmark items in the toolbar may not be same height on all systems,
generally the text size on Linux is bigger than on Windows for example.
This patch changes the height to use min-height on bookmark items and
removes their individual block padding. Thus, thee effectively have
variable block-padding depending on the text size.

In addition this patch removes few pre-proton workarounds because those
don't need to be supported any more.
2021-11-13 09:26:18 +02:00
MrOtherGuy
2d7f31b766 make sure bookmarks toolbar isn't collapsed in fullscreen mode. fixes #154 2021-11-10 21:10:52 +02:00
MrOtherGuy
7db2c96530 add temporary dummy variables for tab-block-margin 2021-06-05 00:17:16 +03:00
MrOtherGuy
240b7ee1ec increase z-index of selected tab to hide the border below it 2021-05-29 20:48:30 +03:00
MrOtherGuy
8513ca9bfb fix additional background alignment 2021-05-29 20:05:36 +03:00
MrOtherGuy
3b3e363be5 apply --toolbar-bgcolor on top of theme-images 2021-05-29 19:41:39 +03:00
MrOtherGuy
e369c1670c add support for theme images 2021-05-27 16:28:12 +03:00
MrOtherGuy
6556b1d525 bunch of fixes for proton compatibility 2021-05-08 14:54:52 +03:00
MrOtherGuy
2046d18880 sidebar-box needs to be position:relative 2021-03-21 08:33:34 +02:00
MrOtherGuy
aa77a9478e Apply bookmarks padding also to import-bookmarks and other-bookmarks buttons 2020-12-16 16:19:28 +02:00
MrOtherGuy
7e11f3796e Reduce navbar and personaltoolbar transform specificity 2020-12-16 05:51:33 +02:00
MrOtherGuy
5d18237e62 Add off-by-default way to show toolbars if mainpopupset is hovered 2020-12-11 09:55:00 +02:00
MrOtherGuy
b4d97d83c9 work around issue where hovering sidebar-header would show the toolbox 2020-11-22 08:27:57 +02:00
MrOtherGuy
5e823bafd5 make bookmarks toolbar only hidden - not collapsed when it is disabled 2020-10-04 21:36:14 +03:00
MrOtherGuy
fc967120bf Use longer delay before autohide 2020-07-06 20:29:51 +03:00
MrOtherGuy
28278cffa4 new file 2020-05-27 16:12:41 +03:00