Index: chrome/browser/resources/ntp_search/most_visited_page.css |
diff --git a/chrome/browser/resources/ntp_search/most_visited_page.css b/chrome/browser/resources/ntp_search/most_visited_page.css |
new file mode 100644 |
index 0000000000000000000000000000000000000000..112d14be380b905e7ed878e5bfa2c6ff2726254c |
--- /dev/null |
+++ b/chrome/browser/resources/ntp_search/most_visited_page.css |
@@ -0,0 +1,59 @@ |
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. */ |
+ |
+.close-button { |
+ background: no-repeat; |
+ background-color: transparent; |
+ /* TODO(estade): this should animate between states. */ |
+ background-image: -webkit-image-set( |
+ url('../../../../ui/resources/default_100_percent/close_bar.png') 1x, |
+ url('../../../../ui/resources/default_200_percent/close_bar.png') 2x); |
+ border: 0; |
+ cursor: default; |
+ display: inline-block; |
+ height: 16px; |
+ padding: 0; |
+ position: absolute; |
+ width: 16px; |
+ z-index: 999; |
+} |
+ |
+.close-button:hover, |
+.close-button:focus { |
+ background-image: -webkit-image-set( |
+ url('../../../../ui/resources/default_100_percent/close_bar_hover.png') |
+ 1x, |
+ url('../../../../ui/resources/default_200_percent/close_bar_hover.png') |
+ 2x); |
+} |
+ |
+.close-button:active { |
+ background-image: -webkit-image-set( |
+ url('../../../../ui/resources/default_100_percent/close_bar_pressed.png') |
+ 1x, |
+ url('../../../../ui/resources/default_200_percent/close_bar_pressed.png') |
+ 2x); |
+} |
+ |
+/* TODO(pedrosimonetti): Organize these rules. */ |
+.thumbnail .close-button { |
+ -webkit-transition: opacity 500ms ease-in-out; |
+ opacity: 0; |
+ right: 2px; |
+ top: 2px; |
+} |
+ |
+html[dir=rtl] .thumbnail .close-button { |
+ left: 0; |
+ right: auto; |
+} |
+ |
+.thumbnail:hover .close-button { |
+ -webkit-transition-delay: 500ms; |
+ opacity: 1; |
+} |
+ |
+.thumbnail .close-button:hover { |
+ -webkit-transition: none; |
+} |