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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* Copyright 2013 The Chromium Authors. All rights reserved. 1 /* Copyright 2013 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 body { 4 body {
5 background-attachment: fixed !important 5 background-attachment: fixed !important;
6 background-color: white;
7 cursor: default;
8 margin: 0;
9 overflow: hidden;
10 }
11
12 #ntp-contents {
13 text-align: -webkit-center;
14 }
15
16 body.fakebox-animate #ntp-contents {
17 -webkit-transition: opacity 100ms linear;
18 opacity: 0.2;
19 }
20
21 body.google-page #mv-top-margin {
22 display: none;
23 }
24
25 #logo {
26 background: -webkit-image-set(
27 url(images/google_logo.png) 1x,
28 url(images/2x/google_logo.png) 2x) no-repeat;
29 height: 95px;
30 margin-bottom: 20px;
31 margin-top: 144px;
32 width: 275px;
33 }
34
35 body.custom-theme #logo {
36 background: -webkit-image-set(
37 url(images/white_google_logo.png) 1x,
38 url(images/2x/white_google_logo.png) 2x) no-repeat;
39 }
40
41 #fakebox {
42 /* Use GPU compositing if available. */
43 -webkit-transform: translate3d(0, 0, 0);
44 -webkit-transition: -webkit-transform 100ms linear;
45 background-color: #fff;
46 border: 1px solid #b9b9b9;
47 border-radius: 1px;
48 border-top-color: #a0a0a0;
49 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
50 cursor: text;
51 font: 18px arial, sans-serif;
52 height: 36px;
53 max-width: 620px;
54 width: 300px;
55 }
56
57 #fakebox:hover {
58 border: 1px solid #a9a9a9;
59 border-top-color: #909090;
60 }
61
62 body.fakebox-focused #fakebox {
63 border: 1px solid rgb(77, 144, 254);
64 }
65
66 body.fakebox-animate #fakebox {
67 -webkit-transform: translateY(-100px);
68 }
69
70 #fakebox > input {
71 bottom: 0;
72 left: 0;
73 opacity: 0;
74 position: absolute;
75 right: 0;
76 top: 0;
77 }
78
79 #cursor {
80 background: #333;
81 bottom: 5px;
82 position: absolute;
83 top: 5px;
84 visibility: hidden;
85 width: 1px;
86 }
87
88 @-webkit-keyframes blink {
89 61.54% {
90 opacity: 1;
91 }
92 61.55%,
93 100% {
94 opacity: 0;
95 }
96 }
97 body.fakebox-focused #cursor {
98 -webkit-animation: blink 1.3s linear infinite;
99 visibility: inherit;
6 } 100 }
7 101
8 #most-visited { 102 #most-visited {
9 -webkit-user-select: none; 103 -webkit-user-select: none;
10 margin-top: 60px; 104 margin-top: 60px;
11 text-align: -webkit-center; 105 text-align: -webkit-center;
12 } 106 }
13 107
14 .custom-theme .mv-title, 108 .custom-theme .mv-title,
15 .custom-theme #mv-msg { 109 .custom-theme #mv-msg {
16 color: #fff; 110 color: #fff;
17 text-shadow: black 0 1px 3px; 111 text-shadow: black 0 1px 3px;
18 } 112 }
19 113
20 .custom-theme #mv-notice-links span { 114 .custom-theme #mv-notice-links span {
21 color: #fff; 115 color: #fff;
22 text-shadow: rgb(17, 85, 204) 0 1px 3px; 116 text-shadow: rgb(17, 85, 204) 0 1px 3px;
23 } 117 }
24 118
25 #mv-tiles { 119 #mv-tiles {
26 /* Use GPU compositing if available. */ 120 /* Use GPU compositing if available. */
27 -webkit-transform: translate3d(0, 0, 0); 121 -webkit-transform: translate3d(0, 0, 0);
28 -webkit-transition: width 200ms;
29 height: 120px; 122 height: 120px;
30 overflow: hidden; 123 overflow: hidden;
31 white-space: nowrap; 124 white-space: nowrap;
32 width: 304px; 125 width: 304px;
33 } 126 }
34 127
35 @media only screen and (min-width:666px) { 128 @media only screen and (min-width:666px) {
129 #fakebox,
36 #mv-tiles { 130 #mv-tiles {
37 width: 466px; 131 width: 466px;
38 } 132 }
39 } 133 }
40 134
41 @media only screen and (min-width:829px) { 135 @media only screen and (min-width:829px) {
136 #fakebox,
42 #mv-tiles { 137 #mv-tiles {
43 width: 629px; 138 width: 629px;
44 } 139 }
45 } 140 }
46 141
47 .mv-tile:first-child { 142 .mv-tile:first-child {
48 -webkit-margin-start: 0; 143 -webkit-margin-start: 0;
49 } 144 }
50 145
51 .mv-tile { 146 .mv-tile {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 cursor: default; 295 cursor: default;
201 font-size: 75%; 296 font-size: 75%;
202 position: absolute; 297 position: absolute;
203 right: 13px; 298 right: 13px;
204 text-align: left; 299 text-align: left;
205 z-index: -1; 300 z-index: -1;
206 } 301 }
207 302
208 #attribution img { 303 #attribution img {
209 display: block; 304 display: block;
210 } 305 }
306
307 #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
308 border-bottom: 1px #d9d9d9 solid;
309 padding-bottom: 6px;
310 padding-top: 6px;
311 }
312
313 #suggestions-box-container {
314 position: absolute;
315 top: 0;
316 width: 100%;
317 }
318
319 .suggestion {
320 background: -webkit-image-set(
321 url(images/page_icon.png) 1x,
322 url(images/2x/page_icon.png) 2x) no-repeat;
323 border-radius: 2px;
324 padding-bottom: 2px;
325 padding-top: 3px;
326 white-space: nowrap;
327 }
328
329 .search {
330 background: -webkit-image-set(
331 url(images/search_icon.png) 1x,
332 url(images/2x/search_icon.png) 2x) no-repeat;
333 }
334
335 .suggestion:hover {
336 background-color: #eee;
337 }
338
339 .selected,
340 .selected:hover {
341 background-color: rgba(181, 213, 255, 0.5);
342 }
343
344 .contents {
345 -webkit-padding-start: 26px;
346 -webkit-user-select: none;
347 border: none;
348 height: 22px;
349 overflow: hidden;
350 width: 100%;
351 }
352
353 /* Styling for native suggestions, hidden by the shadow DOM. */
354 .chrome_url {
355 color: rgb(0, 153, 51);
356 }
357
358 .chrome_title {
359 color: #666;
360 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698