summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/ntp/apps.css
diff options
context:
space:
mode:
authorjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-24 03:41:02 +0000
committerjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-24 03:41:02 +0000
commit482816411e1fb5379f7f9f7030f8648128bd95c7 (patch)
tree6a323e76e9c33bc65c168b8ec6a7d7ea63d5eeb2 /chrome/browser/resources/ntp/apps.css
parent076692a9d28e8634e87db7fe182adcf8a51fc293 (diff)
downloadchromium_src-482816411e1fb5379f7f9f7030f8648128bd95c7.zip
chromium_src-482816411e1fb5379f7f9f7030f8648128bd95c7.tar.gz
chromium_src-482816411e1fb5379f7f9f7030f8648128bd95c7.tar.bz2
[NTP] Allow reordering of apps via drag and drop.
BUG=53977 TEST=None. Review URL: http://codereview.chromium.org/6297013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/ntp/apps.css')
-rw-r--r--chrome/browser/resources/ntp/apps.css29
1 files changed, 20 insertions, 9 deletions
diff --git a/chrome/browser/resources/ntp/apps.css b/chrome/browser/resources/ntp/apps.css
index 2d03d58..ab129fc 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%;
}