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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/sourcesSearch.css

Issue 1902283002: DevTools: Update styles for full text search drawer panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary style rule Created 4 years, 8 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
OLDNEW
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 padding: 4px;
10 display: flex; 9 display: flex;
10 border-bottom: 2px solid #e8e8e8;
11 } 11 }
12 12
13 .search-drawer-header input[type="text"].search-config-search { 13 .search-drawer-header input.search-config-search {
14 -webkit-appearance: none; 14 padding: 0 28px;
15 padding: 0 3px; 15 margin: 1px 0px 0px 1px;
16 margin: 0; 16 height: 28px;
17 border: 1px solid rgb(163, 163, 163);
18 height: 20px;
19 border-radius: 2px; 17 border-radius: 2px;
20 color: #303030; 18 color: #303030;
19 border: none;
21 } 20 }
22 21
23 .search-drawer-header input[type="search"].search-config-search:focus { 22 .search-drawer-header .search-icon {
24 border: 1px solid rgb(190, 190, 190); 23 background-image: url(Images/search.png);
25 outline: none; 24 background-size: contain;
25 background-repeat: no-repeat;
26 left: 10px;
27 top: 10px;
28 width: 11px;
29 height: 11px;
30 position: absolute;
26 } 31 }
27 32
28 :host-context(.platform-mac) .search-drawer-header input[type="search"].search-c onfig-search { 33 .search-config-search::-webkit-search-cancel-button {
lushnikov 2016/04/22 19:19:08 hmm, can't we simply use input type=search? Won't
luoe 2016/04/23 00:01:57 It would give us system default icons, but we don'
34 -webkit-appearance: none;
35 }
36
37 .search-drawer-header .search-cancel-button {
38 position: relative;
39 left: -24px;
40 top: 8px;
41 }
42
43 .search-drawer-header .search-cancel-button::before {
44 content: '';
45 background-image: url(Images/toolbarButtonGlyphs.png);
46 background-size: 352px 168px;
47 left: 0;
48 top: 0;
49 width: 13px;
50 height: 13px;
51 background-position: -143px -96px;
52 position: absolute;
53 }
54
55 :host-context(.platform-mac) .search-drawer-header input.search-config-search {
29 top: 1px; 56 top: 1px;
30 } 57 }
31 58
59 .search-drawer-header label.search-config-label:first-of-type {
60 border-left: 1px solid #dadada;
61 margin: 0px 0px 0px 1px;
62 padding-left: 10px;
63 }
64
32 .search-drawer-header label.search-config-label { 65 .search-drawer-header label.search-config-label {
33 margin: auto 0; 66 margin: 2px 0px;
34 margin-left: 8px; 67 margin-left: 8px;
35 color: #303030; 68 color: #303030;
36 display: flex; 69 display: flex;
37 } 70 }
38 71
39 .search-toolbar-summary { 72 .search-toolbar-summary {
40 background-color: #eee; 73 background-color: #eee;
41 border-top: 1px solid #ccc; 74 border-top: 1px solid #ccc;
42 padding-left: 5px; 75 padding-left: 5px;
43 flex: 0 0 19px; 76 flex: 0 0 19px;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 width: 12px; 108 width: 12px;
76 content: "a"; 109 content: "a";
77 color: transparent; 110 color: transparent;
78 margin-left: -5px; 111 margin-left: -5px;
79 padding-right: 4px; 112 padding-right: 4px;
80 display: inline-block; 113 display: inline-block;
81 box-sizing: border-box; 114 box-sizing: border-box;
82 } 115 }
83 116
84 @media (-webkit-min-device-pixel-ratio: 1.5) { 117 @media (-webkit-min-device-pixel-ratio: 1.5) {
118 .search-drawer-header .search-icon {
119 background-image: url(Images/search_2x.png);
120 }
121
122 .search-drawer-header .search-cancel-button::before {
123 background-image: url(Images/toolbarButtonGlyphs_2x.png);
124 }
125
85 #search-results-pane-file-based li.parent::before { 126 #search-results-pane-file-based li.parent::before {
86 background-image: url(Images/toolbarButtonGlyphs_2x.png); 127 background-image: url(Images/toolbarButtonGlyphs_2x.png);
87 } 128 }
88 } /* media */ 129 } /* media */
89 130
90 #search-results-pane-file-based li.parent::before { 131 #search-results-pane-file-based li.parent::before {
91 background-position: -4px -96px; 132 background-position: -4px -96px;
92 } 133 }
93 134
94 #search-results-pane-file-based li.parent.expanded::before { 135 #search-results-pane-file-based li.parent.expanded::before {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 223
183 .empty-view { 224 .empty-view {
184 font-size: 24px; 225 font-size: 24px;
185 color: rgb(75%, 75%, 75%); 226 color: rgb(75%, 75%, 75%);
186 font-weight: bold; 227 font-weight: bold;
187 padding: 10px; 228 padding: 10px;
188 display: flex; 229 display: flex;
189 align-items: center; 230 align-items: center;
190 justify-content: center; 231 justify-content: center;
191 } 232 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698