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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/ntp/apps.css
diff --git a/chrome/browser/resources/ntp/apps.css b/chrome/browser/resources/ntp/apps.css
index 2d03d584f0872f3d88044fbebe93bcae9a83d711..ab129fc074797d926dd07affb86aac69fc5072b6 100644
--- a/chrome/browser/resources/ntp/apps.css
+++ b/chrome/browser/resources/ntp/apps.css
@@ -2,7 +2,6 @@
#apps-content {
position: relative;
- width: intrinsic;
max-width: 780px; /* (124 + margin * 2) * 6 */
}
@@ -28,9 +27,8 @@ html.apps-promo-visible #apps-content {
-webkit-perspective: 400;
border-radius: 10px;
color: black;
- display: inline-block;
margin: 5px 3px;
- position: relative;
+ position: absolute;
height: 136px;
width: 124px; /* 920 / 7 - margin * 2 */
}
@@ -89,6 +87,19 @@ html.apps-promo-visible #apps-content {
opacity: .9;
}
+.app.dragging > .app-settings {
+ background-image: none;
+}
+
+.app.dragging {
+ opacity: .7;
+ z-index: 2;
+}
+
+#apps-content[launcher-animations=true] .app {
+ -webkit-transition: top .2s, left .2s, right .2s;
+}
+
@-webkit-keyframes bounce {
0% {
-webkit-transform: scale(0, 0);
@@ -112,7 +123,7 @@ html[install-animation-enabled=true] .app[new=installed] {
-webkit-transition: opacity .5s;
}
-.app[app-id=web-store-entry] > a {
+.app.web-store-entry > a {
background-image: url("chrome://theme/IDR_WEBSTORE_ICON");
}
@@ -154,18 +165,18 @@ html[dir=rtl] #apps-promo-hide {
float: left;
}
-html.apps-promo-visible .app[app-id=web-store-entry] {
+html.apps-promo-visible .app.web-store-entry {
position: absolute;
left: 100%;
top: 0;
-webkit-margin-start: 22px;
}
-html.apps-promo-visible[dir=rtl] .app[app-id=web-store-entry] {
+html.apps-promo-visible[dir=rtl] .app.web-store-entry {
right: 100%;
}
-html.apps-promo-visible .app[app-id=web-store-entry] a {
+html.apps-promo-visible .app.web-store-entry a {
font-weight: bold;
}
@@ -175,12 +186,12 @@ column when there is at least one full row of apps. Note that this is similar,
but different than its position during promo (html.apps-promo-visible), so we
never set .loner while the promo is running.
*/
-.app[app-id=web-store-entry].loner {
+.app.web-store-entry.loner {
position: absolute;
left: 100%;
top: 0;
}
-html[dir=rtl] .app[app-id=web-store-entry].loner {
+html[dir=rtl] .app.web-store-entry.loner {
right: 100%;
}

Powered by Google App Engine
This is Rietveld 408576698