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

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

Issue 6297013: [NTP] Allow reordering of apps via drag and drop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: incorporate feedback Created 9 years, 11 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 width: intrinsic;
6 max-width: 780px; /* (124 + margin * 2) * 6 */ 5 max-width: 780px; /* (124 + margin * 2) * 6 */
7 } 6 }
8 7
9 html.apps-promo-visible #apps-content { 8 html.apps-promo-visible #apps-content {
10 max-width: 650px; /* (124 + margin * 2) * 5 */ 9 max-width: 650px; /* (124 + margin * 2) * 5 */
11 } 10 }
12 11
13 /* small */ 12 /* small */
14 @media (max-width: 940px) { 13 @media (max-width: 940px) {
15 /* 14 /*
16 We don't need to do anything for html.apps-promo-visible because there is 15 We don't need to do anything for html.apps-promo-visible because there is
17 enough extra space in the small grid layout. 16 enough extra space in the small grid layout.
18 */ 17 */
19 #apps-content, 18 #apps-content,
20 html.apps-promo-visible #apps-content { 19 html.apps-promo-visible #apps-content {
21 max-width: 520px; /* (124 + margin * 2) * 4 */ 20 max-width: 520px; /* (124 + margin * 2) * 4 */
22 } 21 }
23 } 22 }
24 23
25 .app, 24 .app,
26 .app[new=installed] { 25 .app[new=installed] {
27 box-sizing: border-box; 26 box-sizing: border-box;
28 -webkit-perspective: 400; 27 -webkit-perspective: 400;
29 border-radius: 10px; 28 border-radius: 10px;
30 color: black; 29 color: black;
31 display: inline-block;
32 margin: 5px 3px; 30 margin: 5px 3px;
33 position: relative; 31 position: absolute;
34 height: 136px; 32 height: 136px;
35 width: 124px; /* 920 / 7 - margin * 2 */ 33 width: 124px; /* 920 / 7 - margin * 2 */
36 } 34 }
37 35
38 .app a { 36 .app a {
39 border-radius: 10px; 37 border-radius: 10px;
40 bottom: 0; 38 bottom: 0;
41 left: 0; 39 left: 0;
42 position: absolute; 40 position: absolute;
43 right: 0; 41 right: 0;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 -webkit-transition: none; 80 -webkit-transition: none;
83 background-image: url(chrome://theme/IDR_BALLOON_WRENCH_H); 81 background-image: url(chrome://theme/IDR_BALLOON_WRENCH_H);
84 } 82 }
85 83
86 .app:hover > .app-settings, 84 .app:hover > .app-settings,
87 .app > .app-settings:focus { 85 .app > .app-settings:focus {
88 -webkit-transition-delay: .5s; 86 -webkit-transition-delay: .5s;
89 opacity: .9; 87 opacity: .9;
90 } 88 }
91 89
90 .app.dragging > .app-settings {
91 background-image: none;
92 }
93
94 .app.dragging {
95 opacity: .7;
96 z-index: 2;
97 }
98
99 #apps-content[launcher-animations=true] .app {
100 -webkit-transition: top .2s, left .2s, right .2s;
101 }
102
92 @-webkit-keyframes bounce { 103 @-webkit-keyframes bounce {
93 0% { 104 0% {
94 -webkit-transform: scale(0, 0); 105 -webkit-transform: scale(0, 0);
95 } 106 }
96 107
97 60% { 108 60% {
98 -webkit-transform: scale(1.2, 1.2); 109 -webkit-transform: scale(1.2, 1.2);
99 } 110 }
100 111
101 100% { 112 100% {
102 -webkit-transform: scale(1, 1); 113 -webkit-transform: scale(1, 1);
103 } 114 }
104 } 115 }
105 116
106 html[install-animation-enabled=true] .app[new=new] { 117 html[install-animation-enabled=true] .app[new=new] {
107 opacity: 0; 118 opacity: 0;
108 } 119 }
109 120
110 html[install-animation-enabled=true] .app[new=installed] { 121 html[install-animation-enabled=true] .app[new=installed] {
111 -webkit-animation: bounce .5s ease-in-out; 122 -webkit-animation: bounce .5s ease-in-out;
112 -webkit-transition: opacity .5s; 123 -webkit-transition: opacity .5s;
113 } 124 }
114 125
115 .app[app-id=web-store-entry] > a { 126 .app.web-store-entry > a {
116 background-image: url("chrome://theme/IDR_WEBSTORE_ICON"); 127 background-image: url("chrome://theme/IDR_WEBSTORE_ICON");
117 } 128 }
118 129
119 menu > button.default { 130 menu > button.default {
120 font-weight: bold; 131 font-weight: bold;
121 } 132 }
122 133
123 #apps-promo { 134 #apps-promo {
124 display: none; 135 display: none;
125 } 136 }
(...skipping 21 matching lines...) Expand all
147 cursor: pointer; 158 cursor: pointer;
148 font-family: inherit; 159 font-family: inherit;
149 font-size: 90%; 160 font-size: 90%;
150 text-decoration: underline; 161 text-decoration: underline;
151 } 162 }
152 163
153 html[dir=rtl] #apps-promo-hide { 164 html[dir=rtl] #apps-promo-hide {
154 float: left; 165 float: left;
155 } 166 }
156 167
157 html.apps-promo-visible .app[app-id=web-store-entry] { 168 html.apps-promo-visible .app.web-store-entry {
158 position: absolute; 169 position: absolute;
159 left: 100%; 170 left: 100%;
160 top: 0; 171 top: 0;
161 -webkit-margin-start: 22px; 172 -webkit-margin-start: 22px;
162 } 173 }
163 174
164 html.apps-promo-visible[dir=rtl] .app[app-id=web-store-entry] { 175 html.apps-promo-visible[dir=rtl] .app.web-store-entry {
165 right: 100%; 176 right: 100%;
166 } 177 }
167 178
168 html.apps-promo-visible .app[app-id=web-store-entry] a { 179 html.apps-promo-visible .app.web-store-entry a {
169 font-weight: bold; 180 font-weight: bold;
170 } 181 }
171 182
172 /* 183 /*
173 We position the web store entry all by its lonesome in the top of the rightmost 184 We position the web store entry all by its lonesome in the top of the rightmost
174 column when there is at least one full row of apps. Note that this is similar, 185 column when there is at least one full row of apps. Note that this is similar,
175 but different than its position during promo (html.apps-promo-visible), so we 186 but different than its position during promo (html.apps-promo-visible), so we
176 never set .loner while the promo is running. 187 never set .loner while the promo is running.
177 */ 188 */
178 .app[app-id=web-store-entry].loner { 189 .app.web-store-entry.loner {
179 position: absolute; 190 position: absolute;
180 left: 100%; 191 left: 100%;
181 top: 0; 192 top: 0;
182 } 193 }
183 194
184 html[dir=rtl] .app[app-id=web-store-entry].loner { 195 html[dir=rtl] .app.web-store-entry.loner {
185 right: 100%; 196 right: 100%;
186 } 197 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698