@@ -513,25 +513,37 @@ export default defineComponent({
513513.search-container {
514514 display : flex ;
515515 align-items : center ;
516- gap : 8 px ;
516+ gap : 0 ;
517517 width : 100% ;
518518 max-width : 450px ;
519+ border : 1px solid var (--color-border-2 );
520+ border-radius : 8px ;
521+ background : var (--color-bg-1 );
522+ padding : 4px ;
523+ box-shadow : 0 1px 4px rgba (0 , 0 , 0 , 0.05 );
524+ transition : all 0.2s ease ;
525+ }
526+
527+ .search-container :hover {
528+ border-color : var (--color-border-3 );
529+ box-shadow : 0 2px 8px rgba (0 , 0 , 0 , 0.1 );
519530}
520531
521532/* 搜索框样式 */
522533.search-container :deep(.arco-input-search ) {
523534 flex : 1 ;
524- border-radius : 8 px ;
525- background : var ( --color-bg-1 ) ;
526- border : 1 px solid var ( --color-border-2 ) ;
527- box-shadow : 0 1 px 4 px rgba ( 0 , 0 , 0 , 0.05 ) ;
535+ border-radius : 4 px ;
536+ background : transparent ;
537+ border : none ;
538+ box-shadow : none ;
528539 transition : all 0.2s ease ;
529540 cursor : pointer ;
530541}
531542
532543.search-container :deep(.arco-input-search :hover ) {
533- border-color : var (--color-border-3 );
534- box-shadow : 0 2px 8px rgba (0 , 0 , 0 , 0.1 );
544+ background : transparent ;
545+ border : none ;
546+ box-shadow : none ;
535547}
536548
537549/* 聚合搜索页面时的搜索框样式 */
@@ -552,59 +564,66 @@ export default defineComponent({
552564
553565/* 搜索设置按钮样式 */
554566.search-settings-btn {
555- width : 36 px !important ;
556- height : 36 px !important ;
557- border-radius : 8 px !important ;
558- border : 1 px solid var ( --color-border-2 ) !important ;
559- background : var ( --color-bg-2 ) !important ;
567+ width : 32 px !important ;
568+ height : 32 px !important ;
569+ border-radius : 4 px !important ;
570+ border : none !important ;
571+ background : transparent !important ;
560572 color : var (--color-text-2 ) !important ;
561573 transition : all 0.2s ease !important ;
562574 flex-shrink : 0 ;
575+ margin-left : 4px ;
563576}
564577
565578.search-settings-btn :hover {
566- background : var (--color-fill-3 ) !important ;
567- border-color : var ( --color-border-3 ) !important ;
579+ background : var (--color-fill-2 ) !important ;
580+ border : none !important ;
568581 color : var (--color-text-1 ) !important ;
569- transform : translateY ( -1 px ) ;
570- box-shadow : 0 2 px 8 px rgba ( 0 , 0 , 0 , 0.1 ) !important ;
582+ transform : none ;
583+ box-shadow : none !important ;
571584}
572585
573586.search-settings-btn :active {
574- transform : translateY ( 0 ) !important ;
575- background : var (--color-fill-4 ) !important ;
587+ transform : none !important ;
588+ background : var (--color-fill-3 ) !important ;
576589}
577590
578591/* 关闭搜索按钮样式 */
579592.close-search-btn {
580- width : 36 px !important ;
581- height : 36 px !important ;
582- border-radius : 8 px !important ;
583- border : 1 px solid var ( --color-border-2 ) !important ;
584- background : var ( --color-bg-2 ) !important ;
593+ width : 32 px !important ;
594+ height : 32 px !important ;
595+ border-radius : 4 px !important ;
596+ border : none !important ;
597+ background : transparent !important ;
585598 color : var (--color-text-2 ) !important ;
586599 transition : all 0.2s ease !important ;
587600 flex-shrink : 0 ;
601+ margin-left : 4px ;
588602}
589603
590604.close-search-btn :hover {
591605 background : var (--color-danger-light-1 ) !important ;
592- border-color : var ( --color-danger-light-3 ) !important ;
606+ border : none !important ;
593607 color : var (--color-danger-6 ) !important ;
594- transform : translateY ( -1 px ) ;
595- box-shadow : 0 2 px 8 px rgba ( 245 , 63 , 63 , 0.15 ) !important ;
608+ transform : none ;
609+ box-shadow : none !important ;
596610}
597611
598612.close-search-btn :active {
599- transform : translateY ( 0 ) !important ;
613+ transform : none !important ;
600614 background : var (--color-danger-light-2 ) !important ;
601615}
602616
603- .search-container :deep( .arco-input-search : focus-within) {
617+ .search-container : focus-within {
604618 border-color : var (--color-primary-6 );
605619 box-shadow : 0 0 0 2px var (--color-primary-1 );
606620}
607621
622+ .search-container :deep(.arco-input-search :focus-within ) {
623+ border : none ;
624+ box-shadow : none ;
625+ }
626+
608627.search-container :deep(.arco-input-wrapper ) {
609628 border-radius : 8px ;
610629 background : transparent ;
0 commit comments