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

Unified Diff: chrome/browser/resources/ntp_search/thumbnail_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/thumbnail_page.css
diff --git a/chrome/browser/resources/ntp_search/thumbnail_page.css b/chrome/browser/resources/ntp_search/thumbnail_page.css
new file mode 100644
index 0000000000000000000000000000000000000000..20ec3faab2d11b93eef533d96a15a31dc802bea5
--- /dev/null
+++ b/chrome/browser/resources/ntp_search/thumbnail_page.css
@@ -0,0 +1,68 @@
+/* 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. */
+
+/* -----------------------------------------------------------------------------
+ Thumbnail Cell and Tile
+----------------------------------------------------------------------------- */
+
+.thumbnail-page .tile-cell {
+ -webkit-margin-start: 18px;
+ height: 80px;
+ margin-bottom: 22px;
+ width: 132px;
+}
+
+.thumbnail-page .tile-cell .tile {
+ background: #fff;
+ border: 1px solid rgb(192, 192, 192);
+ border-radius: 2px;
+ box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
+ display: block;
+ height: 78px;
+ position: relative;
+ width: 130px;
+}
+
+.thumbnail-page .tile-cell .tile:hover {
+ /* TODO(pedrosimonetti): Confirm value with Marcin. */
+ border-color: rgb(127, 127, 127);
+}
+
+.thumbnail-page .tile-cell.filler .tile {
+ background: -webkit-linear-gradient(rgb(242, 242, 242), rgb(232, 232, 232));
+ border-color: rgb(224, 224, 224);
+ border-radius: 3px;
+ box-shadow: inset 0 2px 3px rgba(0, 0, 0, .09);
+ display: inline-block;
+ position: absolute;
+}
+
+/* -----------------------------------------------------------------------------
+ Thumbnail
+----------------------------------------------------------------------------- */
+
+.thumbnail .thumbnail-image {
+ background-size: 100%;
+ display: block;
+ height: 100%;
+ position: absolute;
+ width: 100%;
+}
+
+.thumbnail .title {
+ color: #777;
+ display: none;
+ font-size: 0.9167em;
+ overflow: hidden;
+ position: absolute;
+ text-align: center;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ width: 100%;
+}
+
+.thumbnail:hover .title {
+ bottom: -18px;
+ display: block;
+}
« no previous file with comments | « chrome/browser/resources/ntp_search/page_list_view.js ('k') | chrome/browser/resources/ntp_search/thumbnail_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698