| 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; |
| 11 white-space: nowrap; | 11 white-space: nowrap; |
| 12 overflow: hidden; | 12 overflow: hidden; |
| 13 } | 13 } |
| 14 | 14 |
| 15 .search-drawer-header input.search-config-search { | 15 .search-drawer-header input.search-config-search { |
| 16 padding: 0 28px; | 16 padding: 0 28px; |
| 17 margin: 1px 0px 1px 1px; | 17 margin: 1px 0px 1px 1px; |
| 18 height: 28px; | 18 height: 28px; |
| 19 border-radius: 2px; | 19 border-radius: 2px; |
| 20 color: #303030; | 20 color: #303030; |
| 21 border: none; | 21 border: none; |
| 22 min-width: 95px; | 22 min-width: 95px; |
| 23 } | 23 } |
| 24 | 24 |
| 25 .search-drawer-header .search-icon { | 25 .search-drawer-header .search-icon { |
| 26 background-image: url(Images/toolbarButtonGlyphs.png); | |
| 27 background-size: 352px 168px; | |
| 28 background-position: -234px 138px; | |
| 29 left: 10px; | 26 left: 10px; |
| 30 top: 10px; | 27 top: 10px; |
| 31 width: 12px; | |
| 32 height: 12px; | |
| 33 position: absolute; | 28 position: absolute; |
| 34 } | 29 } |
| 35 | 30 |
| 36 .search-config-search::-webkit-search-cancel-button { | 31 .search-config-search::-webkit-search-cancel-button { |
| 37 -webkit-appearance: none; | 32 -webkit-appearance: none; |
| 38 } | 33 } |
| 39 | 34 |
| 35 .search-drawer-header .search-cancel-button-container { |
| 36 position: relative; |
| 37 } |
| 38 |
| 40 .search-drawer-header .search-cancel-button { | 39 .search-drawer-header .search-cancel-button { |
| 41 position: relative; | 40 position: absolute; |
| 42 left: -22px; | 41 right: 9px; |
| 43 top: 9px; | 42 top: 9px; |
| 44 } | 43 } |
| 45 | 44 |
| 46 .search-drawer-header .search-cancel-button::before { | |
| 47 content: ''; | |
| 48 background-image: url(Images/toolbarButtonGlyphs.png); | |
| 49 background-size: 352px 168px; | |
| 50 left: 0; | |
| 51 top: 0; | |
| 52 width: 13px; | |
| 53 height: 13px; | |
| 54 background-position: -143px -96px; | |
| 55 position: absolute; | |
| 56 } | |
| 57 | |
| 58 :host-context(.platform-mac) .search-drawer-header input.search-config-search { | 45 :host-context(.platform-mac) .search-drawer-header input.search-config-search { |
| 59 top: 1px; | 46 top: 1px; |
| 60 } | 47 } |
| 61 | 48 |
| 62 .search-drawer-header label.search-config-label:first-of-type { | 49 .search-drawer-header label.search-config-label:first-of-type { |
| 63 border-left: 1px solid #dadada; | 50 border-left: 1px solid #dadada; |
| 64 margin: 0px 0px 0px 1px; | 51 margin: 0px 0px 0px 1px; |
| 65 padding-left: 10px; | 52 padding-left: 10px; |
| 66 } | 53 } |
| 67 | 54 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 82 } | 69 } |
| 83 | 70 |
| 84 .search-toolbar-summary .search-message { | 71 .search-toolbar-summary .search-message { |
| 85 padding-top: 2px; | 72 padding-top: 2px; |
| 86 padding-left: 1ex; | 73 padding-left: 1ex; |
| 87 text-overflow: ellipsis; | 74 text-overflow: ellipsis; |
| 88 white-space: nowrap; | 75 white-space: nowrap; |
| 89 overflow: hidden; | 76 overflow: hidden; |
| 90 } | 77 } |
| 91 | 78 |
| 92 @media (-webkit-min-device-pixel-ratio: 1.1) { | |
| 93 .search-drawer-header .search-icon { | |
| 94 background-image: url(Images/toolbarButtonGlyphs_2x.png); | |
| 95 } | |
| 96 | |
| 97 .search-drawer-header .search-cancel-button::before { | |
| 98 background-image: url(Images/toolbarButtonGlyphs_2x.png); | |
| 99 } | |
| 100 } /* media */ | |
| 101 | |
| 102 .search-view .search-results { | 79 .search-view .search-results { |
| 103 overflow-y: auto; | 80 overflow-y: auto; |
| 104 display: flex; | 81 display: flex; |
| 105 flex: auto; | 82 flex: auto; |
| 106 } | 83 } |
| 107 | 84 |
| 108 .search-view .search-results > div { | 85 .search-view .search-results > div { |
| 109 flex: auto; | 86 flex: auto; |
| 110 } | 87 } |
| 111 | 88 |
| 112 .search-results .empty-view { | 89 .search-results .empty-view { |
| 113 pointer-events: none; | 90 pointer-events: none; |
| 114 } | 91 } |
| 115 | 92 |
| 116 .empty-view { | 93 .empty-view { |
| 117 font-size: 24px; | 94 font-size: 24px; |
| 118 color: rgb(75%, 75%, 75%); | 95 color: rgb(75%, 75%, 75%); |
| 119 font-weight: bold; | 96 font-weight: bold; |
| 120 padding: 10px; | 97 padding: 10px; |
| 121 display: flex; | 98 display: flex; |
| 122 align-items: center; | 99 align-items: center; |
| 123 justify-content: center; | 100 justify-content: center; |
| 124 } | 101 } |
| OLD | NEW |