From e9d4a982c0a7c3fabcaff379f1ba1c4b34db4913 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Mon, 3 Jun 2024 06:19:41 +0200 Subject: [PATCH] Small tweaks to (focus) element styling --- public/css/popup.css | 9 +---- public/css/st-tailwind.css | 8 ++++ public/css/tags.css | 8 ++-- public/index.html | 10 ++--- public/scripts/keyboard.js | 12 ++++-- public/style.css | 75 ++++++++++++++++++++++++-------------- 6 files changed, 77 insertions(+), 45 deletions(-) diff --git a/public/css/popup.css b/public/css/popup.css index d5cf0a626..de9a332e2 100644 --- a/public/css/popup.css +++ b/public/css/popup.css @@ -29,6 +29,7 @@ dialog { overflow: hidden; width: 100%; height: 100%; + padding: 1px; } .popup .popup_text { @@ -113,12 +114,6 @@ dialog { } .menu_button.menu_button_custom { - /** Custom buttons should not scale to smallest size, otherwise they will always break to multiline */ + /* Custom buttons should not scale to smallest size, otherwise they will always break to multiline */ width: unset; } - -dialog.popup .menu_button:focus, -dialog input[type='checkbox']:not(#nav-toggle):not(#rm_button_panel_pin):not(#lm_button_panel_pin):not(#WI_panel_pin):focus { - /** For dialogs, mimic the outline of keyboard navigation for all button focus */ - outline: 1px solid white; -} diff --git a/public/css/st-tailwind.css b/public/css/st-tailwind.css index 8532a90df..fa39ce09d 100644 --- a/public/css/st-tailwind.css +++ b/public/css/st-tailwind.css @@ -336,6 +336,14 @@ padding: 0; } +.padding1 { + padding: 0; +} + +.padding2 { + padding: 0; +} + .padding5 { padding: 5px; } diff --git a/public/css/tags.css b/public/css/tags.css index 1912a541b..b58aea035 100644 --- a/public/css/tags.css +++ b/public/css/tags.css @@ -14,7 +14,7 @@ display: flex; flex-direction: row; align-items: center; - gap: 10px; + gap: 6px; margin-bottom: 5px; } @@ -39,7 +39,7 @@ } .tag_delete { - padding-right: 0; + padding: 2px 4px; color: var(--SmartThemeBodyColor) !important; } @@ -162,7 +162,8 @@ transition: opacity 200ms; } -.rm_tag_filter .tag:hover { +.rm_tag_filter .tag:hover, +.rm_tag_filter .tag:focus { opacity: 1; filter: brightness(1); } @@ -206,6 +207,7 @@ } .tag_as_folder:hover, +.tag_as_folder:focus, .tag_as_folder.flash { filter: brightness(150%) saturate(0.6) !important; } diff --git a/public/index.html b/public/index.html index e77349231..510aea077 100644 --- a/public/index.html +++ b/public/index.html @@ -74,8 +74,8 @@
@@ -4472,8 +4472,8 @@
@@ -4487,7 +4487,7 @@
-

+