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

Unified Diff: chrome/browser/resources/ntp_search/most_visited_page.css

Issue 10829131: Refactoring NTP5: new implementation of TilePage and MostVisitedPage (which now inherits from Thumb… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Manually fixing mock_data_autogen.js lines with more than 80 chars. Created 8 years, 4 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_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;
+}

Powered by Google App Engine
This is Rietveld 408576698