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

Side by Side Diff: chrome/browser/resources/ntp/apps.css

Issue 7291004: Wire up notifications to the New Tab page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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 /* Apps */ 1 /* Apps */
2 2
3 #apps-content { 3 #apps-content {
4 position: relative; 4 position: relative;
5 max-width: 780px; /* (124 + margin * 2) * 6 */ 5 max-width: 780px; /* (124 + margin * 2) * 6 */
6 } 6 }
7 7
8 html.apps-promo-visible #apps-content { 8 html.apps-promo-visible #apps-content {
9 max-width: 650px; /* (124 + margin * 2) * 5 */ 9 max-width: 650px; /* (124 + margin * 2) * 5 */
10 } 10 }
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 .app, 25 .app,
26 .app[new=installed] { 26 .app[new=installed] {
27 box-sizing: border-box; 27 box-sizing: border-box;
28 -webkit-perspective: 400; 28 -webkit-perspective: 400;
29 border-radius: 10px; 29 border-radius: 10px;
30 color: black; 30 color: black;
31 margin: 5px 3px; 31 margin: 5px 3px;
32 position: absolute; 32 position: absolute;
33 height: 136px; 33 height: 150px;
34 width: 124px; /* 920 / 7 - margin * 2 */ 34 width: 124px; /* 920 / 7 - margin * 2 */
35 visibility: hidden; 35 visibility: hidden;
36 } 36 }
37 37
38 .app a { 38 .app a {
39 border-radius: 10px; 39 border-radius: 10px;
40 bottom: 0; 40 bottom: 0;
41 left: 0; 41 left: 0;
42 position: absolute; 42 position: absolute;
43 right: 0; 43 right: 0;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 .app.dragging > .app-settings { 93 .app.dragging > .app-settings {
94 background-image: none; 94 background-image: none;
95 } 95 }
96 96
97 .app.dragging { 97 .app.dragging {
98 opacity: .7; 98 opacity: .7;
99 } 99 }
100 100
101 .app_notification {
102 color: Gray;
Evan Stade 2011/06/30 23:20:33 don't upper case the color
Finnur 2011/07/01 00:33:55 Done.
103 display: block;
104 -webkit-transition: color .15s linear;
105 }
106 .app_notification:hover {
107 color: Blue;
108 }
109
110 .app_notification_close {
111 width: 14px;
Evan Stade 2011/06/30 23:20:33 alphabetize
Finnur 2011/07/01 00:33:55 Done.
112 height: 14px;
113 position: absolute;
114 right: 6px;
115 top: 6px;
116 }
117
101 #apps-content[launcher-animations=true] .app { 118 #apps-content[launcher-animations=true] .app {
102 -webkit-transition: top .2s, left .2s, right .2s, opacity .2s; 119 -webkit-transition: top .2s, left .2s, right .2s, opacity .2s;
103 } 120 }
104 121
105 #apps-content.visible .app { 122 #apps-content.visible .app {
106 visibility: visible; 123 visibility: visible;
107 } 124 }
108 125
109 @-webkit-keyframes bounce { 126 @-webkit-keyframes bounce {
110 0% { 127 0% {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 border-width: 6px 10px 12px 6px; 209 border-width: 6px 10px 12px 6px;
193 -webkit-border-image: url('g-button-chocobo.png') 6 10 12 6; 210 -webkit-border-image: url('g-button-chocobo.png') 6 10 12 6;
194 font-size: 1.3em; 211 font-size: 1.3em;
195 color: #fff !important; 212 color: #fff !important;
196 text-decoration: none; 213 text-decoration: none;
197 font-weight: bold; 214 font-weight: bold;
198 text-align: center; 215 text-align: center;
199 padding: 2px 10px; 216 padding: 2px 10px;
200 white-space: nowrap; 217 white-space: nowrap;
201 } 218 }
219
220 .notification_bubble {
221 /* Size and position */
222 width: 200px;
Evan Stade 2011/06/30 23:20:33 alphabetize the properties it is crappy that rela
Finnur 2011/07/01 00:33:55 Done.
223 position: absolute;
224 min-height: 100px;
Evan Stade 2011/06/30 23:20:33 where do you set height?
Finnur 2011/07/01 00:33:55 I don't. This is set by the content at the moment.
225 min-width: 200px;
Evan Stade 2011/06/30 23:20:33 where do you set width (besides above)?
Finnur 2011/07/01 00:33:55 I don't follow. Why do I need to set it elsewhere
Evan Stade 2011/07/02 00:27:50 how does it grow? If you set width as you have don
226
227 /* General display properties, border, visibility */
228 opacity: 0;
229 border: 1px solid #B5B5B5;
230 -webkit-border-radius: 5px;
231 -webkit-box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.2);
Evan Stade 2011/06/30 23:20:33 write 0 instead of 0px
Finnur 2011/07/01 00:33:55 Done.
232 -webkit-transition: opacity 0.2s linear;
233
234 /* Content styles and formatting */
235 background-color: White;
236 padding: 10px 10px 10px 10px;
Evan Stade 2011/06/30 23:20:33 padding: 10px suffices
Finnur 2011/07/01 00:33:55 Done.
237 font-family: Helvetica, Arial, sans-serif;
238 font-size : 107%;
239 }
240 .notification_bubble:focus {
241 outline: none;
242 }
243
244 /* A content-less div with this setting, will create an arrow when coupled
245 with the arrow_* styles below it. */
246 div.arrow {
247 opacity: 0;
248 border-style: solid;
249 border-width: 12px;
250 height: 0px;
251 width: 0px;
252 position: absolute;
253 }
254 div.arrow_contents {
255 border-color: transparent white transparent transparent;
256 z-index: 2;
257 -webkit-transition: opacity 0.2s linear;
258 }
259 div.arrow_shadow {
260 border-color: transparent gray transparent transparent;
261 -webkit-transition: opacity 0.2s linear;
262 }
263 div.arrow_border {
264 border-color: transparent #B5B5B5 transparent transparent;
265 z-index: 1;
266 -webkit-transition: opacity 0.2s linear;
267 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698