Commit Graph

50 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
9bf9c83944 autohide toolbox: clamp urlbar-input box block padding
When the user exits customize mode, Firefox re-evaluates urlbar
dimensions and the result ends up with --urlbar-height becoming 0px
since the urlbar gets hidden.

The input box uses --urlbar-height to calculate its block padding which
in turn evaluates to full urlbar-height - thus making the contents of
input-box 0px leading to "invisible" input-box.

As a workaround we now clamp the padding-block calculation to 4px.
2025-03-30 07:46:58 +03:00
MrOtherGuy
2eaffa57ff autohiding styles: exclude more selectors from triggering auto-show
Fixes #535
2025-03-29 04:59:22 +02:00
MrOtherGuy
ad7f192385 autohiding: don't apply transforms when moving a tab
This fixes an issue that occurs on linux where :hover state is lost when
drag session begins.
2025-03-15 16:15:36 +02:00
MrOtherGuy
e127ec9379 autohide toolbox: remove rules setting toolbar width
These shouldn't be needed anymore and having them around causes
compatibility issues with styles like oneline-toolbar.css
2025-03-15 15:38:21 +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
09cc00568e autohide toolbox: add optional feature to show the toolbox
This makes active maximized window show the toolbox when the window is
not hovered, such as when cursor is over native titlebar.
2024-12-07 16:27:25 +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
f4dfe670eb autohide toolbox: show urlbar also when :focus-within 2024-10-31 17:45:32 +02:00
MrOtherGuy
3f6b82c235 autohide toolbox: use transform instead of visibility changes on urlbar 2024-10-31 17:32:14 +02:00
MrOtherGuy
2200c38777 autohide_toolbox: changes to make it sort of usable with popover urlbar 2024-10-23 18:01:27 +03:00
MrOtherGuy
31cb27a5d8 Don't depend on [inFullscreen] attribute for navigator-toolbox
Just use :root[sizemode="fullscreen"] instead
2024-05-16 05:23:04 +03:00
MrOtherGuy
2e47c6caa4 Remove uses of :-moz-lwtheme pseudo-class
The pseudo-class is removed in 126, but can be usually be trivially
replaced with :root[lwtheme]
2024-03-20 07:13:32 +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
ed5a677a15 rework navigator-toolbox-background selectors 2023-09-07 20:09:55 +03:00
MrOtherGuy
d6eb2ac027 Remove old -moz-os-version media queries
They aren't needed anymore since ESR supports -moz-platform already
2023-05-16 06:38:41 +03:00
MrOtherGuy
62f0d91975 remove remaining --lwt-frame variables from the codebase 2022-11-19 10:22:05 +02:00
MrOtherGuy
6b242379ec Remove Windows specific extra titlbar paddings from codebase
Firefox 101 doesn't need those anymore :)
2022-06-01 00:19:19 +03:00
MrOtherGuy
3241bdbfe1 autohide_toolbox.css: adjust toolbox margins on hidpi screens 2022-04-08 20:31:56 +03:00
MrOtherGuy
71fe0e87c7 add basic support for -moz-platform media query 2022-02-12 09:20:20 +02:00
MrOtherGuy
d64e9e129e add temporary dummy variables to support for window frame color
In 96 the old --lwt-accent-color is renamed to --lwt-frame so add some
compatibility rules for now.
2021-11-21 08:03:05 +02:00
MrOtherGuy
ebe138c7a0 autohide_toolbox: set top margin to 0 in fullscreen. Fixes #137 2021-08-22 09:50:08 +03:00
MrOtherGuy
51ae368931 edit Windows window top padding values for the toolbox 2021-08-18 05:23:43 +03:00
MrOtherGuy
86f8cf4b86 Use the same extra titlebar padding on Win7 that is used on Win10 2021-06-06 08:23:40 +03:00
MrOtherGuy
461224d438 modify window and toolbox top margins to support Fx87 2021-04-01 10:45:25 +03:00
MrOtherGuy
5d18237e62 Add off-by-default way to show toolbars if mainpopupset is hovered 2020-12-11 09:55:00 +02:00
MrOtherGuy
232aa45a4c Add width for toolbars for oneliner compatibility 2020-10-04 11:20:55 +03:00
MrOtherGuy
6d601a594f apply the shorter transition delay to toolbox when focused 2020-08-04 00:25:44 +03:00
MrOtherGuy
3d35562c1b Adjust toolbox top margins to work better with higher dpi 2020-07-29 23:14:42 +03:00
MrOtherGuy
d6bd860a0d Correctly apply tabs background-color with non-lwtheme on Win10 2020-07-23 22:11:58 +03:00
MrOtherGuy
fc967120bf Use longer delay before autohide 2020-07-06 20:29:51 +03:00
MrOtherGuy
4d0b0ace71 Add compatibility rules for tabs_on_bottom.css 2020-07-05 18:45:27 +03:00
MrOtherGuy
11259c7cd1 Add note to rotation angle to inform it may need to be lower 2020-06-14 08:58:28 +03:00
MrOtherGuy
84ec1414dd Add source/license notices 2020-05-22 08:13:58 +03:00
MrOtherGuy
2062bd2c4b apply window margin to body > box instead of :root 2020-05-11 16:01:54 +03:00
MrOtherGuy
8cad80c046 Add a workaround for occasionally manifesting inability to scroll the page 2020-05-01 11:53:21 +03:00
MrOtherGuy
be0f4729b0 Don't apply transform before sessionrestored 2020-02-15 23:25:43 +02:00
MrOtherGuy
c31f646230 Make fullscreen mode work 2020-01-14 21:15:15 +02:00
MrOtherGuy
bfb52b313d Make window margins win10 specific 2019-11-28 12:00:59 +02:00
MrOtherGuy
02fcff95cb Add z-index:1 for elements that need to overlap web-content 2019-11-14 17:48:20 +02:00
MrOtherGuy
993d439c57 Remove child combinators between :root and toolbox & browser 2019-11-11 17:23:33 +02:00
MrOtherGuy
1ad29c1ada Add display:block to every absolutely positioned element 2019-09-28 12:18:59 +03:00
MrOtherGuy
50f994dcd6 Set toolbox position, transform and opacity to default when customizing 2019-09-14 02:26:42 +03:00
MrOtherGuy
0be1e46ced don't use variables since only margin will change 2019-06-12 19:08:13 +03:00
MrOtherGuy
da6df22d8b Make toolbox margins OS scaling dependent 2019-06-12 13:33:11 +03:00
MrOtherGuy
e3bf0f8ef7 remove reserved 6px space in windowed mode 2019-06-03 17:26:32 +03:00
MrOtherGuy
88193256df new file 2019-06-02 19:08:43 +03:00