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

Side by Side Diff: chrome/browser/resources/ntp4/apps_page.css

Issue 7215035: ntp4: add app context menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: response to review comments Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 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 */ 4 */
5 5
6 .app { 6 .app {
7 position: absolute; 7 position: absolute;
8 text-align: center; 8 text-align: center;
9 } 9 }
10 10
11 .app span { 11 .app span {
12 display: block; 12 display: block;
13 text-decoration: none; 13 text-decoration: none;
14 text-overflow: ellipsis; 14 text-overflow: ellipsis;
15 white-space: nowrap; 15 white-space: nowrap;
16 overflow: hidden; 16 overflow: hidden;
17 } 17 }
18 18
19 /* TODO(estade): hover effect? press effect? */ 19 /* TODO(estade): hover effect? press effect? */
20 .app img { 20 .app img {
21 cursor: pointer; 21 cursor: pointer;
22 display: block; 22 display: block;
23 margin-left: auto; 23 margin-left: auto;
24 margin-right: auto; 24 margin-right: auto;
25 /* -webkit-mask-image set by JavaScript to the image source */ 25 /* -webkit-mask-image set by JavaScript to the image source */
26 -webkit-mask-size: 100% 100%; 26 -webkit-mask-size: 100% 100%;
27 } 27 }
28 28
29 /* Pressed is set when an app is first touched. 29 .app-context-menu > button:first-child {
30 By using the mask, pressing causes a darkening effect of just the image */ 30 font-weight: bold;
31 .app.grabber-pressed img {
32 opacity: 0.8;
33 }
34
35 /* Grabbed is set (and pressed is cleared) when the app has been held. */
36 .grabber-grabbed {
37 opacity: 0.8;
38 -webkit-transform: scale3d(1.4, 1.4, 1);
39 }
40
41 /* Dragging is set (without grabbed being cleared) when a grabbed app is
42 moved */
43 .grabber-dragging {
44 /* We need to ensure there is no animation applied to its position
45 (or the drag touch may stop being over top of it */
46 -webkit-transition: none !important;
47
48 /* Ensure the element has a large z-index so that we can get events
49 for it as it moves over other elements. This is animated as the
50 element flys back, so we want a large value that will stay large until
51 its almost home. */
52 z-index: 100;
53 } 31 }
54 32
55 /* Link (bookmark) tiles. */ 33 /* Link (bookmark) tiles. */
56 .link { 34 .link {
57 display: -webkit-box; 35 display: -webkit-box;
58 position: absolute; 36 position: absolute;
59 -webkit-box-orient: vertical; 37 -webkit-box-orient: vertical;
60 } 38 }
61 39
62 .link > * { 40 .link > * {
63 -webkit-box-flex: 1; 41 -webkit-box-flex: 1;
64 } 42 }
65 43
66 .link span { 44 .link span {
67 display: block; 45 display: block;
68 } 46 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/apps_page.js » ('j') | chrome/browser/resources/ntp4/apps_page.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698