Commit graph

791 commits

Author SHA1 Message Date
MrOtherGuy
4918f31c82 Improvements for centered_tab_label.css
This patch makes tab label work better when label has rtl text.
Secondary tab label (like "muted" etc.) is now also centered.
2022-12-08 16:19:36 +02:00
MrOtherGuy
a25da9fe49 multi-row_tabs_below_content.css: make arrowscrollbox use display:inline 2022-11-28 23:41:25 +02:00
AMS777
a0a477cebf
Fix empty tab rows on Firefox 107 (#232)
On Firefox 107, the tab bar displays all the tab rows, even if they are empty because there are few tabs.
This change removes the empty tab rows and restores the right behavior, only displaying tab rows when there are too many tabs to fit in one row.
2022-11-28 23:38:01 +02:00
MrOtherGuy
9a66b9e88f status_inside_urlbar: pack statuspanel label to center when asked to
Loading status label is rendered as pseudo-element in Firefox 109 and
this change is necessary to correctly center the label in that case.
2022-11-28 09:01:48 +02:00
MrOtherGuy
6fa2a9beb4 various improvements for combined_tabs_and_main_toolbars.css
This patch makes focused urlbar overlay other toolbar instead of being
constrained to urlbar-container width. This also disables that weird
bookmarks toolbar margin by default, but leaves code for Firefox <108
compatibility. Unpinned tabs are now visible by default but that can be
reversed by setting a pref. And lastly this disables tabs
arrowwscrollbox css containment which would cause the style to not work
in Firefox 108.
2022-11-21 08:29:41 +02:00
MrOtherGuy
965eefc00a Various improvements to multi-row_tabs_below_content.css
This patch makes the style behave better on linux as well as make
fullscreen mode work better. It also fixes an issue where invisible
menubar would prevent window from being draggable from flexible-space
placed to the left of urlbar.
2022-11-20 14:13:28 +02:00
MrOtherGuy
d10c346554 Don't restyle tabs-newtab-button, and instead just hide it
The button will not show up anyway so this just simplifies things.
2022-11-19 12:47:15 +02:00
MrOtherGuy
62f0d91975 remove remaining --lwt-frame variables from the codebase 2022-11-19 10:22:05 +02:00
MrOtherGuy
add8f8c1eb Prevent accidentally setting width for places toolbar drop indicator
This patch fixes an issue where top row of bookmarks toolbar can become
unusable after draggin a bookmark
2022-11-19 10:14:15 +02:00
MrOtherGuy
cf3d865b7d create vertical_urlbar_one-off_items.css 2022-11-17 11:32:38 +02:00
MrOtherGuy
b08805185f autohide_sidebar: create sidebar-header padding using pseudo-elements.
This works around a layout issue where header inline-padding prevents it
from collapsing to zero-width in fullscreen mode.
2022-11-16 09:25:07 +02:00
MrOtherGuy
bf81ba74fb remove findbar-container explicit height and close-button explicit width 2022-11-15 23:38:42 +02:00
MrOtherGuy
8d17fb1d64 multi-row bookmarks: make items in the toolbar visible
This is just in case that Firefox logic would hide them on some
condition even if they now can fit the toolbar.
2022-11-08 05:35:16 +02:00
MrOtherGuy
9d081f27b5 Make hide_tabs_with_one_tab_w_window... compatible with tabs_on_bottom 2022-10-23 18:06:02 +03:00
MrOtherGuy
2ed7f4c60c Also hide labeled private-browsing indicator when not needed 2022-10-23 17:49:59 +03:00
MrOtherGuy
5be0331715 Make hide_tabs_with_one_tab_w_window_controls work in Fx108 2022-10-23 17:36:54 +03:00
MrOtherGuy
9d90aabbc0 vertical-bookmarks-toolbar: Fix fullscreen mode and make it work in 107+ 2022-10-22 12:17:17 +03:00
MrOtherGuy
53eb59e017 curved_tabs: Fix curve placement on Firefox 107 2022-10-21 12:06:45 +03:00
MrOtherGuy
6192ac3b64 Make centered_top_statuspanel work with 107 2022-10-19 23:36:52 +03: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
22a42117d0 status-inside-urlbar: add background-color to .browserStack
This opaque background allows us to draw statuspanel behind it.
Without this patch, the statupanel could be shown on tabs
that don't yet have associated <browser> such as when restoring
a tab after startup.
2022-10-15 18:36:04 +03:00
MrOtherGuy
8de1ddc044 Use padding instead of margin to create space inside nav-bar
This makes Firefox behave more sane for pushing/removing items from
overflow menu.
2022-10-10 19:28:55 +03:00
MrOtherGuy
21d9fc5403 Merge branch 'master' of https://github.com/MrOtherGuy/firefox-csshacks 2022-10-08 16:35:37 +03:00
MrOtherGuy
53526aa76e autohide-sidebar: Apply width transitions to sidebar-header 2022-10-08 16:33:43 +03:00
GodieGun
4653c3ee7e
Update vertical_bookmarks_toolbar.css (#214)
This change makes compatible with pop-up windows. I use extensions that creates new pup-up windows and looks bad with that space in blank. this affects to other windows than don't use tabs.
2022-10-08 08:41:17 +03:00
MS_Y
a435e7507f
Fix: Show #tabs-newtab-button at overflow (#212) 2022-10-07 16:45:09 +03:00
Anarky
cebde512b5
Create newtab_button_always_on_hover.css (#208)
This is based on tab_close_button_always_on_hover.css

Co-authored-by: Anarky <ghostanarky+aur@gmail.com>
2022-10-04 14:45:03 +03:00
MrOtherGuy
f12eed50a9 Don't restyle separators unless they are actually inside PersonalToolbar
Someone might use this style to make the bookmarks toolbar itself
vertical housing buttons etc. but have bookmarks-toolbar-items in some
other horizontal toolbar.
2022-10-04 08:54:38 +03:00
MrOtherGuy
976df50a01 Make separators show up with vertical bookmarks toolbar 2022-10-04 08:45:42 +03:00
MrOtherGuy
2f270ca0c0 fake-statusbars: Make the styles work with new statuspanel DOM 2022-09-30 16:50:25 +03:00
MrOtherGuy
855b1f8a95 status_inside_urlbar: Update styling to work with Fx106 2022-09-10 19:11:23 +03:00
MrOtherGuy
3f5bc73e69 Remove dependence on --menu-x variables
Firefox 105 won't have these anymore as per
https://bugzilla.mozilla.org/show_bug.cgi?id=1782858
2022-08-31 15:58:48 +03:00
MrOtherGuy
16267fe5ef Add header to shrinking_pinned_tabs & 40px max-width for normal density 2022-08-10 11:15:08 +03:00
sonofevil
57edf88b16
Create shrinking_pinned_tabs.css (#201) 2022-08-10 11:09:48 +03:00
MrOtherGuy
a9e58dcf21 Use [checked="true"] in menuitem selectors
This was only using [checked] to check if the item is checked, but the
attribute can also be "false".
2022-08-07 18:11:10 +03:00
MrOtherGuy
6c7abad64e update custom_menupopup_check_icons.css to work well in Firefox 103
This has only been tested on Windows10 with non-native menus.
2022-08-07 16:33:10 +03:00
MrOtherGuy
7425885cb1 create reload_button_in_urlbar.css 2022-07-22 18:35:46 +03:00
MrOtherGuy
0d1ec1e56f remove outline from .tab-background 2022-07-07 17:45:15 +03:00
MrOtherGuy
6d16966886 create tab_loading_progress_bar.css 2022-06-25 07:09:46 +03:00
MrOtherGuy
0f23af615e add -moz-context-properties unconditionally to fallback window controls
Without it, the icons won't show up if one uses theme with background
image
2022-06-18 11:03:52 +03:00
MrOtherGuy
a49066b2f4 sharp_tabs: draw tabs-newtab-button icon as background-image
This is done because we want the button background to fill toolbar
height, but we don't actually know how tall the toolbar is and thus
working with list-style-image + padding is going to produce stretced
icon on some systems.
2022-06-17 16:26:00 +03:00
MrOtherGuy
8dc4e1c795 Apply 2px rounding only to buttons in tabs customization target
This allows dropping extra id selector from tabs-newtab-button
2022-06-17 05:21:54 +03:00
MrOtherGuy
8899a560d4 Add some workaround-ish rules for linux use 2022-06-07 20:17:17 +03:00
MrOtherGuy
f036a4ca23 create fake_tab_tooltip.css 2022-06-05 07:31:01 +03:00
MrOtherGuy
5aa1d1ec01 use overflow:hidden instead of -moz-hidden-unscrollable for window title 2022-06-01 08:12:52 +03: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
4daf1969be modify tab-label line-height to prevent tab height increase w large font 2022-06-01 00:18:02 +03:00
MrOtherGuy
d8f027a088 Set menubar margins only when native titlebar is disabled
If native titlebar is enabled the rules would move tabs and navbar
partially below native titlebar. Those rules are not needed anyway
with native titlebar since window controls are in native titlebar.
2022-05-15 06:20:05 +03:00
MrOtherGuy
2f792166c3 curved_tabs: Improve style compatibility with theme images
This patch makes outward curves use a sliver of toolbox background-image
to mask some artifacts that are results of several semi-transparent
surfaces. This also changes the curve svg image a bit to makes
curve-border transitions more smooth.
2022-05-08 15:58:27 +03:00
MrOtherGuy
0e2727345b inherit sidebar background color
inherited background is safer than using --toolbar-bgcolor which is very
likely to have transparency if theme has images.
2022-05-07 20:46:15 +03:00
MrOtherGuy
7d083242c2 Update private-browsing icon source 2022-05-07 13:58:59 +03:00
MrOtherGuy
df85873f33 Various improvements to multi-row_tabs_below_content
This patch makes it easier to change some settings, as well as adds an
optional behavior to show static menubar via custom pref.
2022-05-06 10:16:49 +03:00
MrOtherGuy
961c40c34b Add some missing variables 2022-04-19 11:02:26 +03:00
MrOtherGuy
4542a03f38 Add comment to notify about non_pinned_sharp_tabs being a requirement 2022-04-19 11:01:44 +03:00
MrOtherGuy
80d6887a09 tabs_animated_gradient_border: rewrite style
This patch makes the style work together with non_floating sharp tabs
which is now a requirement for this style, because this style won't make
sense with proton-like tabs.
2022-04-19 10:55:58 +03:00
MrOtherGuy
fa620a9730 classic_grid_main_menu_popup: rewrite for Firefox 99 style 2022-04-18 15:33:08 +03:00
MrOtherGuy
a383071f10 remove legacy .tabbrowser-arrowscrollbox selectors 2022-04-17 15:56:22 +03:00
MrOtherGuy
0c81924f74 add few compatibility rules for multi-row_tabs 2022-04-17 15:54:07 +03:00
MrOtherGuy
4a263d029a add few multi-row_tabs compatibility rules
Empty tabs toolbar won't collapse otherwise because of how flexbox
treats visibility:collapse
2022-04-17 15:44:57 +03:00
MrOtherGuy
c5eb21c3dd reduce selector specificity when setting tab height 2022-04-17 15:26:22 +03:00
MrOtherGuy
db4d9f86c5 Use --uc-titlebar-padding in extra Windows toolbox padding.
This makes the style compatible with tabs_on_bottom :)
2022-04-11 16:19:37 +03:00
MrOtherGuy
3241bdbfe1 autohide_toolbox.css: adjust toolbox margins on hidpi screens 2022-04-08 20:31:56 +03:00
MrOtherGuy
be838e98f3 remove remaining --proton-* variables. fixes #111 2022-04-06 11:40:43 +03:00
MrOtherGuy
6542097da9 remove ancient titlebar-placeholder selectors 2022-04-06 10:02:09 +03:00
MrOtherGuy
5cf3467964 Handle fullscreen and private-browsing mode styling better
This patch should mostly fix issues described in #149
2022-04-06 09:58:22 +03:00
MrOtherGuy
23e4e0a377 rename urlbar_connection_type_colors.css to *type_text_colors.css 2022-04-03 21:02:42 +03:00
MrOtherGuy
9276c9f7fb create urlbar_connection_type_background_colors.css 2022-04-03 21:00:50 +03:00
MrOtherGuy
8d25156001 curved-tabs: move tabs away from the window edge with pinned tabs
With positioninnedtabs, the left-most tab might end up outside of the
window under some circumstances (for example when menubar is enabled).
This patch moves tabbrowser-tabs away from the window edge equal to the
curve-size and makes the pre-tabs spacer a bit narrower to make the
space not look too large when the spacer is shown.
2022-04-02 14:49:03 +03:00
MrOtherGuy
b9e140dbbd Rewrite combined_favicon_and_tab_close_button.css
This rewrites the style to achieve compatibility with
inline_tab_audio_icons.css. compatibility only requires few small
non-affecting extra rules in inline_tab_audio_icons. This patch also
makes combined_favicon_and_tab_close_button work with themes where tab
background is not full opaque which is a nice bonus :)
2022-03-29 17:14:40 +03:00
MrOtherGuy
74d5d67e71 Remove use of :-moz-lwtheme-{bright,dark}
This pseudo-class won't be supported in Firefox 100,
and we can just use :root[lwthemetextcolor="bright"] instead.
2022-03-27 16:19:56 +03:00
MrOtherGuy
82444fcf07 deprecate theme_aware_modal-prompts.css
These are already styled based on theme in recent Firefox versions
2022-03-27 16:18:11 +03:00
MrOtherGuy
ea17cb7f1f Show window global notificationbox in same order as tab modal 2022-03-27 15:31:59 +03:00
MS_Y
d7f813e96b
Tabs on bottom menubar on top patch at non activated menubar (#182) 2022-03-27 14:26:36 +03:00
MrOtherGuy
5b67ff233a Make tabs_on_bottom and *_menubar_on_top_patch compatible again
This patch makes it so that menubar window controls are to be shown
when the patch file is applied.
2022-03-25 10:39:13 +02:00
MrOtherGuy
44fa2f0f0d Merge branch 'master' of https://github.com/MrOtherGuy/firefox-csshacks 2022-03-25 10:29:10 +02:00
MS_Y
10515e618c
Tabs on bottom at menubar (#181) 2022-03-25 10:28:59 +02:00
MrOtherGuy
809d3e0eb9 Don't set padding to .titlebar-button elements
This fixes odd menubar titlebar button sizing on linux
2022-03-25 09:55:14 +02:00
MrOtherGuy
5f30eee1a3 Don't collapse tabbrowser-tabs but just make it inivisible
Collapsing disables alltabs button. This patch additionally adds more
rules for aligning alltabs-button better under various circumstances.
2022-03-23 11:12:31 +02:00
MrOtherGuy
4e66bf4d64 Don't remove window control placeholder space in fullscreen mode 2022-03-23 10:16:10 +02:00
MrOtherGuy
1d415561a2 Handle fullscreen window control placeholder size on linux 2022-03-23 10:15:37 +02:00
MS_Y
b046ab7119
Window control placeholder consider titlebar mode's fullscreen (#180) 2022-03-23 09:59:00 +02:00
MS_Y
1f2e984853
centered tab label vertical align to center (#179) 2022-03-21 07:28:26 +02:00
MrOtherGuy
1a67388c7f Use content property to set icon source 2022-03-20 07:01:52 +02:00
MrOtherGuy
19c1452193 toolbars_below_content: make it able to drag the window from menubar
Dragging the window is still disabled when using only
autohide_menubar.css. But if you use both then dragging menubar should
work.
2022-03-19 08:34:48 +02:00
MrOtherGuy
0bc77cc515 autohide_menubar.css: Increase the size of menubar triggering area
The window frame area (at least on Win10) is wider in Fx98 which
prevents menubar items from showing up. This patch simply increases the
size by few pixels.
2022-03-01 11:41:38 +02:00
MrOtherGuy
ceb88176a7 make buttons inside urlbar clickable 2022-02-17 05:13:44 +02:00
MrOtherGuy
9272f36cd4 create drag_window_from_urlbar.css 2022-02-16 16:11:05 +02:00
MrOtherGuy
a5ac138086 fix typo in platform media queries 2022-02-13 21:26:15 +02:00
MrOtherGuy
71fe0e87c7 add basic support for -moz-platform media query 2022-02-12 09:20:20 +02:00
MrOtherGuy
1621ecc3f4 set visibility:hidden for items in bookmarks toolbar when collapsed 2022-02-06 09:36:12 +02:00
MrOtherGuy
f0caa6d5ae create window_control_force_linux_system_style.css 2022-02-03 15:57:45 +02:00
MrOtherGuy
fd644ff857 replace --tabs-border-color with --lwt-tabs-border-color 2022-01-22 06:43:57 +02:00
MrOtherGuy
19fa8eb39d Update styles to use --lwt-tab-line-color variable 2022-01-12 15:16:47 +02:00
MrOtherGuy
ec17a82ede remove top border from .tab-background 2022-01-12 08:21:27 +02:00
MrOtherGuy
fea6e47687 curved-tabs: decrease stroke-opacity of the border
This patch also adds some comments for svg.context-properties.content.enabled
which is a requirement as well as make default theme have separate
background-color for curves.
2022-01-06 17:36:44 +02:00
MrOtherGuy
1fe5d315c0 Make windows specific extra top margin only apply with [tabsintitlebar] 2022-01-02 09:37:20 +02:00
MrOtherGuy
8850c63fc9 Add optional section to show the button in top left corner of the window
This patch also updates the missing down arrow icon as well as adds some
spacing to the button like in the original.
2022-01-02 09:34:56 +02:00
MrOtherGuy
ee89221ad0 create multi-row_tabs_separate_pinned_row_patch.css 2021-12-31 08:27:33 +02:00
MrOtherGuy
b9d2dfd2f8 use placeholder image if tab doesn't have icon 2021-12-20 18:41:55 +02:00
MrOtherGuy
fcec71b08a ovrelay-scrollbars: use currentcolor instead of black for thumb
This makes the thumb visible on pages with dark background - at least
most of the time.
2021-12-12 08:59:50 +02:00