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

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

Powered by Google App Engine
This is Rietveld 408576698