Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: chrome/browser/resources/local_ntp/local_ntp.css

Issue 13905008: Merge local_omnibox_popup into local_ntp. Render the Google logo and fakebox if Google is the sear… (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Delete local omnibox popup. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/local_ntp/local_ntp.css
diff --git a/chrome/browser/resources/local_ntp/local_ntp.css b/chrome/browser/resources/local_ntp/local_ntp.css
index 32ad140b6c63522b0215ad8b15e2c686e7f920ea..fb15f73807b622d62b6cb06158829af4c4bbc522 100644
--- a/chrome/browser/resources/local_ntp/local_ntp.css
+++ b/chrome/browser/resources/local_ntp/local_ntp.css
@@ -2,7 +2,101 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
body {
- background-attachment: fixed !important
+ background-attachment: fixed !important;
+ background-color: white;
+ cursor: default;
+ margin: 0;
+ overflow: hidden;
+}
+
+#ntp-contents {
+ text-align: -webkit-center;
+}
+
+body.fakebox-animate #ntp-contents {
+ -webkit-transition: opacity 100ms linear;
+ opacity: 0.2;
+}
+
+body.google-page #mv-top-margin {
+ display: none;
+}
+
+#logo {
+ background: -webkit-image-set(
+ url(images/google_logo.png) 1x,
+ url(images/2x/google_logo.png) 2x) no-repeat;
+ height: 95px;
+ margin-bottom: 20px;
+ margin-top: 144px;
+ width: 275px;
+}
+
+body.custom-theme #logo {
+ background: -webkit-image-set(
+ url(images/white_google_logo.png) 1x,
+ url(images/2x/white_google_logo.png) 2x) no-repeat;
+}
+
+#fakebox {
+ /* Use GPU compositing if available. */
+ -webkit-transform: translate3d(0, 0, 0);
+ -webkit-transition: -webkit-transform 100ms linear;
+ background-color: #fff;
+ border: 1px solid #b9b9b9;
+ border-radius: 1px;
+ border-top-color: #a0a0a0;
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
+ cursor: text;
+ font: 18px arial, sans-serif;
+ height: 36px;
+ max-width: 620px;
+ width: 300px;
+}
+
+#fakebox:hover {
+ border: 1px solid #a9a9a9;
+ border-top-color: #909090;
+}
+
+body.fakebox-focused #fakebox {
+ border: 1px solid rgb(77, 144, 254);
+}
+
+body.fakebox-animate #fakebox {
+ -webkit-transform: translateY(-100px);
+}
+
+#fakebox > input {
+ bottom: 0;
+ left: 0;
+ opacity: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+}
+
+#cursor {
+ background: #333;
+ bottom: 5px;
+ position: absolute;
+ top: 5px;
+ visibility: hidden;
+ width: 1px;
+}
+
+@-webkit-keyframes blink {
+ 61.54% {
+ opacity: 1;
+ }
+ 61.55%,
+ 100% {
+ opacity: 0;
+ }
+}
+body.fakebox-focused #cursor {
+ -webkit-animation: blink 1.3s linear infinite;
+ visibility: inherit;
}
#most-visited {
@@ -25,7 +119,6 @@ body {
#mv-tiles {
/* Use GPU compositing if available. */
-webkit-transform: translate3d(0, 0, 0);
- -webkit-transition: width 200ms;
height: 120px;
overflow: hidden;
white-space: nowrap;
@@ -33,12 +126,14 @@ body {
}
@media only screen and (min-width:666px) {
+ #fakebox,
#mv-tiles {
width: 466px;
}
}
@media only screen and (min-width:829px) {
+ #fakebox,
#mv-tiles {
width: 629px;
}
@@ -207,4 +302,59 @@ body {
#attribution img {
display: block;
-}
+}
+
+#suggestions-box {
samarth 2013/04/17 00:19:34 FYI, Kausalya just made some changes here in crrev
jeremycho 2013/04/17 00:59:23 Acknowledged. display:inline-block is not what we
samarth 2013/04/17 16:24:11 This was to fix crbug.com/229839. If that doesn't
+ border-bottom: 1px #d9d9d9 solid;
+ padding-bottom: 6px;
+ padding-top: 6px;
+}
+
+#suggestions-box-container {
+ position: absolute;
+ top: 0;
+ width: 100%;
+}
+
+.suggestion {
+ background: -webkit-image-set(
+ url(images/page_icon.png) 1x,
+ url(images/2x/page_icon.png) 2x) no-repeat;
+ border-radius: 2px;
+ padding-bottom: 2px;
+ padding-top: 3px;
+ white-space: nowrap;
+}
+
+.search {
+ background: -webkit-image-set(
+ url(images/search_icon.png) 1x,
+ url(images/2x/search_icon.png) 2x) no-repeat;
+}
+
+.suggestion:hover {
+ background-color: #eee;
+}
+
+.selected,
+.selected:hover {
+ background-color: rgba(181, 213, 255, 0.5);
+}
+
+.contents {
+ -webkit-padding-start: 26px;
+ -webkit-user-select: none;
+ border: none;
+ height: 22px;
+ overflow: hidden;
+ width: 100%;
+}
+
+/* Styling for native suggestions, hidden by the shadow DOM. */
+.chrome_url {
+ color: rgb(0, 153, 51);
+}
+
+.chrome_title {
+ color: #666;
+}

Powered by Google App Engine
This is Rietveld 408576698