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

Side by Side Diff: chrome/browser/resources/options2/search_page.css

Issue 10408038: make the settings search page bubbles look cool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now with 10% more transparency Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */ 3 * found in the LICENSE file. */
4 4
5 .search-hidden { 5 .search-hidden {
6 display: none !important; 6 display: none !important;
7 } 7 }
8 8
9 .search-highlighted { 9 .search-highlighted {
10 background-color: rgba(255, 240, 120, 0.9); 10 background-color: rgba(255, 240, 120, 0.9);
11 } 11 }
12 12
13 /* Container for the elements that make up the search bubble. */
13 .search-bubble { 14 .search-bubble {
14 -webkit-box-shadow: 0 2px 2px #888;
15 background-color: rgba(255, 240, 120, 0.8);
16 border-radius: 6px;
17 box-shadow: 0 2px 2px #888;
18 left: 0; 15 left: 0;
19 margin: 12px 0 0; 16 margin-top: 5px;
20 padding: 4px 10px;
21 pointer-events: none; 17 pointer-events: none;
22 position: absolute; 18 position: absolute;
19 top: -1000px; /* minor hack: position off-screen by default */
Dan Beam 2012/05/22 03:40:51 in comment: \.$ (optionally ^M)
Evan Stade 2012/05/22 03:55:36 Done.
20 /* Create a z-context for search-bubble-innards, its after and before. */
21 z-index: 0;
22 }
23
24 /* Contains the text content of the bubble. */
25 .search-bubble-innards {
26 background: -webkit-linear-gradient(rgba(255, 248, 172, 0.9),
27 rgba(255, 243, 128, 0.9));
28 border-radius: 2px;
29 padding: 4px 10px;
23 text-align: center; 30 text-align: center;
24 top: -1000px; /* minor hack: position off-screen by default */
25 width: 100px; 31 width: 100px;
26 } 32 }
27 33
28 .search-bubble:after { 34 /* Provides the border around the bubble (has to be behind :after). */
29 border-color: rgba(255, 240, 120, 0.9) transparent; 35 .search-bubble-innards::before {
30 border-style: solid; 36 border: 1px solid rgb(220, 198, 72);
31 border-width: 0 10px 10px; 37 border-radius: 2px;
38 bottom: -1px;
32 content: ''; 39 content: '';
33 left: 50px; 40 left: -1px;
34 position: absolute; 41 position: absolute;
35 top: -10px; 42 right: -1px;
43 top: -1px;
44 z-index: -2;
45 }
46
47 /* Provides the arrow which points at the anchor element. */
48 .search-bubble-innards::after {
49 -webkit-transform: rotate(45deg);
50 background:
51 -webkit-linear-gradient(-45deg, rgb(251, 255, 181),
52 rgb(255, 248, 172) 50%,
53 rgba(255, 248, 172, 0));
54 border: 1px solid rgb(220, 198, 72);
55 border-bottom-color: transparent;
56 border-right-color: transparent;
57 content: '';
58 height: 12px;
59 left: 53px;
60 position: absolute;
61 top: -7px;
62 width: 12px;
63 z-index: -1;
36 } 64 }
37 65
38 .search-bubble-wrapper { 66 .search-bubble-wrapper {
39 position: relative; 67 position: relative;
40 } 68 }
41 69
42 #searchPage.page { 70 #searchPage.page {
43 /* The search page needs no padding as it's provided by showing the results 71 /* The search page needs no padding as it's provided by showing the results
44 * from each page. */ 72 * from each page. */
45 padding: 0; 73 padding: 0;
46 } 74 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/options2/search_page.js » ('j') | chrome/browser/resources/options2/search_page.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698