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

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: Fix suggestion truncation. 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
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/local_ntp/local_ntp.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0% {
90 opacity: 1;
91 }
92 61.55% {
93 opacity: 0;
94 }
95 }
96 body.fakebox-focused #cursor {
97 -webkit-animation: blink 1.3s step-end infinite;
98 visibility: inherit;
6 } 99 }
7 100
8 #most-visited { 101 #most-visited {
9 -webkit-user-select: none; 102 -webkit-user-select: none;
10 margin-top: 60px; 103 margin-top: 60px;
11 text-align: -webkit-center; 104 text-align: -webkit-center;
12 } 105 }
13 106
14 .custom-theme .mv-title, 107 .custom-theme .mv-title,
15 .custom-theme #mv-msg { 108 .custom-theme #mv-msg {
16 color: #fff; 109 color: #fff;
17 text-shadow: black 0 1px 3px; 110 text-shadow: black 0 1px 3px;
18 } 111 }
19 112
20 .custom-theme #mv-notice-links span { 113 .custom-theme #mv-notice-links span {
21 color: #fff; 114 color: #fff;
22 text-shadow: rgb(17, 85, 204) 0 1px 3px; 115 text-shadow: rgb(17, 85, 204) 0 1px 3px;
23 } 116 }
24 117
25 #mv-tiles { 118 #mv-tiles {
26 /* Use GPU compositing if available. */ 119 /* Use GPU compositing if available. */
27 -webkit-transform: translate3d(0, 0, 0); 120 -webkit-transform: translate3d(0, 0, 0);
28 -webkit-transition: width 200ms;
29 height: 120px; 121 height: 120px;
30 overflow: hidden; 122 overflow: hidden;
31 white-space: nowrap; 123 white-space: nowrap;
32 width: 304px; 124 width: 304px;
33 } 125 }
34 126
35 @media only screen and (min-width:666px) { 127 @media only screen and (min-width:666px) {
128 #fakebox,
36 #mv-tiles { 129 #mv-tiles {
37 width: 466px; 130 width: 466px;
38 } 131 }
39 } 132 }
40 133
41 @media only screen and (min-width:829px) { 134 @media only screen and (min-width:829px) {
135 #fakebox,
42 #mv-tiles { 136 #mv-tiles {
43 width: 629px; 137 width: 629px;
44 } 138 }
45 } 139 }
46 140
47 .mv-tile:first-child { 141 .mv-tile:first-child {
48 -webkit-margin-start: 0; 142 -webkit-margin-start: 0;
49 } 143 }
50 144
51 .mv-tile { 145 .mv-tile {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 cursor: default; 294 cursor: default;
201 font-size: 75%; 295 font-size: 75%;
202 position: absolute; 296 position: absolute;
203 right: 13px; 297 right: 13px;
204 text-align: left; 298 text-align: left;
205 z-index: -1; 299 z-index: -1;
206 } 300 }
207 301
208 #attribution img { 302 #attribution img {
209 display: block; 303 display: block;
210 } 304 }
305
306 #suggestions-box {
307 border-bottom: 1px #d9d9d9 solid;
308 padding-bottom: 6px;
309 padding-top: 6px;
310 }
311
312 #suggestions-box-container {
313 position: absolute;
314 top: 0;
315 width: 100%;
316 }
317
318 .suggestion {
319 background: -webkit-image-set(
320 url(images/page_icon.png) 1x,
321 url(images/2x/page_icon.png) 2x) no-repeat;
322 border-radius: 2px;
323 padding-bottom: 2px;
324 padding-top: 3px;
325 white-space: nowrap;
326 }
327
328 .search {
329 background: -webkit-image-set(
330 url(images/search_icon.png) 1x,
331 url(images/2x/search_icon.png) 2x) no-repeat;
332 }
333
334 .suggestion:hover {
335 background-color: #eee;
336 }
337
338 .selected,
339 .selected:hover {
340 background-color: rgba(181, 213, 255, 0.5);
341 }
342
343 .contents {
344 -webkit-padding-start: 26px;
345 -webkit-user-select: none;
346 border: none;
347 height: 22px;
348 overflow: hidden;
349 }
350
351 /* Styling for native suggestions, hidden by the shadow DOM. */
352 .chrome_url {
353 color: rgb(0, 153, 51);
354 }
355
356 .chrome_title {
357 color: #666;
358 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/local_ntp/local_ntp.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698