summary refs log tree commit diff
path: root/.mozilla/firefox/hibiki.default
diff options
context:
space:
mode:
Diffstat (limited to '.mozilla/firefox/hibiki.default')
-rw-r--r--.mozilla/firefox/hibiki.default/chrome/Makefile14
-rw-r--r--.mozilla/firefox/hibiki.default/chrome/lepton.patch27
-rw-r--r--.mozilla/firefox/hibiki.default/chrome/userChrome.css165
-rw-r--r--.mozilla/firefox/hibiki.default/chrome/userContent.css22
-rwxr-xr-x.mozilla/firefox/hibiki.default/times.json1
5 files changed, 229 insertions, 0 deletions
diff --git a/.mozilla/firefox/hibiki.default/chrome/Makefile b/.mozilla/firefox/hibiki.default/chrome/Makefile
new file mode 100644
index 0000000..3e5c8d6
--- /dev/null
+++ b/.mozilla/firefox/hibiki.default/chrome/Makefile
@@ -0,0 +1,14 @@
+STYLE := proton-style
+
+all: fetch patch
+
+.PHONY: fetch
+fetch:
+	@echo Fetching lepton...
+	curl -sSL "https://github.com/black7375/Firefox-UI-Fix/raw/${STYLE}/css/leptonChrome.css" -o lepton.userChrome.css
+	curl -sSL "https://github.com/black7375/Firefox-UI-Fix/raw/${STYLE}/css/leptonContent.css" -o lepton.userContent.css
+
+.PHONY: patch
+patch:
+	@echo Patching lepton...
+	patch -p1 --reject-file - < lepton.patch
diff --git a/.mozilla/firefox/hibiki.default/chrome/lepton.patch b/.mozilla/firefox/hibiki.default/chrome/lepton.patch
new file mode 100644
index 0000000..d637994
--- /dev/null
+++ b/.mozilla/firefox/hibiki.default/chrome/lepton.patch
@@ -0,0 +1,27 @@
+--- ./lepton.userChrome.css	2022-05-24 23:50:09.178033305 +0200
++++ ./lepton.userChrome.css	2022-05-24 23:49:33.843031418 +0200
+@@ -24,7 +24,6 @@
+   /*= Darkmode - Color lighter =================================================*/
+   :root[lwtheme-mozlightdark][lwthemetextcolor="bright"],
+   :root[style*="--lwt-accent-color: rgb(28, 27, 34); --lwt-text-color: rgba(251, 251, 254);"] {
+-    --toolbar-bgcolor: rgba(43, 42, 51, 5) !important;
+     /* Original: rgba(43, 42, 51, 1) */
+   }
+ }
+@@ -3325,15 +3324,13 @@
+ @supports -moz-bool-pref("userChrome.padding.urlbar") {
+   :root:not([uidensity="touch"]) #urlbar-container,
+   :root:not([uidensity="touch"]) #search-container {
+-    padding-block: 3px !important;
+     /* Original: 4px */
+-    margin-inline: 5px !important;
+     /* Original: 5px */
+   }
+ 
+   :root:not([uidensity="compact"]) #urlbar-container,
+   :root:not([uidensity="compact"]) #search-container {
+-    padding-block: 2px !important;
++    /* noop */
+   }
+ 
+   /* spread menu */
diff --git a/.mozilla/firefox/hibiki.default/chrome/userChrome.css b/.mozilla/firefox/hibiki.default/chrome/userChrome.css
new file mode 100644
index 0000000..ff39340
--- /dev/null
+++ b/.mozilla/firefox/hibiki.default/chrome/userChrome.css
@@ -0,0 +1,165 @@
+/* vim: foldmethod=marker
+ */
+
+@import url(lepton.userChrome.css);
+
+@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
+@namespace html "http://www.w3.org/1999/xhtml";
+
+@media (-moz-toolbar-prefers-color-scheme: dark), (prefers-color-scheme: dark) {
+  :root {
+    --toolbar-non-lwt-bgcolor: #040405 !important;
+    --toolbar-bgcolor: #040405 !important;
+    --toolbar-color: #fffffb !important;
+  }
+}
+
+:root {
+  --urlbar-box-bgcolor: var(--toolbar-bgcolor) !important;
+  --urlbar-icon-fill-opacity: 0.8 !important;
+  --arrowpanel-background: var(--toolbar-bgcolor) !important;
+
+  --chrome-content-separator-color: #70649ab0 !important;
+}
+
+* {
+  font-family: Iosevka Aile, Sarasa Fixed J, monospace !important;
+}
+
+#titlebar {
+  display: none !important;
+}
+
+/* Makes urlbar and many other things sharper on the edges */
+:root {
+  --any-border-radius: 0;
+  --toolbarbutton-border-radius: var(--any-border-radius) !important;
+  --urlbar-icon-border-radius: var(--any-border-radius) !important;
+  --arrowpanel-menuitem-border-radius: var(--any-border-radius) !important;
+  --arrowpanel-border-radius: var(--any-border-radius) !important;
+}
+menupopup, panel {
+  --panel-padding: 0 !important;
+  --panel-border-radius: var(--any-border-radius) !important;
+}
+.dialogBox {
+  border-radius: var(--any-border-radius) !important;
+}
+
+/* Hide the back and forward buttons */
+#main-window :-moz-any(#back-button, #forward-button) {
+  display: none !important;
+}
+
+/* Disable statuspanel completely, remove this if you want to keep the statuspanel */
+statuspanel {
+  display: none !important;
+}
+
+/* = URLBAR STUFF =========================================================== */
+
+#urlbar-container {
+  --urlbar-container-height: 29px !important;
+  --urlbar-container-padding: 0px !important;
+  /* --lwt-toolbar-field-background-color: transparent !important; */
+}
+#urlbar {
+  --urlbar-height: var(--urlbar-container-height) !important;
+  --urlbar-toolbar-height: var(--urlbar-container-height) !important;
+}
+#urlbar-background {
+  border: none !important;
+}
+#urlbar:not([focused="true"]) > #urlbar-background {
+  background-color: transparent !important;
+}
+
+#urlbar-input-container {
+  padding-right: 5px !important;
+  border: none !important;
+}
+#urlbar-results,
+.urlbarView-row {
+  padding-top: 0px !important;
+  padding-bottom: 0px !important;
+}
+.search-one-offs {
+  padding-block: 0px !important;
+}
+.search-panel-one-offs {
+  padding-left: 7px !important;
+}
+.searchbar-engine-one-off-item {
+  margin: 0px !important;
+}
+
+
+/* hide the bookmark button */
+#star-button-box,
+#pageActionSeparator {
+  display: none !important;
+}
+
+/* make sure the lock icon aligns with the collapsed sidebar */
+#urlbar-container {
+  padding-block: 0 !important;
+  margin-left: 0 !important;
+}
+#tracking-protection-icon-container {
+	padding: 0 6px !important;
+}
+#identity-box {
+  margin-inline-start: var(--identity-box-margin-inline);
+}
+#tracking-protection-icon-container {
+  padding-left: 8px !important;
+}
+
+/* = SIDEBAR STUFF ========================================================== */
+
+/* sidebar that collapses when not hovered */
+:root {
+  --thin-tab-width: 31px;
+  --wide-tab-width: 280px;
+}
+#sidebar {
+  max-width: none !important;
+  min-width: 0 !important;
+  margin-left: 0 !important;
+}
+#sidebar-box+#sidebar-splitter {
+  display: none !important;
+}
+#sidebar-box {
+  overflow-x: hidden !important;
+  position: relative !important;
+  transition: all 40ms !important;
+  min-width: var(--thin-tab-width) !important;
+  max-width: var(--thin-tab-width) !important;
+
+  border-right: 1px solid var(--chrome-content-separator-color);
+
+  /* fix collapsed sidebar background-color */
+  background-color: var(--toolbar-bgcolor) !important;
+}
+
+#sidebar-box #sidebar,#sidebar-box:hover {
+  /* transition: all 10ms !important; */
+  min-width: var(--wide-tab-width) !important;
+  max-width: var(--wide-tab-width) !important;
+  z-index: 1;
+  opacity: 1.0 !important;
+}
+
+/* For right sidebar change 'margin-right' to 'margin-left' */
+#sidebar-box:hover {
+  margin-right: calc((var(--wide-tab-width) - var(--thin-tab-width))*-1) !important;
+}
+/* hide sidebar header */
+#sidebar-header {
+  visibility: collapse;
+}
+/* #sidebar-splitter styles the divider between the sidebar and the rest of the browser. */
+#sidebar-splitter {
+  /* display: none; */
+}
diff --git a/.mozilla/firefox/hibiki.default/chrome/userContent.css b/.mozilla/firefox/hibiki.default/chrome/userContent.css
new file mode 100644
index 0000000..f3b4e6a
--- /dev/null
+++ b/.mozilla/firefox/hibiki.default/chrome/userContent.css
@@ -0,0 +1,22 @@
+
+@import url(lepton.userContent.css);
+
+/* 
+   dark background in new tabs without a white flash (with tridactyl newtab)
+   @see: https://github.com/tridactyl/tridactyl/issues/2510
+*/
+:root {
+  --tridactyl-bg: #2a2a2e !important;
+  --tridactyl-fg: #b1b1b3 !important;
+}
+
+/*
+    set the background color of the new tab page (without tridactyl or with tridactyl without newtab)
+*/
+@-moz-document url-prefix(about:home), url-prefix(about:newtab), url-prefix(about:blank) {
+  @media (prefers-color-scheme: dark) {
+    body {
+      background: #1d1b19;
+    }
+  }
+}
diff --git a/.mozilla/firefox/hibiki.default/times.json b/.mozilla/firefox/hibiki.default/times.json
new file mode 100755
index 0000000..02bb2cf
--- /dev/null
+++ b/.mozilla/firefox/hibiki.default/times.json
@@ -0,0 +1 @@
+{"created":1669046288885,"firstUse":null}