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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/suggestBox.css

Issue 2658383002: [DevTools] Make UI.GlassPane position contentElement for different overlay controls. (Closed)
Patch Set: rebased Created 3 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/module.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 11 matching lines...) Expand all
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 :host { 31 :host {
32 position: absolute;
33 background-color: transparent;
34 z-index: 1000;
35 pointer-events: none;
36 overflow: hidden;
37 display: flex; 32 display: flex;
38 flex-direction: row;
39 }
40
41 .suggest-box-left-spacer {
42 flex: 0 1 auto;
43 }
44
45 .suggest-box-horizontal {
46 display: flex;
47 flex-direction: column;
48 flex: 0 0 auto;
49 max-width: 300px;
50 }
51
52 .suggest-box-top-spacer {
53 flex: auto; 33 flex: auto;
54 } 34 }
55 35
56 :host(.under-anchor) .suggest-box-top-spacer,
57 :host(:not(.under-anchor)) .suggest-box-bottom-spacer {
58 flex: 0 0 auto;
59 }
60
61 .suggest-box-container {
62 display: flex;
63 flex-direction: row;
64 }
65
66 .suggest-box { 36 .suggest-box {
37 flex: auto;
67 background-color: #FFFFFF; 38 background-color: #FFFFFF;
68 pointer-events: auto; 39 pointer-events: auto;
69 margin-left: -3px; 40 margin-left: -3px;
70 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 41 box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05),
71 0 2px 4px rgba(0, 0, 0, 0.2), 42 0 2px 4px rgba(0, 0, 0, 0.2),
72 0 2px 6px rgba(0, 0, 0, 0.1); 43 0 2px 6px rgba(0, 0, 0, 0.1);
73 overflow-x: hidden; 44 overflow-x: hidden;
74 } 45 }
75 46
76 .suggest-box .suggest-box-content-item { 47 .suggest-box-content-item {
77 padding: 1px; 48 padding: 1px 0 1px 1px;
78 margin: 0; 49 margin: 0;
79 border: 1px solid transparent; 50 border: 1px solid transparent;
80 padding-right: 0;
81 white-space: nowrap; 51 white-space: nowrap;
82 display: flex; 52 display: flex;
83 } 53 }
84 54
85 .suggest-box .suggest-box-content-item.secondary { 55 .suggest-box-content-item.secondary {
86 background-color: #f9f9f9; 56 background-color: #f9f9f9;
87 } 57 }
88 58
89 .suggestion-title { 59 .suggestion-title {
90 overflow: hidden; 60 overflow: hidden;
91 text-overflow: ellipsis; 61 text-overflow: ellipsis;
92 } 62 }
93 63
94 .suggestion-subtitle { 64 .suggestion-subtitle {
95 flex: auto; 65 flex: auto;
96 text-align: right; 66 text-align: right;
97 color: #999; 67 color: #999;
98 margin-right: 3px; 68 margin-right: 3px;
99 overflow: hidden; 69 overflow: hidden;
100 text-overflow: ellipsis; 70 text-overflow: ellipsis;
101 } 71 }
102 72
103 .suggestion-icon { 73 .suggestion-icon {
104 user-select: none; 74 user-select: none;
105 align-self: center; 75 align-self: center;
106 flex-shrink: 0; 76 flex-shrink: 0;
107 } 77 }
108 78
109 .suggest-box .suggest-box-content-item .query { 79 .suggest-box-content-item .query {
110 font-weight: bold; 80 font-weight: bold;
111 } 81 }
112 82
113 .suggest-box .suggest-box-content-item .spacer { 83 .suggest-box-content-item .spacer {
114 display: inline-block; 84 display: inline-block;
115 width: 20px; 85 width: 20px;
116 } 86 }
117 87
118 .suggest-box .suggest-box-content-item.selected { 88 .suggest-box-content-item.selected {
119 background-color: rgb(56, 121, 217); 89 background-color: rgb(56, 121, 217);
120 } 90 }
121 91
122 .suggest-box .suggest-box-content-item.selected > span { 92 .suggest-box-content-item.selected > span {
123 color: #FFF; 93 color: #FFF;
124 } 94 }
125 95
126 .suggest-box .suggest-box-content-item:hover:not(.selected) { 96 .suggest-box-content-item:hover:not(.selected) {
127 background-color: rgba(56, 121, 217, 0.1); 97 background-color: rgba(56, 121, 217, 0.1);
128 } 98 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/module.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698