From 4a7a37e2007c806ac21fc4b4b2e8664b93017e5c Mon Sep 17 00:00:00 2001 From: veselcraft Date: Tue, 14 Dec 2021 16:36:02 +0300 Subject: [PATCH] Search: Full redesign Co-authored-by: Defenders08 <60748247+Defenders08@users.noreply.github.com> --- Web/Presenters/templates/Search/Index.xml | 31 ++++++---- Web/static/css/style.css | 73 +++++++++++++++++++++++ locales/en.strings | 2 + locales/ru.strings | 2 + 4 files changed, 96 insertions(+), 12 deletions(-) diff --git a/Web/Presenters/templates/Search/Index.xml b/Web/Presenters/templates/Search/Index.xml index b12c1c4e..3eaa281c 100644 --- a/Web/Presenters/templates/Search/Index.xml +++ b/Web/Presenters/templates/Search/Index.xml @@ -17,20 +17,27 @@ {/if} {/block} -{block tabs} -
- - - -
- -

- {tr("results", $count)} -

-{/block} - {* BEGIN ELEMENTS DESCRIPTION *} +{block tabs} +
+ + {_users} + +
+
+ + {_groups} + +
+ +
+ + + +
+{/block} + {block link|strip|stripHtml} {$x->getURL()} {/block} diff --git a/Web/static/css/style.css b/Web/static/css/style.css index b84e49ed..845543aa 100644 --- a/Web/static/css/style.css +++ b/Web/static/css/style.css @@ -1598,3 +1598,76 @@ body.scrolled .toTop:hover { margin: 5px; border: 1px solid #C0CAD5; } + +.header_search { + background: #f7f7f7; + width: 607px; + padding: 10px; + border-bottom: 1px solid #e1e1e1; +} + +.header_search_inputbt { + padding: 10px; + border-top: 1px solid #ebebeb; + display: flex; +} + +.header_search_input { + border: 1px solid #C0CAD5; + padding: 3px; + padding-left: 19px; + font-size: 11px; + font-family: tahoma, verdana, arial, sans-serif; + width: 549px; + background: #fff url('/assets/packages/static/openvk/img/search_icon.png') no-repeat; + background-position-x: 4px; + background-position-y: 4px; +} + +.button_search { + border-radius: 2px; + border: #595959; + font-size: 11px; + outline: none; + white-space: nowrap; + background: #595959; + background-position: 0px -16px; + color: #fff; + padding: 4px 8px 4px; + text-shadow: 0 1px 0 #686868; + cursor: pointer; + text-decoration: none; + margin-left: 10px; +} + +.content_search { + width: 607px; +} + +.content_search_list { + display: flex; + width: 100%; + padding: 10px; +} + +.content_search_list:hover { + background: #f5f5f5; +} + +.content_search_list_ava img{ + width: 75px; +} + +.content_search_list_ava{ + width: 85px; +} + +.content_search_list_name_h4 { + color: #2b587a; + font-weight: bold; +} + +.content_search_list_span { + color: #7b7b7b; + margin-top: 5px; +} diff --git a/locales/en.strings b/locales/en.strings index 5739c2c0..9669b070 100644 --- a/locales/en.strings +++ b/locales/en.strings @@ -42,6 +42,8 @@ "register_referer_meta_title" = "$1 invites you to $2!"; "register_referer_meta_desc" = "Join $1 and many other users at $2!"; +"users" = "Users"; + /* Profile information */ "select_language" = "Choose language"; diff --git a/locales/ru.strings b/locales/ru.strings index 5afda1ce..5e3f9345 100644 --- a/locales/ru.strings +++ b/locales/ru.strings @@ -43,6 +43,8 @@ "register_referer_meta_title" = "$1 приглашает вас в $2!"; "register_referer_meta_desc" = "Присоединяйтесь к $1 и множеству других пользователей в $2!"; +"users" = "Пользователи"; + /* Profile information */ "select_language" = "Выбрать язык";