From f54341a200f38da6569fa8a957b7b1005210991d Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 6 Mar 2024 16:54:21 +0100 Subject: [PATCH] Improve time tracking experience Increase click area for context menu. Apply visual button styling to context menu. --- home/programs/firefox.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/home/programs/firefox.nix b/home/programs/firefox.nix index 481502a..0d2ded2 100644 --- a/home/programs/firefox.nix +++ b/home/programs/firefox.nix @@ -330,8 +330,39 @@ in { name = "time-tracking"; id = 1; isDefault = false; + userChrome = builtins.readFile(./firefox/kioskLikeUserChrome.css); + userContent = '' + [data-bs-theme="dark"] { + --tblr-bg-forms: black !important; + } + + ::selection { + background-color: #218693; + } + + table.dataTable { + height: fit-content; + } + table.dataTable .actions { + padding: 0 !important; + } + table.dataTable .actions .dropdown { + height: 100%; + } + table.dataTable .actions .dropdown > a { + background-color: var(--tblr-primary); + border-radius: var(--tblr-border-radius); + color: var(--tblr-primary-fg) !important; + display: flex; + flex-direction: column; + height: 100% !important; + justify-content: center; + padding: 0.75rem; + } + ''; + settings = { "toolkit.legacyUserProfileCustomizations.stylesheets" = true; };