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

Unified Diff: chrome/browser/resources/search_header.css

Issue 502613003: downloads/bookmarks: combine header CSS between downloads and bookmarks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: <3 removing code Created 6 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
« no previous file with comments | « chrome/browser/resources/downloads/downloads.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/search_header.css
diff --git a/chrome/browser/resources/search_header.css b/chrome/browser/resources/search_header.css
new file mode 100644
index 0000000000000000000000000000000000000000..c9cc70b6564b4f79b2953a57e1bf494b9f04d619
--- /dev/null
+++ b/chrome/browser/resources/search_header.css
@@ -0,0 +1,55 @@
+/* Copyright 2014 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. */
+
+/* This is a common file for pages that have a title and search box as their
+ * header. This visually looks like:
+ * _____________________________________________________________________________
+ * | |
+ * | I Am So Great! [ Search greatness... ] |
+ * |___________________________________________________________________________|
+ * | Summary (90235 things currently great) _Great links_ |
+ *
+ * The title expands to fill any space it needs and the search bar is locked to
+ * the end of the header (e.g., right in LTR, left in RTL).
+ */
+
+header,
+.summary {
+ min-width: 400px;
+}
+
+header {
+ align-items: center;
+ display: flex;
+ padding: 0 12px;
+}
+
+header h2 {
+ flex: 1;
+ /* TODO(dbeam): reconcile font/line-height/margin with chrome_shared.css */
+ font-size: 1.5em;
+ font-weight: normal;
+ line-height: 1;
+ margin: 15px 0;
+}
+
+header > :-webkit-any(form, input[type='search']) {
+ flex: none;
+}
+
+.summary {
+ background-color: rgb(235, 239, 249);
+ border-top: 1px solid rgb(156, 194, 239);
+ display: flex;
+ padding: 5px 10px;
+ white-space: nowrap;
+}
+
+.summary > * {
+ flex: none;
+}
+
+.summary :first-child {
+ flex: 1;
+}
« no previous file with comments | « chrome/browser/resources/downloads/downloads.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698