Chromium Code Reviews| OLD | NEW | 
|---|---|
| 1 /* Copyright 2016 The Chromium Authors. All rights reserved. | 1 /* Copyright 2016 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 html { | 5 html { | 
| 6 background-color: rgba(255, 255, 255, 0); | 6 background-color: rgba(255, 255, 255, 0); | 
| 7 } | 7 } | 
| 8 | 8 | 
| 9 #ui { | 9 #ui { | 
| 10 left: 0; | 10 left: 0; | 
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 padding: 20px; | 73 padding: 20px; | 
| 74 text-align: center; | 74 text-align: center; | 
| 75 width: 512px; | 75 width: 512px; | 
| 76 } | 76 } | 
| 77 | 77 | 
| 78 .round-button .button { | 78 .round-button .button { | 
| 79 background-color: #eee; | 79 background-color: #eee; | 
| 80 background-position: center; | 80 background-position: center; | 
| 81 background-repeat: no-repeat; | 81 background-repeat: no-repeat; | 
| 82 background-size: contain; | 82 background-size: contain; | 
| 83 border-radius: 50%; | 83 border-radius: 10%; | 
| 84 height: 96px; | 84 height: 96px; | 
| 85 margin: auto auto; | 85 margin: auto auto; | 
| 86 opacity: 0.8; | 86 opacity: 0.8; | 
| 87 transition: opacity 150ms ease-in-out; | 87 transition: opacity 150ms ease-in-out; | 
| 88 width: 96px; | 88 width: 96px; | 
| 89 } | 89 } | 
| 90 | 90 | 
| 91 .round-button .caption { | 91 .round-button .caption { | 
| 92 color: white; | 92 color: white; | 
| 93 font-size: 24px; | 93 font-size: 24px; | 
| (...skipping 12 matching lines...) Expand all Loading... | |
| 106 | 106 | 
| 107 #reload .button { | 107 #reload .button { | 
| 108 background-image: url(../../../../ui/webui/resources/images/vr_reload.svg); | 108 background-image: url(../../../../ui/webui/resources/images/vr_reload.svg); | 
| 109 } | 109 } | 
| 110 | 110 | 
| 111 #forward .button { | 111 #forward .button { | 
| 112 transform: scaleX(-1); | 112 transform: scaleX(-1); | 
| 113 } | 113 } | 
| 114 | 114 | 
| 115 #reload-ui-button { | 115 #reload-ui-button { | 
| 116 --tranX: 0; | |
| 117 --tranY: -1.2; | |
| 118 --tranZ: -1.2; | |
| 119 color: white; | 116 color: white; | 
| 120 font-size: 24px; | 117 font-size: 24px; | 
| 121 padding: 12px; | 118 padding: 12px; | 
| 122 } | 119 } | 
| 123 | 120 | 
| 121 #reload-ui-button:hover { | |
| 122 background-color: pink; | |
| 123 } | |
| 124 | |
| 124 #url-indicator-container { | 125 #url-indicator-container { | 
| 125 --tranX: 0; | 126 --tranX: 0; | 
| 126 --tranY: -0.65; | 127 --tranY: -0.65; | 
| 127 --tranZ: -1.2; | 128 --tranZ: -1.2; | 
| 128 } | 129 } | 
| 129 | 130 | 
| 130 #url-indicator-border { | 131 #url-indicator-border { | 
| 131 --fadeTimeMs: 500; | 132 --fadeTimeMs: 500; | 
| 132 --fadeYOffset: -0.1; | 133 --fadeYOffset: -0.1; | 
| 133 --opacity: 0.9; | 134 --opacity: 0.9; | 
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 overflow: hidden; | 187 overflow: hidden; | 
| 187 white-space: nowrap; | 188 white-space: nowrap; | 
| 188 } | 189 } | 
| 189 | 190 | 
| 190 #url-indicator #path { | 191 #url-indicator #path { | 
| 191 color: #868686; | 192 color: #868686; | 
| 192 } | 193 } | 
| 193 | 194 | 
| 194 #omnibox-ui-element { | 195 #omnibox-ui-element { | 
| 195 --tranX: 0; | 196 --tranX: 0; | 
| 196 --tranY: -0.2; | 197 --tranY: -0.1; | 
| 197 --tranZ: -1.0; | 198 --tranZ: -1.0; | 
| 199 background-color: transparent; | |
| 200 box-sizing: border-box; | |
| 198 font-family: arial; | 201 font-family: arial; | 
| 202 font-size: 16px; | |
| 203 width: 400px; | |
| 199 } | 204 } | 
| 200 | 205 | 
| 201 #omnibox-url-divider { | 206 #suggestions { | 
| 202 background-color: black; | 207 border: 1px solid transparent; | 
| 203 height: 1px; | 208 box-sizing: border-box; | 
| 209 } | |
| 210 | |
| 211 .suggestion { | |
| 212 align-items: center; | |
| 
 
bshe
2017/02/03 16:37:05
I am wondering what's the element that you want to
 
cjgrant
2017/02/03 20:24:25
This provides vertical alignment of the text withi
 
bshe
2017/02/03 21:15:37
Acknowledged.
 
 | |
| 213 background-color: white; | |
| 214 border-left: 5px solid transparent; | |
| 215 border-right: 5px solid transparent; | |
| 
 
bshe
2017/02/03 16:37:05
I am not sure why do you need transparent border h
 
cjgrant
2017/02/03 20:24:25
Here's the reason (it's a bit weird):
- We need ma
 
bshe
2017/02/03 21:15:37
I see. So this is not very obvious and that's why
 
cjgrant
2017/02/03 22:19:13
I added a few comments to the odd-looking properti
 
 | |
| 216 box-sizing: border-box; | |
| 217 display: flex; | |
| 218 height: 24px; | |
| 219 overflow: hidden; | |
| 220 visibility: hidden; | |
| 221 white-space: nowrap; | |
| 222 } | |
| 223 | |
| 224 .suggestion:hover { | |
| 225 background-color: orange; | |
| 204 } | 226 } | 
| 205 | 227 | 
| 206 #omnibox-url-element { | 228 #omnibox-url-element { | 
| 207 background-color: white; | 229 background-color: white; | 
| 230 border: 1px solid grey; | |
| 231 box-sizing: border-box; | |
| 208 display: flex; | 232 display: flex; | 
| 233 flex-direction: row-reverse; | |
| 234 margin-top: 2px; | |
| 209 padding: 5px; | 235 padding: 5px; | 
| 210 width: 100%; | |
| 211 } | |
| 212 | |
| 213 .omnibox-suggestion { | |
| 214 background-color: white; | |
| 215 height: 22px; | |
| 216 overflow: hidden; | |
| 217 padding-left: 5px; | |
| 218 padding-right: 5px; | |
| 219 white-space: nowrap; | |
| 220 width: 100%; | |
| 221 } | 236 } | 
| 222 | 237 | 
| 223 #omnibox-input-field { | 238 #omnibox-input-field { | 
| 224 border: none; | 239 border: none; | 
| 225 font-size: 16px; | 240 font-size: 16px; | 
| 226 margin: 3px; | 241 outline: none; | 
| 
 
bshe
2017/02/03 16:37:05
Do you need to specify none here? I would guess no
 
cjgrant
2017/02/03 20:24:24
This is needed for input fields - otherwise, when
 
cjgrant
2017/02/03 20:28:15
Re-verified.  Both border:none and outline:none ar
 
bshe
2017/02/03 21:15:37
Interesing. ack
 
 | |
| 227 overflow: hidden; | 242 overflow: hidden; | 
| 228 padding: 0; | |
| 229 white-space: nowrap; | 243 white-space: nowrap; | 
| 230 width: 280px; | 244 width: 100%; | 
| 231 } | 245 } | 
| 232 | 246 | 
| 233 #omnibox-clear-button { | 247 #omnibox-clear-button { | 
| 234 background: url(../../../../ui/webui/resources/images/x-hover.png) no-repeat c enter center; | 248 background: url(../../../../ui/webui/resources/images/x-hover.png) no-repeat c enter center; | 
| 235 width: 15px; | 249 width: 18px; | 
| 236 } | 250 } | 
| OLD | NEW |