Index: chrome/browser/resources/ntp4/new_tab.css |
diff --git a/chrome/browser/resources/ntp4/new_tab.css b/chrome/browser/resources/ntp4/new_tab.css |
index c83d7caec4c30fae1e2adf6567b16510597f5ff4..a7f4c1ec4ac518a8bab77aecffa453b0ee542ecd 100644 |
--- a/chrome/browser/resources/ntp4/new_tab.css |
+++ b/chrome/browser/resources/ntp4/new_tab.css |
@@ -240,35 +240,91 @@ html[dir='rtl'] .login-status-icon { |
/* Trash. *********************************************************************/ |
#trash { |
+ -webkit-transition: top 200ms, opacity 0; |
+ -webkit-transition-delay: 0, 200ms; |
height: 100%; |
position: absolute; |
opacity: 0; |
right: 0; |
top: 50px; |
- -webkit-transition: top 200ms, opacity 0; |
- -webkit-transition-delay: 0, 200ms; |
+} |
+ |
+html[dir='rtl'] #trash { |
+ left: 0; |
+ right: auto; |
} |
#footer.showing-trash-mode #trash { |
- opacity: 1; |
- top: 0; |
-webkit-transition-delay: 0, 0; |
+ -webkit-transition-duration: 0, 200ms; |
+ opacity: 0.75; |
+ top: 0; |
+} |
+ |
+#footer.showing-trash-mode #trash.drag-target { |
+ opacity: 1; |
} |
#trash > span { |
- background-image: url('images/trash.png'); |
- background-position: 7px; |
- background-repeat: no-repeat; |
+ display: inline-block; |
+} |
+ |
+#trash > span:not([class]) { |
+ -webkit-padding-end: 7px; |
+ -webkit-padding-start: 30px; |
border: 1px dashed #7f7f7f; |
border-radius: 4px; |
- display: inline-block; |
font-size: 84%; |
padding-bottom: 9px; |
padding-top: 10px; |
position: relative; |
top: 7px; |
- -webkit-padding-end: 7px; |
- -webkit-padding-start: 30px; |
+} |
+ |
+#trash > .can, |
+#trash > .lid { |
+ background: url('images/trash.png') 0 0 no-repeat; |
+ position: absolute; |
+} |
+ |
+#trash > .lid { |
+ -webkit-transition: -webkit-transform 200ms; |
+ -webkit-transform-origin: -1px 100%; |
+ height: 6px; |
+ left: 10px; |
+ top: 18px; |
+ width: 14px; |
+} |
+ |
+html[dir='rtl'] #trash > .lid { |
+ /* NOTE: If the size of the lid image changes, change transform origin x to |
+ * newImg.width + 1 + 'px'. */ |
+ -webkit-transform-origin: 15px 100%; |
Evan Stade
2011/12/05 23:22:06
percent better
Dan Beam
2011/12/06 00:28:47
Done.
|
+ left: auto; |
+ /* NOTE: Intentionally different than LTR value. */ |
+ right: 9px; |
+} |
+ |
+#trash > .can { |
+ background-position: -1px -4px; |
+ border-radius: 0 0 2px 2px; |
+ height: 12px; |
+ left: 11px; |
+ top: 22px; |
+ width: 11px; |
+} |
+ |
+html[dir='rtl'] #trash > .can { |
+ left: auto; |
+ right: 11px; |
+} |
+ |
+#footer.showing-trash-mode #trash.drag-target .lid { |
+ -webkit-transform: rotate(-45deg); |
+} |
+ |
+html[dir='rtl'] #footer.showing-trash-mode #trash.drag-target .lid { |
+ -webkit-transform: rotate(45deg); |
} |
/* Page switcher buttons. *****************************************************/ |