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 --scaleFactor: 4; | 10 --scaleFactor: 4; |
| 11 left: 0; | 11 left: 0; |
| 12 position: absolute; | 12 position: absolute; |
| 13 top: 0; | 13 top: 0; |
| 14 transform: scale(0.25, 0.25); | 14 transform: scale(0.25, 0.25); |
| 15 transform-origin: left top; | |
| 16 width: 400%; | |
| 17 } | |
| 18 | |
| 19 /* This class manages the position of elements on the texture page. | |
| 20 * Each UI element should have a bounding div of this class. */ | |
| 21 .ui-element { | |
| 22 border: 1px sold red; | |
|
mthiesse
2016/11/11 16:01:55
s/sold/solid? why red? Don't we want a transparent
cjgrant
2016/11/11 16:13:14
My mistake. This was for debugging (to visualize
cjgrant
2016/11/11 16:14:27
Done.
| |
| 23 float: left; | |
| 24 margin: 2px; | |
| 15 } | 25 } |
| 16 | 26 |
| 17 .webvr-message-box { | 27 .webvr-message-box { |
| 18 align-items: center; | 28 align-items: center; |
| 19 display: flex; | 29 display: flex; |
| 20 flex-direction: column; | 30 flex-direction: column; |
| 21 justify-content: center; | 31 justify-content: center; |
| 22 position: absolute; | |
| 23 } | 32 } |
| 24 | 33 |
| 25 /* Permanent security warning for WebVR. This uses a fixed-size absolutely | 34 /* Permanent security warning for WebVR. */ |
| 26 * positioned DIV, the rectangle must match kWebVrWarningPermanentRect | |
| 27 * in vr_shell.cc for use as a GL textured quad. */ | |
| 28 #webvr-not-secure-permanent { | 35 #webvr-not-secure-permanent { |
| 29 height: 128px; | 36 height: 128px; |
| 30 left: 0; | |
| 31 top: 0; | |
| 32 width: 512px; | 37 width: 512px; |
| 33 } | 38 } |
| 34 | 39 |
| 35 #webvr-not-secure-permanent .webvr-not-secure-icon { | 40 #webvr-not-secure-permanent .webvr-not-secure-icon { |
| 36 display: inline-block; | 41 display: inline-block; |
| 37 margin: 20px 0; | 42 margin: 20px 0; |
| 38 vertical-align: middle; | 43 vertical-align: middle; |
| 39 } | 44 } |
| 40 | 45 |
| 41 #webvr-not-secure-permanent .webvr-string { | 46 #webvr-not-secure-permanent .webvr-string { |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 57 color: #444; | 62 color: #444; |
| 58 font-size: 26px; | 63 font-size: 26px; |
| 59 height: 78px; | 64 height: 78px; |
| 60 max-width: 472px; | 65 max-width: 472px; |
| 61 min-width: 226px; | 66 min-width: 226px; |
| 62 overflow: hidden; | 67 overflow: hidden; |
| 63 padding: 0 20px; | 68 padding: 0 20px; |
| 64 white-space: nowrap; | 69 white-space: nowrap; |
| 65 } | 70 } |
| 66 | 71 |
| 67 /* Transient security warning for WebVR. This uses a fixed-size absolutely | 72 /* Transient security warning for WebVR. */ |
| 68 * positioned DIV, the rectangle must match kWebVrWarningTransientRect | |
| 69 * in vr_shell.cc for use as a GL textured quad. */ | |
| 70 #webvr-not-secure-transient { | 73 #webvr-not-secure-transient { |
| 71 height: 256px; | 74 height: 256px; |
| 72 left: 0; | |
| 73 top: 128px; | |
| 74 width: 512px; | 75 width: 512px; |
| 75 } | 76 } |
| 76 | 77 |
| 77 /* This uses fixed width but the height has some elasticity for translations. | 78 /* This uses fixed width but the height has some elasticity for translations. |
| 78 * The maximum is based on the fixed-size container DIV, excess will be | 79 * The maximum is based on the fixed-size container DIV, excess will be |
| 79 * clipped. */ | 80 * clipped. */ |
| 80 #webvr-not-secure-transient > div { | 81 #webvr-not-secure-transient > div { |
| 81 background-color: rgba(26, 26, 26, 0.8); | 82 background-color: rgba(26, 26, 26, 0.8); |
| 82 border-radius: 6px; | 83 border-radius: 6px; |
| 83 box-sizing: border-box; | 84 box-sizing: border-box; |
| 84 color: white; | 85 color: white; |
| 85 display: flex; | 86 display: flex; |
| 86 flex-direction: column; | 87 flex-direction: column; |
| 87 font-size: 26px; | 88 font-size: 26px; |
| 88 justify-content: center; | 89 justify-content: center; |
| 89 line-height: 1.4; | 90 line-height: 1.4; |
| 90 max-height: 210px; | 91 max-height: 210px; |
| 91 min-height: 160px; | 92 min-height: 160px; |
| 93 overflow: hidden; | |
| 92 padding: 20px; | 94 padding: 20px; |
| 93 text-align: center; | 95 text-align: center; |
| 94 width: 512px; | 96 width: 512px; |
| 95 } | 97 } |
| 96 | 98 |
| 97 .round-button { | |
| 98 height: 136px; | |
| 99 left: 512px; | |
| 100 position: absolute; | |
| 101 width: 96px; | |
| 102 } | |
| 103 | |
| 104 .round-button .button { | 99 .round-button .button { |
| 105 background-color: #eee; | 100 background-color: #eee; |
| 106 background-position: center; | 101 background-position: center; |
| 107 background-repeat: no-repeat; | 102 background-repeat: no-repeat; |
| 108 background-size: contain; | 103 background-size: contain; |
| 109 border-radius: 50%; | 104 border-radius: 50%; |
| 110 height: 96px; | 105 height: 96px; |
| 106 margin: auto auto; | |
| 111 opacity: 0.8; | 107 opacity: 0.8; |
| 112 position: absolute; | |
| 113 top: 0; | |
| 114 transition: opacity 150ms ease-in-out; | 108 transition: opacity 150ms ease-in-out; |
| 115 width: 96px; | 109 width: 96px; |
| 116 } | 110 } |
| 117 | 111 |
| 118 .round-button .caption { | 112 .round-button .caption { |
| 119 bottom: 0; | |
| 120 color: white; | 113 color: white; |
| 121 font-size: 24px; | 114 font-size: 24px; |
| 122 left: 50%; | 115 max-width: 192px; |
| 123 opacity: 0; | 116 opacity: 0; |
| 124 position: absolute; | 117 overflow: hidden; |
| 125 transform: translateX(-50%); | 118 text-align: center; |
| 126 transition: opacity 150ms ease-in-out; | 119 transition: opacity 150ms ease-in-out; |
| 127 z-index: 100; | 120 white-space: nowrap; |
| 128 } | |
| 129 | |
| 130 #back { | |
| 131 top: 0; | |
| 132 } | 121 } |
| 133 | 122 |
| 134 #back .button { | 123 #back .button { |
| 135 background-image: url(../../../../ui/webui/resources/images/vr_back.svg); | 124 background-image: url(../../../../ui/webui/resources/images/vr_back.svg); |
| 136 } | 125 } |
| 137 | 126 |
| 138 #reload { | |
| 139 top: 138px; | |
| 140 } | |
| 141 | |
| 142 #reload .button { | 127 #reload .button { |
| 143 background-image: url(../../../../ui/webui/resources/images/vr_reload.svg); | 128 background-image: url(../../../../ui/webui/resources/images/vr_reload.svg); |
| 144 } | 129 } |
| 145 | 130 |
| 146 #forward { | |
| 147 top: 276px; | |
| 148 } | |
| 149 | |
| 150 #forward .button { | 131 #forward .button { |
| 151 background-image: url(../../../../ui/webui/resources/images/vr_back.svg); | 132 background-image: url(../../../../ui/webui/resources/images/vr_back.svg); |
| 152 transform: scaleX(-1); | 133 transform: scaleX(-1); |
| 153 } | 134 } |
| 154 | 135 |
| 155 #reload-ui-button { | 136 #reload-ui-button { |
| 156 background-color: #555; | 137 background-color: #555; |
| 157 color: white; | 138 color: white; |
| 158 font-size: 16; | 139 font-size: 24px; |
| 159 height: 24px; | 140 padding: 12px; |
| 160 left: 610px; | |
| 161 opacity: 1; | |
| 162 position: absolute; | |
| 163 text-align: center; | |
| 164 top: 0; | |
| 165 width: 96px; | |
| 166 } | 141 } |
| 167 | 142 |
| 168 #omni { | 143 #omni { |
| 169 --tranX: 0; | 144 --tranX: 0; |
| 170 --tranY: -0.5; | 145 --tranY: -0.5; |
| 171 --tranZ: -1.0; | 146 --tranZ: -1.0; |
| 147 align-items: center; | |
| 172 background-color: rgba(255, 255, 255, 0.9); | 148 background-color: rgba(255, 255, 255, 0.9); |
| 173 border-radius: 100px; | 149 border-radius: 100px; |
| 174 box-sizing: border-box; | 150 box-sizing: border-box; |
| 151 display: flex; | |
| 175 height: 104px; | 152 height: 104px; |
| 176 left: 0; | 153 justify-content: center; |
| 154 margin-bottom: 60px; | |
| 155 margin-top: 0; | |
| 177 opacity: 1; | 156 opacity: 1; |
| 178 position: absolute; | |
| 179 top: 402px; | |
| 180 transition: opacity 250ms ease, margin-top 250ms ease; | 157 transition: opacity 250ms ease, margin-top 250ms ease; |
| 181 white-space: nowrap; | 158 white-space: nowrap; |
| 182 width: 504px; | 159 width: 512px; |
| 183 } | 160 } |
| 184 | 161 |
| 185 #omni #connection-security { | 162 #omni-content { |
| 186 left: 35px; | 163 align-items: center; |
| 187 position: absolute; | 164 display: flex; |
| 188 top: 50%; | 165 max-width: 448px; |
| 189 transform: translateY(-50%); | 166 } |
| 167 | |
| 168 #omni .connection-security { | |
| 169 height: 50px; | |
| 170 margin-right: 10px; | |
| 171 width: 50px; | |
| 190 } | 172 } |
| 191 | 173 |
| 192 #omni #url { | 174 #omni #url { |
| 193 color: #252525; | 175 color: #252525; |
| 194 font-size: 34px; | 176 font-size: 34px; |
| 195 left: 80px; | 177 overflow: hidden; |
| 196 position: absolute; | |
| 197 top: 50%; | |
| 198 transform: translateY(-50%); | |
| 199 white-space: nowrap; | 178 white-space: nowrap; |
| 200 } | 179 } |
| 201 | 180 |
| 202 #omni #path { | 181 #omni #path { |
| 203 color: #868686; | 182 color: #868686; |
| 204 } | 183 } |
| 205 | 184 |
| 206 #omni.hide { | 185 #omni.hide { |
| 186 margin-bottom: 0; | |
| 207 margin-top: 60px; | 187 margin-top: 60px; |
| 208 opacity: 0; | 188 opacity: 0; |
| 209 } | 189 } |
| 210 | 190 |
| 211 #omni.loading { | 191 #omni.loading { |
| 212 border: 4px solid rgb(86, 203, 255); | 192 border: 4px solid rgb(86, 203, 255); |
| 213 } | 193 } |
| 214 | 194 |
| 215 #omni.idle { | 195 #omni.idle { |
| 216 background-color: #ECECEC; | 196 background-color: #ececec; |
| 217 box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.1); | |
| 218 } | 197 } |
| 219 | 198 |
| 220 #omni.idle #domain { | 199 #omni.idle #domain { |
| 221 color: black; | 200 color: black; |
| 222 } | 201 } |
| OLD | NEW |