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

Unified Diff: chrome/browser/resources/ntp4/suggestions_page.css

Issue 9358073: First version of the time slicing on the urls. Not ready for review yet. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added relative time to time slicing Created 8 years, 10 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
« no previous file with comments | « chrome/browser/resources/ntp4/page_list_view.js ('k') | chrome/browser/resources/ntp4/suggestions_page.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/suggestions_page.css
diff --git a/chrome/browser/resources/ntp4/suggestions_page.css b/chrome/browser/resources/ntp4/suggestions_page.css
new file mode 100644
index 0000000000000000000000000000000000000000..16ad4a68a0626fe9261bedc1043c9d38353dafe2
--- /dev/null
+++ b/chrome/browser/resources/ntp4/suggestions_page.css
@@ -0,0 +1,105 @@
+/* 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. */
+
+.suggestions {
+ position: absolute;
+ z-index: 0;
+}
+
+.suggestions {
+ -webkit-box-orient: vertical;
+ display: -webkit-box;
+ position: absolute;
+ text-decoration: none;
+}
+
+.suggestions:focus {
+ outline: none;
+}
+
+.suggestions .close-button {
+ -webkit-transition: opacity 150ms;
+ opacity: 0;
+ position: absolute;
+ right: 0;
+ top: 0;
+ z-index: 5;
+}
+
+html[dir=rtl] .suggestions .close-button {
+ left: 0;
+ right: auto;
+}
+
+.suggestions:hover .close-button {
+ -webkit-transition-delay: 500ms;
+ opacity: 1;
+}
+
+.suggestions .close-button:hover {
+ -webkit-transition: none;
+}
+
+.suggestions .favicon {
+ -webkit-margin-start: 5px;
+ background: no-repeat left 50%;
+ bottom: 7px;
+ box-sizing: border-box;
+ display: block;
+ height: 16px;
+ position: absolute;
+ width: 16px;
+}
+
+html[dir='rtl'] .suggestions .favicon {
+ background-position-x: right;
+}
+
+.suggestions .color-stripe {
+ border-bottom-left-radius: 3px 3px;
+ border-bottom-right-radius: 3px 3px;
+ /* Matches height of title. */
+ bottom: 23px;
+ height: 3px;
+ /* Matches padding-top of the title. */
+ margin-bottom: 8px;
+ position: absolute;
+ width: 100%;
+ z-index: 10;
+}
+
+.suggestions .title {
+ display: block;
+ height: 23px;
+ overflow: hidden;
+ padding-top: 8px;
+ text-align: center;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.suggestions:focus .thumbnail,
+.suggestions:hover .thumbnail {
+ opacity: 0.95;
+}
+
+.suggestions:focus .thumbnail-shield,
+.suggestions:hover .thumbnail-shield,
+.suggestions:active .thumbnail-shield {
+ background: -webkit-linear-gradient(rgba(255, 255, 255, 0),
+ rgba(255, 255, 255, 0) 80%,
+ rgba(255, 255, 255, 0.9));
+}
+
+/* The thumbnail gets lighter when clicked, but not when the click is on the
+ * close button. */
+.suggestions:active .close-button:not(:active) + .thumbnail {
+ opacity: 0.9;
+}
+
+/* The thumbnail gets a shadow when clicked, but not when the click is on the
+ * close button. */
+.suggestions:active .close-button:not(:active) + .thumbnail .thumbnail-shield {
+ -webkit-box-shadow: inset 0 1px 10px rgba(0, 0, 0, 0.2);
+}
« no previous file with comments | « chrome/browser/resources/ntp4/page_list_view.js ('k') | chrome/browser/resources/ntp4/suggestions_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698