From c5be5cb03accb8c3d9aee9d11129f85cc03df0ef Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Fri, 3 Jun 2022 10:21:21 +0900 Subject: [PATCH] Fix: Build - Fullscreen --- src/fullscreen/_overlap.scss | 15 +++++++++++++++ src/fullscreen/_show_bookmarkbar.css | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 src/fullscreen/_overlap.scss create mode 100644 src/fullscreen/_show_bookmarkbar.css diff --git a/src/fullscreen/_overlap.scss b/src/fullscreen/_overlap.scss new file mode 100644 index 0000000..387c057 --- /dev/null +++ b/src/fullscreen/_overlap.scss @@ -0,0 +1,15 @@ +:root[sizemode="fullscreen"] #navigator-toolbox { + position: fixed !important; /* Needed for content to take up entire height */ + z-index: 1000 !important; /* Puts the UI above the content */ +} + +:root[sizemode="fullscreen"] :-moz-any(#navigator-toolbox, #titlebar, #nav-bar, #PersonalToolbar) { + width: 100%; /* Makes the UI take up the entire width */ +} + +@include OS($linux) { + /* Fix transparent backgorund */ + :root[tabsintitlebar][sizemode="fullscreen"] #TabsToolbar:not(:-moz-lwtheme) { + appearance: auto !important; + } +} diff --git a/src/fullscreen/_show_bookmarkbar.css b/src/fullscreen/_show_bookmarkbar.css new file mode 100644 index 0000000..a91348e --- /dev/null +++ b/src/fullscreen/_show_bookmarkbar.css @@ -0,0 +1,4 @@ +:root:not([sizemode="fullscreen"]) #PersonalToolbar[initialized="true"]:not([collapsed="true"]), +:root[sizemode="fullscreen"] #PersonalToolbar[initialized="true"] { + visibility: unset !important; /* Makes the bookmarks toolbar visible if enabled */ +}