summaryrefslogtreecommitdiff
path: root/public/stylesheets/admin.css
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-12 13:58:36 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-12 13:58:36 +0200
commit19e0ee821d5b2b6d3397a81411f4f3a4cbd2fa83 (patch)
tree952551d861bb8348d436367e8f048c5f85853cf5 /public/stylesheets/admin.css
parent45bf65d04d046c0ea4a1150096b2a9b846d6c0b8 (diff)
Unify the four field-level pickers, fix search visibility
menu_items/parent_search/move_to_search/event_search each duplicated their own debounce-free AJAX call and result rendering. Replaced with one shared initSearchPicker, taking each picker's distinctive behavior (parent_search's live path preview, event_search's title hint) as a callback rather than a whole reimplementation. Adds a real debounce with an out-of-order-response guard -- none of the four had either before. admin_search (the Alt+F top-bar search) now shares the same function via its own url/isActive/header options, gaining the same guard and fixing an inconsistency of its own (it previously always slid its panel open, even on zero results). Each picker's results container gets its own id instead of sharing was ever supposed to be on screen at once, an assumption with no actual enforcement behind it. Styling moved from an id-pair (#menu_search_results, #search_results) to a shared .search_results class so a future picker never needs this file touched again. menu_search and the admin top-bar search now call Node.editor_search instead of the public, head-only Node.search -- both are admin-only, authenticated views, and had no reason to inherit the public search's "can't find a draft" limitation. The always-ignored :per_page => 1000 on the latter is gone too; Node.search's second argument was never read by the method at all. Also removed a stale #metadata a { text-transform: lowercase } rule, found while verifying the above -- written for the pre-subnav-removal expand-toggle, which no longer exists; it had been silently lowercasing nodes#edit's own, unrelated #metadata div (including move_to_search's results) by id coincidence ever since. #main_navigation and #overview_toggle intentionally left capitalized rather than special-cased -- both belong to the nav bar already slated to shrink to three icons, not worth polishing on the way out.
Diffstat (limited to 'public/stylesheets/admin.css')
-rw-r--r--public/stylesheets/admin.css13
1 files changed, 4 insertions, 9 deletions
diff --git a/public/stylesheets/admin.css b/public/stylesheets/admin.css
index 5c1e489..da31535 100644
--- a/public/stylesheets/admin.css
+++ b/public/stylesheets/admin.css
@@ -155,7 +155,6 @@ input[type=radio] {
155 padding-right: 5px; 155 padding-right: 5px;
156 padding-top: 1px; 156 padding-top: 1px;
157 padding-bottom: 1px; 157 padding-bottom: 1px;
158 text-transform: lowercase;
159} 158}
160 159
161#metadata a:hover { 160#metadata a:hover {
@@ -1023,22 +1022,19 @@ div#draft_list table td.actions a {
1023 font-size: 18px; 1022 font-size: 18px;
1024} 1023}
1025 1024
1026#menu_search_results p, 1025.search_results p {
1027#search_results p {
1028 margin: 0; 1026 margin: 0;
1029 padding: 4px 4px 0 4px; 1027 padding: 4px 4px 0 4px;
1030 border-bottom: 1px solid #e8e8e8; 1028 border-bottom: 1px solid #e8e8e8;
1031} 1029}
1032 1030
1033#menu_search_results p a, 1031.search_results p a {
1034#search_results p a {
1035 display: block; 1032 display: block;
1036 font-weight: bold; 1033 font-weight: bold;
1037 font-size: 0.95rem; 1034 font-size: 0.95rem;
1038} 1035}
1039 1036
1040#menu_search_results p span.result_path, 1037.search_results p span.result_path {
1041#search_results p span.result_path {
1042 display: block; 1038 display: block;
1043 margin-top: 2px; 1039 margin-top: 2px;
1044 font-size: 0.75rem; 1040 font-size: 0.75rem;
@@ -1047,8 +1043,7 @@ div#draft_list table td.actions a {
1047 padding-bottom: 4px; 1043 padding-bottom: 4px;
1048} 1044}
1049 1045
1050#menu_search_results p.search_more, 1046.search_results p.search_more {
1051#search_results p.search_more {
1052 margin: 0; 1047 margin: 0;
1053 padding: 6px 4px; 1048 padding: 6px 4px;
1054 font-size: 0.8rem; 1049 font-size: 0.8rem;