From 7bb8672d11d475c13696ed68e15ab15e639c7c0a Mon Sep 17 00:00:00 2001 From: Karson Date: Mon, 23 Mar 2026 21:15:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化通用搜索高亮显示 --- public/assets/css/backend.css | 48 ++++++++++++++---------- public/assets/less/backend.less | 65 ++++++++++++++++++++------------- 2 files changed, 67 insertions(+), 46 deletions(-) diff --git a/public/assets/css/backend.css b/public/assets/css/backend.css index 4dc43881..e8244e97 100644 --- a/public/assets/css/backend.css +++ b/public/assets/css/backend.css @@ -1347,26 +1347,26 @@ table.table-nowrap thead > tr > th { .fixed-table-toolbar .toolbar .btn { min-height: 33px; } - .fixed-table-toolbar .toolbar a.btn-refresh, - .fixed-table-toolbar .toolbar a.btn-del, - .fixed-table-toolbar .toolbar a.btn-add, - .fixed-table-toolbar .toolbar a.btn-edit, - .fixed-table-toolbar .toolbar a.btn-import, + .fixed-table-toolbar .toolbar > a.btn-refresh, + .fixed-table-toolbar .toolbar > a.btn-del, + .fixed-table-toolbar .toolbar > a.btn-add, + .fixed-table-toolbar .toolbar > a.btn-edit, + .fixed-table-toolbar .toolbar > a.btn-import, .fixed-table-toolbar .toolbar a.btn-more, - .fixed-table-toolbar .toolbar a.btn-recyclebin, - .fixed-table-toolbar .toolbar .btn-mini-xs, - .fixed-table-toolbar .toolbar .btn-multi { + .fixed-table-toolbar .toolbar > a.btn-recyclebin, + .fixed-table-toolbar .toolbar > .btn-mini-xs, + .fixed-table-toolbar .toolbar > .btn-multi:not([data-action=destroy]) { font-size: 0; } - .fixed-table-toolbar .toolbar a.btn-refresh .fa, - .fixed-table-toolbar .toolbar a.btn-del .fa, - .fixed-table-toolbar .toolbar a.btn-add .fa, - .fixed-table-toolbar .toolbar a.btn-edit .fa, - .fixed-table-toolbar .toolbar a.btn-import .fa, - .fixed-table-toolbar .toolbar a.btn-more .fa, - .fixed-table-toolbar .toolbar a.btn-recyclebin .fa, - .fixed-table-toolbar .toolbar .btn-mini-xs .fa, - .fixed-table-toolbar .toolbar .btn-multi .fa { + .fixed-table-toolbar .toolbar > a.btn-refresh > .fa, + .fixed-table-toolbar .toolbar > a.btn-del > .fa, + .fixed-table-toolbar .toolbar > a.btn-add > .fa, + .fixed-table-toolbar .toolbar > a.btn-edit > .fa, + .fixed-table-toolbar .toolbar > a.btn-import > .fa, + .fixed-table-toolbar .toolbar a.btn-more > .fa, + .fixed-table-toolbar .toolbar > a.btn-recyclebin > .fa, + .fixed-table-toolbar .toolbar > .btn-mini-xs > .fa, + .fixed-table-toolbar .toolbar > .btn-multi:not([data-action=destroy]) > .fa { font-size: initial; } .fixed-table-toolbar .search { @@ -1644,9 +1644,7 @@ table.table-nowrap thead > tr > th { } .btn-commonsearch.searching, .btn-commonsearch.searching:focus { - background: #444c69; - color: #fff; - border-color: #444c69; + color: #4e73df; } .btn-commonsearch.searching:hover, .btn-commonsearch.searching:active, @@ -1655,6 +1653,16 @@ table.table-nowrap thead > tr > th { color: #fff; outline: none; } +.btn-commonsearch.searching:after { + content: " "; + position: absolute; + right: 4px; + bottom: 8px; + background: #4e73df; + border-radius: 50%; + height: 4px; + width: 4px; +} .btn-switcher { margin-top: 5px; display: inline-block; diff --git a/public/assets/less/backend.less b/public/assets/less/backend.less index 076b4552..c8a5b8f4 100755 --- a/public/assets/less/backend.less +++ b/public/assets/less/backend.less @@ -844,31 +844,31 @@ form.form-horizontal .control-label { [data-vertical="true"] { - .jstree-leaf:not(:first-child) { - float: left; - background: none; - margin-left: 0; - min-width: 80px; - clear: none; - } + .jstree-leaf:not(:first-child) { + float: left; + background: none; + margin-left: 0; + min-width: 80px; + clear: none; + } - .jstree-leaf { - float: left; - background: none; - margin-left: 0; - padding-left: 24px; - min-width: 80px; - clear: none; - color: #999; - } + .jstree-leaf { + float: left; + background: none; + margin-left: 0; + padding-left: 24px; + min-width: 80px; + clear: none; + color: #999; + } - .jstree-leaf > .jstree-icon, .jstree-leaf .jstree-themeicon { - display: none; - } + .jstree-leaf > .jstree-icon, .jstree-leaf .jstree-themeicon { + display: none; + } - .jstree-last { + .jstree-last { - } + } } @@ -1359,13 +1359,14 @@ table.table-nowrap { min-height: @input-min-height; } - a.btn-refresh, a.btn-del, a.btn-add, a.btn-edit, a.btn-import, a.btn-more, a.btn-recyclebin, .btn-mini-xs, .btn-multi { + > a.btn-refresh, > a.btn-del, > a.btn-add, > a.btn-edit, > a.btn-import, a.btn-more, > a.btn-recyclebin, > .btn-mini-xs, > .btn-multi:not([data-action=destroy]) { font-size: 0; - .fa { + > .fa { font-size: initial; } } + } .search { @@ -1701,9 +1702,10 @@ table.table-nowrap { &.searching { &, &:focus { - background: @component-active-bg; - color: @component-active-color; - border-color: @component-active-bg; + //background: @component-active-bg; + //color: @component-active-color; + //border-color: @component-active-bg; + color: #4e73df; } &:hover, &:active, &:active:hover { @@ -1711,6 +1713,17 @@ table.table-nowrap { color: @component-active-color; outline: none; } + + &:after { + content: " "; + position: absolute; + right: 4px; + bottom: 8px; + background: #4e73df; + border-radius: 50%; + height: 4px; + width: 4px; + } } }