add tweak 'show navigation items vertically' #37

This commit is contained in:
bmFtZQ 2022-06-22 23:49:53 +08:00
parent 9653c08d39
commit 63bff7a61c
2 changed files with 46 additions and 0 deletions

View file

@ -63,6 +63,11 @@ To disable a tweak, set the key to `false` or delete it, then restart the browse
|**NOTE: all functionality of this button can still be accessed from the app menu.**|
|`uc.tweak.fxa-button-as-private-indicator`|
|Show context menu navigation buttons (Back, Forward, Reload, etc.) horizontally|
|-|
|**NOTE: labels are only shown in the English language.**|
|`uc.tweak.horizontal-context-navigation`|
|remove tab separators|
|-|
|`uc.tweak.remove-tab-separators`|

View file

@ -202,3 +202,44 @@ browsing indicator) */
}
}
}
@media not (-moz-platform: macos) {
@supports -moz-bool-pref("uc.tweak.horizontal-context-navigation") {
#context-navigation {
flex-direction: column !important;
-moz-box-orient: vertical !important;
}
#context-navigation>.menuitem-iconic {
-moz-box-pack: start !important;
}
#context-navigation .menu-iconic-text {
display: -moz-box !important;
}
#context-navigation>#context-back .menu-iconic-text::before {
content: "Back" !important;
}
#context-navigation>#context-forward .menu-iconic-text::before {
content: "Forward" !important;
}
#context-navigation>#context-reload .menu-iconic-text::before {
content: "Reload" !important;
}
#context-navigation>#context-stop .menu-iconic-text::before {
content: "Stop" !important;
}
#context-navigation>#context-bookmarkpage .menu-iconic-text::before {
content: "Bookmark Page" !important;
}
#context-navigation>#context-bookmarkpage[starred] .menu-iconic-text::before {
content: "Edit Bookmark" !important;
}
}
}