OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 .search-drawer-header { | 7 .search-drawer-header { |
8 flex: none; | 8 flex: none; |
9 display: flex; | 9 display: flex; |
10 border-bottom: 2px solid #e8e8e8; | 10 border-bottom: 2px solid #e8e8e8; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 | 83 |
84 .search-toolbar-summary .search-message { | 84 .search-toolbar-summary .search-message { |
85 padding-top: 2px; | 85 padding-top: 2px; |
86 padding-left: 1ex; | 86 padding-left: 1ex; |
87 text-overflow: ellipsis; | 87 text-overflow: ellipsis; |
88 white-space: nowrap; | 88 white-space: nowrap; |
89 overflow: hidden; | 89 overflow: hidden; |
90 } | 90 } |
91 | 91 |
92 #search-results-pane-file-based li { | |
93 list-style: none; | |
94 } | |
95 | |
96 #search-results-pane-file-based ol { | |
97 -webkit-padding-start: 0; | |
98 margin-top: 0; | |
99 } | |
100 | |
101 #search-results-pane-file-based ol.children { | |
102 display: none; | |
103 } | |
104 | |
105 #search-results-pane-file-based ol.children.expanded { | |
106 display: block; | |
107 } | |
108 | |
109 #search-results-pane-file-based li.parent::before { | |
110 -webkit-user-select: none; | |
111 background-image: url(Images/toolbarButtonGlyphs.png); | |
112 background-size: 352px 168px; | |
113 opacity: 0.5; | |
114 width: 12px; | |
115 content: "a"; | |
116 color: transparent; | |
117 margin-left: -5px; | |
118 padding-right: 4px; | |
119 display: inline-block; | |
120 box-sizing: border-box; | |
121 } | |
122 | |
123 @media (-webkit-min-device-pixel-ratio: 1.1) { | 92 @media (-webkit-min-device-pixel-ratio: 1.1) { |
124 .search-drawer-header .search-icon { | 93 .search-drawer-header .search-icon { |
125 background-image: url(Images/toolbarButtonGlyphs_2x.png); | 94 background-image: url(Images/toolbarButtonGlyphs_2x.png); |
126 } | 95 } |
127 | 96 |
128 .search-drawer-header .search-cancel-button::before { | 97 .search-drawer-header .search-cancel-button::before { |
129 background-image: url(Images/toolbarButtonGlyphs_2x.png); | 98 background-image: url(Images/toolbarButtonGlyphs_2x.png); |
130 } | 99 } |
131 | |
132 #search-results-pane-file-based li.parent::before { | |
133 background-image: url(Images/toolbarButtonGlyphs_2x.png); | |
134 } | |
135 } /* media */ | 100 } /* media */ |
136 | 101 |
137 #search-results-pane-file-based li.parent::before { | |
138 background-position: -4px -96px; | |
139 } | |
140 | |
141 #search-results-pane-file-based li.parent.expanded::before { | |
142 background-position: -20px -96px; | |
143 } | |
144 | |
145 #search-results-pane-file-based .search-result { | |
146 font-size: 11px; | |
147 padding: 2px 0 2px 10px; | |
148 word-wrap: normal; | |
149 white-space: pre; | |
150 cursor: pointer; | |
151 } | |
152 | |
153 #search-results-pane-file-based .search-result:hover { | |
154 background-color: rgba(121, 121, 121, 0.1); | |
155 } | |
156 | |
157 #search-results-pane-file-based .search-result .search-result-file-name { | |
158 font-weight: bold; | |
159 color: #222; | |
160 } | |
161 | |
162 #search-results-pane-file-based .search-result .search-result-matches-count { | |
163 margin-left: 5px; | |
164 color: #222; | |
165 } | |
166 | |
167 #search-results-pane-file-based .show-more-matches { | |
168 padding: 4px 0; | |
169 color: #222; | |
170 cursor: pointer; | |
171 font-size: 11px; | |
172 margin-left: 20px; | |
173 } | |
174 | |
175 #search-results-pane-file-based .show-more-matches:hover { | |
176 text-decoration: underline; | |
177 } | |
178 | |
179 #search-results-pane-file-based .search-match { | |
180 word-wrap: normal; | |
181 white-space: pre; | |
182 } | |
183 | |
184 #search-results-pane-file-based .search-match .search-match-line-number { | |
185 color: rgb(128, 128, 128); | |
186 text-align: right; | |
187 vertical-align: top; | |
188 word-break: normal; | |
189 padding-right: 4px; | |
190 padding-left: 6px; | |
191 margin-right: 5px; | |
192 border-right: 1px solid #BBB; | |
193 } | |
194 | |
195 #search-results-pane-file-based .search-match:not(:hover) .search-match-line-num
ber { | |
196 background-color: #F0F0F0; | |
197 } | |
198 | |
199 #search-results-pane-file-based .search-match:hover { | |
200 background-color: rgba(56, 121, 217, 0.1); | |
201 } | |
202 | |
203 #search-results-pane-file-based .search-match .highlighted-match { | |
204 background-color: #F1EA00; | |
205 } | |
206 | |
207 :host-context(.-theme-with-dark-background) #search-results-pane-file-based .sea
rch-match .highlighted-match { | |
208 background-color: hsl(133, 100%, 30%) !important; | |
209 } | |
210 | |
211 #search-results-pane-file-based a { | |
212 text-decoration: none; | |
213 display: block; | |
214 } | |
215 | |
216 #search-results-pane-file-based .search-match .search-match-content { | |
217 color: #000; | |
218 } | |
219 | |
220 .search-view .search-results { | 102 .search-view .search-results { |
221 overflow-y: auto; | 103 overflow-y: auto; |
222 display: flex; | 104 display: flex; |
223 flex: auto; | 105 flex: auto; |
224 } | 106 } |
225 | 107 |
226 .search-results .empty-view { | 108 .search-results .empty-view { |
227 pointer-events: none; | 109 pointer-events: none; |
228 } | 110 } |
229 | 111 |
230 .empty-view { | 112 .empty-view { |
231 font-size: 24px; | 113 font-size: 24px; |
232 color: rgb(75%, 75%, 75%); | 114 color: rgb(75%, 75%, 75%); |
233 font-weight: bold; | 115 font-weight: bold; |
234 padding: 10px; | 116 padding: 10px; |
235 display: flex; | 117 display: flex; |
236 align-items: center; | 118 align-items: center; |
237 justify-content: center; | 119 justify-content: center; |
238 } | 120 } |
OLD | NEW |