OLD | NEW |
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-contents > span { | 11 .app-contents > span { |
12 cursor: pointer; | 12 cursor: pointer; |
13 display: block; | 13 display: block; |
14 overflow: hidden; | 14 overflow: hidden; |
15 text-decoration: none; | 15 text-decoration: none; |
16 text-overflow: ellipsis; | 16 text-overflow: ellipsis; |
17 white-space: nowrap; | 17 white-space: nowrap; |
18 } | 18 } |
19 | 19 |
20 /* TODO(estade): hover effect? press effect? */ | 20 /* TODO(estade): hover effect? press effect? */ |
21 .app-contents > img { | 21 .app-contents > img { |
22 cursor: pointer; | 22 cursor: pointer; |
23 display: block; | 23 display: block; |
24 margin-left: auto; | 24 margin-left: auto; |
25 margin-right: auto; | 25 margin-right: auto; |
26 /* -webkit-mask-image set by JavaScript to the image source */ | 26 /* -webkit-mask-image set by JavaScript to the image source */ |
27 -webkit-mask-size: 100% 100%; | 27 -webkit-mask-size: 100% 100%; |
28 } | 28 } |
29 | 29 |
| 30 .app-icon-div { |
| 31 /* TODO(gbillock): find a better style for this div. Better border color? */ |
| 32 border: 1px solid gray; |
| 33 border-radius: 4px; |
| 34 cursor: pointer; |
| 35 display: -webkit-box; |
| 36 /* 96px is the suggested "filled" icon size for Chrome apps */ |
| 37 height: 96px; |
| 38 margin-bottom: 15px; |
| 39 margin-left: auto; |
| 40 margin-right: auto; |
| 41 margin-top: 15px; |
| 42 vertical-align: middle; |
| 43 width: 96px; |
| 44 -webkit-box-align: center; |
| 45 -webkit-box-pack: center; |
| 46 } |
| 47 |
30 .app-context-menu > button:first-child { | 48 .app-context-menu > button:first-child { |
31 font-weight: bold; | 49 font-weight: bold; |
32 } | 50 } |
33 | 51 |
34 .app-context-menu { | 52 .app-context-menu { |
35 z-index: 1000; | 53 z-index: 1000; |
36 } | 54 } |
37 | 55 |
38 /* Promo */ | 56 /* Promo */ |
39 /* Show the promo if the webstore has a promo and is the only app on the page. | 57 /* Show the promo if the webstore has a promo and is the only app on the page. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 white-space: nowrap; | 90 white-space: nowrap; |
73 -webkit-border-image: url('../ntp/g-button-chocobo.png') 6 10 12 6; | 91 -webkit-border-image: url('../ntp/g-button-chocobo.png') 6 10 12 6; |
74 } | 92 } |
75 | 93 |
76 .apps-promo-hide { | 94 .apps-promo-hide { |
77 font-size: 90%; | 95 font-size: 90%; |
78 margin-top: 2px; | 96 margin-top: 2px; |
79 text-decoration: underline; | 97 text-decoration: underline; |
80 -webkit-margin-start: 5px; | 98 -webkit-margin-start: 5px; |
81 } | 99 } |
OLD | NEW |