Commit abe6623f authored by Dan Beam's avatar Dan Beam Committed by Commit Bot

Local NTP, Realbox: do some UI polish

* border-radius on matches: 8px -> 16px
* search magnifying glass icons (in matches): 20px -> 16px
* change search icon in realbox to Google G icon

Fixed: 1017495
Change-Id: I34005dda8e39a91efd35ec884d50e37050af300f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1877618
Auto-Submit: Dan Beam <dbeam@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Reviewed-by: default avatarMoe Ahmadi <mahmadi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709236}
parent 60416d7c
......@@ -153,6 +153,24 @@ body.hide-fakebox #fakebox {
max-width: 584px;
}
.google-g-icon {
background-image:
url(../../../../ui/webui/resources/images/200-logo_googleg.png);
background-position: center;
background-repeat: no-repeat;
background-size: 14px;
bottom: 0;
left: 16px;
position: absolute;
top: 0;
width: 24px;
}
[dir=rtl] .google-g-icon {
left: auto;
right: 16px;
}
#fakebox {
cursor: text;
}
......@@ -195,7 +213,7 @@ body.hide-fakebox #fakebox {
#realbox-matches {
background: white;
border-radius: 8px;
border-radius: 16px;
display: none;
left: 0;
overflow: hidden;
......@@ -245,6 +263,7 @@ body.hide-fakebox #fakebox {
.search-icon {
-webkit-mask-position: center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-size: 16px;
background-color: rgb(117, 117, 117);
bottom: 0;
left: 16px;
......@@ -255,13 +274,11 @@ body.hide-fakebox #fakebox {
.clock-icon {
-webkit-mask-image: url(icons/clock.svg);
-webkit-mask-size: 16px;
}
.search-icon {
-webkit-mask-image:
url(../../../../ui/webui/resources/images/icon_search.svg);
-webkit-mask-size: 20px;
}
html[dir=rtl] :-webkit-any(.clock-icon, .search-icon) {
......@@ -404,7 +421,7 @@ html[dir=rtl] .microphone-icon {
right: auto;
}
#realbox-input-wrapper :-webkit-any(.search-icon, .microphone-icon) {
#realbox-input-wrapper :-webkit-any(.google-g-icon, .microphone-icon) {
z-index: 3;
}
......
......@@ -78,7 +78,7 @@
<div id="realbox-container" $i18n{hiddenIfRealboxDisabled}>
<div id="realbox-input-wrapper">
<div class="search-icon"></div>
<div class="google-g-icon"></div>
<input id="realbox" type="search" autocomplete="off" spellcheck="false"
autofocus>
<button id="realbox-microphone" class="microphone-icon" hidden></button>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment